-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With Log set to true, no email and error #63
Comments
I'm looking into this. Will let you know. |
Should be fixed. Let me know. |
I ran the script and it created the log file but still no email. The log says "success" with no email errors. I have SendMail set to "Always" and Log set to true. Am I doing something wrong? Other 2 log options are set to null. |
Please run the backup script within the Start-Transcript block (see https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.host/start-transcript?view=powershell-7.2) and
Then post the transcript file. I will take a look. |
Windows PowerShell transcript start Transcript started, output file is c:\logs\transcript.txt PS I:\PlexBackupScript> TerminatingError(Send-MailMessage): "The process cannot access the file 'I:\PlexBackupScript\20220707161602\Backup.log' because it is being used by another process."
Windows PowerShell transcript end |
I do not see the transcript file, but first of all, did you try the latest version of the script? |
It would seem after getting the new script and making some small changes all is well....thanks for the script and support! |
Hello, the script is working really well for me except for one thing. If I have Send Email value set to Always and have the Log set to true, I get an error at the end of the script running saying it could not email because file is in use. The script does create a log. If Log is set to null, I do not get a log file, but get an email saying "Success". Is there a way to have a log and an email?
The text was updated successfully, but these errors were encountered: