Does anyone know why the script fails with error? It worked before, but now seems to fail because of long filenames or something. Standalone SnapRAID still works fine. And the script, of course, works now when I synced with SnapRAID but crashes again if I move/copy those same files and try to run the script. System is using Stablebit Drivepool with drives mounted inside C:\Asemat\
I just added a directory of files like this to my drives and the script fails, here a sample of the log just before the error and script ends/crashes:
add C:/Asemat/G/PoolPart.2b8954b9-713d-4a2e-980a-fd867c4784e6/Musiikki/A State
Of Trance/A State Of Trance 690b/30. Steve Morley - Only A Heartbeat Away.mp3
copy C:/Asemat/G/PoolPart.2b8954b9-713d-4a2e-980a-fd867c4784e6/Musiikki/A State
Of Trance/A State Of Trance 690/30. Steve Morley - Only A Heartbeat Away.mp3 -
> C:/Asemat/G/PoolPart.2b8954b9-713d-4a2e-980a-fd867c4784e6/Musiikki/A State Of
Trance/A State Of Trance 690b/30. Steve Morley - Only A Heartbeat Away.mp3
add C:/Asemat/G/PoolPart.2b8954b9-713d-4a2e-980a-fd867c4784e6/Musiikki/A State
out-lineoutput : The Win32 internal error "A device attached to the system is n
ot functioning" 0x1F occurred while writing to the console output buffer at the
current cursor position. Contact Microsoft Customer Support Services.
+ CategoryInfo : WriteError: (:) [out-lineoutput], HostException
+ FullyQualifiedErrorId : WriteConsole,Microsoft.PowerShell.Commands.OutLi
neOutputCommand
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is the error I receive when I try to run the script:
''''New-EventLog : Access is denied. Try running the command again in a session that has been opened with
elevated user rights (that is, Run as Administrator).
At C:\snapraid\snapraid-helper.ps1:325 char:3
+ New-EventLog -Source SnapRaid-Helper -LogName Application
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [New-EventLog], Exception
+ FullyQualifiedErrorId : AccessIsDenied,Microsoft.PowerShell.Commands.NewEventLogCommand
write-eventlog : The source was not found, but some or all event logs could not be searched. Inaccessible
logs: Security.
At C:\snapraid\snapraid-helper.ps1:327 char:2
+ write-eventlog -logname Application -source SnapRaid-Helper -eventID $EventlogI ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-EventLog], SecurityException
+ FullyQualifiedErrorId : System.Security.SecurityException,Microsoft.PowerShell.Commands.WriteEventLogC
ommand
Stop-Transcript : This host does not support transcription.
At C:\snapraid\snapraid-helper.ps1:1035 char:1
+ Stop-Transcript | out-null
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : NotImplemented: (:) [Stop-Transcript], PSNotSupportedException
+ FullyQualifiedErrorId : NotSupported,Microsoft.PowerShell.Commands.StopTranscriptCommand
''''
How do I run this as administrator?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Looks like my error (from two days ago) was fixed when I changed the console font to Lucida Console. I thought that it would just fix how certain characters are displayed (UTF8Console is =1) and didn't make the change before...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Trying to run this on Windows 7 Pro. I edited the files for my setup and installed the things noted in the file. Whenever I try to run the script I get the following error:
PS C:\snapraid> .\snapraid-helper.ps1
Ampersand not allowed. The & operator is reserved for future use; use "&" to pass ampersand as a string.
At C:\snapraid\snapraid-helper.ps1:443 char:84
+ & "$exe" -c $configfile $sargument -p $ScrubPercent -l $SnapRAIDLogfile 2>&1 3>& <<<< 1 4>&1 | %{ "$_" }
| tee-object -file $TmpOutput
+ CategoryInfo : ParserError: (:) [], ParseException
+ FullyQualifiedErrorId : AmpersandNotAllowed
Anyone knows whats wrong?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have this error when running the script without any arguments (sync) :
out-lineoutput : The Win32 internal error "A device attached to the system is not functioning" 0x1F occurred while
writing to the console output buffer at the current cursor position. Contact Microsoft Customer Support Services.
+ CategoryInfo : WriteError: (:) [out-lineoutput], HostException
+ FullyQualifiedErrorId : WriteConsole,Microsoft.PowerShell.Commands.OutLineOutputCommand
I found out the script exits with this error if the script outputs a filename with a french accent "é,à,è...".
Removing the french accent from the file lets the script go further but still has the same error when it finds another file with french accent.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
just posting here to inform everybody that therealjmc has updated the script to be compliant with SnapRAID 8.1 (the new exit code of the diff command)
You can get it from the usual place at https://snapraidhelper.codeplex.com/
Last edit: Dimitar Pankov 2015-06-18
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am running into an error when running this script that I cannot seem to get around.
It was functioning perfectly for the last 3 months however beginning last week began to report: Sync Logs ERROR: SnapRAID diff Job FAILED on 06/25/2015 05:00:31 with exit code 2
I can't figure out how to get around this....
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
can anyone assist me with this powershell scripts i try run it but powershell opens and closes with a error i cant see... i have already setup the task scheduler and also set up the ability to run unsigned scripts just don't understand powershell very well
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Need to open a command prompt and run it manually so you can see the error. Once you open teh command prompt, provided that you've got all the prerequisite apps installed, you can simply type 'powershell <name of="" script="">' to launch it.
For example, I copied mine to my snapraid folder and when I open the command prompt, I typed powershell snapraid-helper.ps1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
snapraid-helper.ps1 : The term 'snapraid-helper.ps1' is not recognized as the name of a cmdlet, function, script fil
or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and
try again.
At line:1 char:1
+ snapraid-helper.ps1
+ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (snapraid-helper.ps1:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
that's what i got after run that same command you just posted ...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
ok got it to run but getting this error now about elevation access denied
Exception calling "Send" with "1" argument(s): "A from address must be specified."
At C:\SnapRaid\snapraid-helper.ps1:330 char:3
+ $smtpclient.Send($MailMessage)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : InvalidOperationException
New-EventLog : Access is denied. Try running the command again in a session that has been opened with elevated use
rights (that is, Run as Administrator).
At C:\SnapRaid\snapraid-helper.ps1:344 char:3
+ New-EventLog -Source SnapRaid-Helper -LogName Application
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [New-EventLog], Exception
+ FullyQualifiedErrorId : AccessIsDenied,Microsoft.PowerShell.Commands.NewEventLogCommand
write-eventlog : The source was not found, but some or all event logs could not be searched. Inaccessible logs:
Security.
At C:\SnapRaid\snapraid-helper.ps1:346 char:2
+ write-eventlog -logname Application -source SnapRaid-Helper -even ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-EventLog], SecurityException
+ FullyQualifiedErrorId : System.Security.SecurityException,Microsoft.PowerShell.Commands.WriteEventLogCommand
Stop-Transcript : The term 'Stop-Transcript' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and t
again.
At C:\SnapRaid\snapraid-helper.ps1:533 char:4
+ Stop-Transcript | out-null
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Stop-Transcript:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Please note that I am not familiar with Powershell, so there may be a more elegant/direct solution for this issue such as using an alternative method to write to the console. I tried to replicate the error, but have been unsuccessful after a scrub and sync. There were two 0-length files that I had to take care of, but I believe these to be unrelated. There were roughly 2800 adds, 800 mods, and ~100 deletes. Perhaps this issue was driven by the length of the buffer or something similar.
Issue:
Perpetually received Write to Host errors (error 0x1F) which stopped the script mid-scrub. I was able to run the script successfully within the Powershell ISE. This lead me to believe it was a cmd console writing issue.
"out-lineoutput : The Win32 internal error "A device attached to the system is not functioning" 0x1F occurred while writing to the console output buffer at the current cursor position. Contact Microsoft Customer Support Services.
+ CategoryInfo : WriteError: (:) [out-lineoutput], HostException
+ FullyQualifiedErrorId : WriteConsole,Microsoft.PowerShell.Commands.OutLineOutputCommand"
This issue caused the task scheduler to fail each time the script was called, returning the result "0x1" within Task Scheduler.
Solution:
Suppress standard console output, but keep file logs as much as possible. The downside is that you cannot see verbose execution when running the script, and thus cannot know snapraid's progress (may affect some logs, not sure).
To implement
-added " | Out-Null" to the end of lines 446, 449, and 454. This will suppress regular output to the console (I believe), but keep errors and warnings (allows snapraid to run)
-commented out line 528 (" #Write-Host $line") (allows the script to continue post initial scrub)
Again, pros: script can run and avoid the 0x1F error
cons: cannot see snapraid progress
Because I have the script setup to run nightly/weekly, I do not have to worry about the verbose portion being missing. Hope this work-around will help others. I searched far and wide and couldn't find anyone with a similar issue.
On a separate note I might learn some Powershell to setup the email to be sent at a later/specific time. I would hate to be woken up every night by my pebble watch with "SnapRAID - Success" at 3 am...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hmm, I haven't seen this error. I've had runs were drivepool moved a lot of files - resulting in ~10000 add, 2000 move and 5000 deletes. This didn't brake the sync and scrub. But glad this works for you :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I had this exact same error crop up 2 days ago after months of running your script without problems. After fiddling with it this morning to no avail. I finally just ran a regular sync within snapraid and that succeeded with no issue, then reran the syncandscrub with the script and it worked fine. The only thing I can see is that it might have been puking on the length of the file name or something within the name itself when it was printing it to the screen. Here's what I was seeing:
Windows PowerShell transcript start
Start time: 20150921063252
Username :xxxxxxxxxxxx
Machine : xxxxxxxxxxx (Microsoft Windows NT 6.1.7601 Service Pack 1)
Transcript started, output file is c:\SnapRAID\SnapRAID.log
Checking for Disk issues in Eventlog at 09/21/2015 06:32:52
TimeGenerated,EntryType,Source,Message
SnapRAID syncandscrub Job started on 09/21/2015 06:32:57
Loading state from c:/snapraid.content...
Comparing...
WARNING! Ignoring special 'system-directory' file 'f:/PoolPart.1a702512-9ea0-4c
e7-ae4f-a92962f48ada/.covefs'
WARNING! Ignoring special 'system-directory' file 'g:/PoolPart.60258e53-6c97-41
58-9e66-e04c8aa7bbc6/.covefs'
WARNING! Ignoring special 'system-directory' file 'h:/PoolPart.b2b98c3f-b9cf-4b
41-90d5-b65ed2ac4371/.covefs'
update f:/PoolPart.1a702512-9ea0-4ce7-ae4f-a92962f48ada/TV.Series/Orange is the
out-lineoutput : The Win32 internal error "A device attached to the system is
not functioning" 0x1F occurred while writing to the console output buffer at
the current cursor position. Contact Microsoft Customer Support Services.
+ CategoryInfo : WriteError: (:) [out-lineoutput], HostException
+ FullyQualifiedErrorId : WriteConsole,Microsoft.PowerShell.Commands.OutLi
neOutputCommand
Windows PowerShell transcript end
End time: 20150921063304
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well it worked for exactly one day before erroring out again with the same thing as ddashizzle. Much like him, I have it set to run every day at 5am and expect to see an email with the results at 6 when I get up for work. I've utilized his modified version for now.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm using "-scrubpercent 25" (without the quotes of course) fine :)
thanks
Does anyone know why the script fails with error? It worked before, but now seems to fail because of long filenames or something. Standalone SnapRAID still works fine. And the script, of course, works now when I synced with SnapRAID but crashes again if I move/copy those same files and try to run the script. System is using Stablebit Drivepool with drives mounted inside C:\Asemat\
I just added a directory of files like this to my drives and the script fails, here a sample of the log just before the error and script ends/crashes:
This is the error I receive when I try to run the script:
''''New-EventLog : Access is denied. Try running the command again in a session that has been opened with
elevated user rights (that is, Run as Administrator).
At C:\snapraid\snapraid-helper.ps1:325 char:3
+ New-EventLog -Source SnapRaid-Helper -LogName Application
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [New-EventLog], Exception
+ FullyQualifiedErrorId : AccessIsDenied,Microsoft.PowerShell.Commands.NewEventLogCommand
write-eventlog : The source was not found, but some or all event logs could not be searched. Inaccessible
logs: Security.
At C:\snapraid\snapraid-helper.ps1:327 char:2
+ write-eventlog -logname Application -source SnapRaid-Helper -eventID $EventlogI ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-EventLog], SecurityException
+ FullyQualifiedErrorId : System.Security.SecurityException,Microsoft.PowerShell.Commands.WriteEventLogC
ommand
Stop-Transcript : This host does not support transcription.
At C:\snapraid\snapraid-helper.ps1:1035 char:1
+ Stop-Transcript | out-null
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : NotImplemented: (:) [Stop-Transcript], PSNotSupportedException
+ FullyQualifiedErrorId : NotSupported,Microsoft.PowerShell.Commands.StopTranscriptCommand
''''
How do I run this as administrator?
Looks like my error (from two days ago) was fixed when I changed the console font to Lucida Console. I thought that it would just fix how certain characters are displayed (UTF8Console is =1) and didn't make the change before...
Figured it out
Last edit: Mike 2015-03-13
Trying to run this on Windows 7 Pro. I edited the files for my setup and installed the things noted in the file. Whenever I try to run the script I get the following error:
PS C:\snapraid> .\snapraid-helper.ps1
Ampersand not allowed. The & operator is reserved for future use; use "&" to pass ampersand as a string.
At C:\snapraid\snapraid-helper.ps1:443 char:84
+ & "$exe" -c $configfile $sargument -p $ScrubPercent -l $SnapRAIDLogfile 2>&1 3>& <<<< 1 4>&1 | %{ "$_" }
| tee-object -file $TmpOutput
+ CategoryInfo : ParserError: (:) [], ParseException
+ FullyQualifiedErrorId : AmpersandNotAllowed
Anyone knows whats wrong?
Take a look at line 443 at the ps1 file. It looks like the <<<<< are wrong - they should not be there. The line should look like this:
& "$exe" -c $configfile $sargument -p $ScrubPercent -l $SnapRAIDLogfile 2>&1 3>&1 4>&1 | %{ "$_" } | tee-object -file $TmpOutput
It does look like you described.
I guess it's just how the error message describes the line.
Could be it finds that the '&' after '3>' is the error?
Which version of Powershell are you using? It looks like your Version is too old (should be 3.0 or greater)
I upgraded powershell from the link: https://www.microsoft.com/en-us/download/details.aspx?id=40855&WT.mc_id=rss_alldownloads_all
I then got the same error as et328. Changed font to Lucida Console and everything is good now.
Thanks!
Hello,
I have this error when running the script without any arguments (sync) :
out-lineoutput : The Win32 internal error "A device attached to the system is not functioning" 0x1F occurred while
writing to the console output buffer at the current cursor position. Contact Microsoft Customer Support Services.
+ CategoryInfo : WriteError: (:) [out-lineoutput], HostException
+ FullyQualifiedErrorId : WriteConsole,Microsoft.PowerShell.Commands.OutLineOutputCommand
I found out the script exits with this error if the script outputs a filename with a french accent "é,à,è...".
Removing the french accent from the file lets the script go further but still has the same error when it finds another file with french accent.
Setting the "UTF8Console=0" solves my issue.
im new to powershell. i am trying to install the powershell on XP, from the MS website, it does not have BITS 4.0 for xp. is that strictly required?
Last edit: mbksgx 2015-03-31
Anyway to see if "syncandscrub" parameter work ?
Because the output it's the same with or without the "syncandscrub".
Thanks.
just posting here to inform everybody that therealjmc has updated the script to be compliant with SnapRAID 8.1 (the new exit code of the diff command)
You can get it from the usual place at
https://snapraidhelper.codeplex.com/
Last edit: Dimitar Pankov 2015-06-18
I am running into an error when running this script that I cannot seem to get around.
It was functioning perfectly for the last 3 months however beginning last week began to report: Sync Logs ERROR: SnapRAID diff Job FAILED on 06/25/2015 05:00:31 with exit code 2
I can't figure out how to get around this....
can anyone assist me with this powershell scripts i try run it but powershell opens and closes with a error i cant see... i have already setup the task scheduler and also set up the ability to run unsigned scripts just don't understand powershell very well
Need to open a command prompt and run it manually so you can see the error. Once you open teh command prompt, provided that you've got all the prerequisite apps installed, you can simply type 'powershell <name of="" script="">' to launch it.
For example, I copied mine to my snapraid folder and when I open the command prompt, I typed powershell snapraid-helper.ps1
snapraid-helper.ps1 : The term 'snapraid-helper.ps1' is not recognized as the name of a cmdlet, function, script fil
or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and
try again.
At line:1 char:1
+ snapraid-helper.ps1
+ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (snapraid-helper.ps1:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
that's what i got after run that same command you just posted ...
ok got it to run but getting this error now about elevation access denied
Exception calling "Send" with "1" argument(s): "A from address must be specified."
At C:\SnapRaid\snapraid-helper.ps1:330 char:3
+ $smtpclient.Send($MailMessage)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : InvalidOperationException
New-EventLog : Access is denied. Try running the command again in a session that has been opened with elevated use
rights (that is, Run as Administrator).
At C:\SnapRaid\snapraid-helper.ps1:344 char:3
+ New-EventLog -Source SnapRaid-Helper -LogName Application
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [New-EventLog], Exception
+ FullyQualifiedErrorId : AccessIsDenied,Microsoft.PowerShell.Commands.NewEventLogCommand
write-eventlog : The source was not found, but some or all event logs could not be searched. Inaccessible logs:
Security.
At C:\SnapRaid\snapraid-helper.ps1:346 char:2
+ write-eventlog -logname Application -source SnapRaid-Helper -even ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-EventLog], SecurityException
+ FullyQualifiedErrorId : System.Security.SecurityException,Microsoft.PowerShell.Commands.WriteEventLogCommand
Stop-Transcript : The term 'Stop-Transcript' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and t
again.
At C:\SnapRaid\snapraid-helper.ps1:533 char:4
+ Stop-Transcript | out-null
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Stop-Transcript:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Please note that I am not familiar with Powershell, so there may be a more elegant/direct solution for this issue such as using an alternative method to write to the console. I tried to replicate the error, but have been unsuccessful after a scrub and sync. There were two 0-length files that I had to take care of, but I believe these to be unrelated. There were roughly 2800 adds, 800 mods, and ~100 deletes. Perhaps this issue was driven by the length of the buffer or something similar.
Modified copy of the 3.2 script is on my Google drive: https://drive.google.com/file/d/0ByQ9HCXyE0QkNHVEYklNMDhnX0E/view?usp=sharing
Issue:
Perpetually received Write to Host errors (error 0x1F) which stopped the script mid-scrub. I was able to run the script successfully within the Powershell ISE. This lead me to believe it was a cmd console writing issue.
"out-lineoutput : The Win32 internal error "A device attached to the system is not functioning" 0x1F occurred while writing to the console output buffer at the current cursor position. Contact Microsoft Customer Support Services.
+ CategoryInfo : WriteError: (:) [out-lineoutput], HostException
+ FullyQualifiedErrorId : WriteConsole,Microsoft.PowerShell.Commands.OutLineOutputCommand"
This issue caused the task scheduler to fail each time the script was called, returning the result "0x1" within Task Scheduler.
Solution:
Suppress standard console output, but keep file logs as much as possible. The downside is that you cannot see verbose execution when running the script, and thus cannot know snapraid's progress (may affect some logs, not sure).
To implement
-added " | Out-Null" to the end of lines 446, 449, and 454. This will suppress regular output to the console (I believe), but keep errors and warnings (allows snapraid to run)
-commented out line 528 (" #Write-Host $line") (allows the script to continue post initial scrub)
Again, pros: script can run and avoid the 0x1F error
cons: cannot see snapraid progress
Because I have the script setup to run nightly/weekly, I do not have to worry about the verbose portion being missing. Hope this work-around will help others. I searched far and wide and couldn't find anyone with a similar issue.
On a separate note I might learn some Powershell to setup the email to be sent at a later/specific time. I would hate to be woken up every night by my pebble watch with "SnapRAID - Success" at 3 am...
Hmm, I haven't seen this error. I've had runs were drivepool moved a lot of files - resulting in ~10000 add, 2000 move and 5000 deletes. This didn't brake the sync and scrub. But glad this works for you :)
I had this exact same error crop up 2 days ago after months of running your script without problems. After fiddling with it this morning to no avail. I finally just ran a regular sync within snapraid and that succeeded with no issue, then reran the syncandscrub with the script and it worked fine. The only thing I can see is that it might have been puking on the length of the file name or something within the name itself when it was printing it to the screen. Here's what I was seeing:
Windows PowerShell transcript start
Start time: 20150921063252
Username :xxxxxxxxxxxx
Machine : xxxxxxxxxxx (Microsoft Windows NT 6.1.7601 Service Pack 1)
Transcript started, output file is c:\SnapRAID\SnapRAID.log
Checking for Disk issues in Eventlog at 09/21/2015 06:32:52
TimeGenerated,EntryType,Source,Message
SnapRAID syncandscrub Job started on 09/21/2015 06:32:57
Loading state from c:/snapraid.content...
Comparing...
WARNING! Ignoring special 'system-directory' file 'f:/PoolPart.1a702512-9ea0-4c
e7-ae4f-a92962f48ada/.covefs'
WARNING! Ignoring special 'system-directory' file 'g:/PoolPart.60258e53-6c97-41
58-9e66-e04c8aa7bbc6/.covefs'
WARNING! Ignoring special 'system-directory' file 'h:/PoolPart.b2b98c3f-b9cf-4b
41-90d5-b65ed2ac4371/.covefs'
update f:/PoolPart.1a702512-9ea0-4ce7-ae4f-a92962f48ada/TV.Series/Orange is the
out-lineoutput : The Win32 internal error "A device attached to the system is
not functioning" 0x1F occurred while writing to the console output buffer at
the current cursor position. Contact Microsoft Customer Support Services.
+ CategoryInfo : WriteError: (:) [out-lineoutput], HostException
+ FullyQualifiedErrorId : WriteConsole,Microsoft.PowerShell.Commands.OutLi
neOutputCommand
Windows PowerShell transcript end
End time: 20150921063304
Well it worked for exactly one day before erroring out again with the same thing as ddashizzle. Much like him, I have it set to run every day at 5am and expect to see an email with the results at 6 when I get up for work. I've utilized his modified version for now.