Categories
Powershell

PowerShell get-help update-help

Troubleshooting update-help in Powershell can be simplified using the -Force and -Ea 0 commands to continue past errors along with the to “-Ev what” to record the errors in a verbose manner to the $what variable.

The $what variable can then be reviewed more closely and the cause of the failure (hopefully) identified.

Update-Help  -Force -Ea 0 -Ev what
$what.Exception

Creds to https://social.technet.microsoft.com/Forums/ie/en-US/0e09330a-ddb8-440e-b54c-312c99af90e4/failed-to-update-help-for-the-modules-microsoftpowershelloperationvalidation-with-ui?forum=winserverpowershell

Categories
Microsoft
xcopy /C/H/R/S/Y c:\ d:\

/C = Continues copying even if errors occur
/H = Copies hidden and system files also
/R = Overwrites read-only files
/S = Copies directories and subdirectories
/Y = Overwrites existing files without asking

 

robocopy c:\ d:\ /MIR /R:0 /W:0

/MIR = Mirror entire directory structure (can use /E instead)
/R:0 = 0 retries for read/write failures
/W:0 = 0 seconds between retries

Credit to: https://djlab.com/2010/12/windows-ignore-errors-with-xcopy-and-robocopy/