I am attempting to create and access a Volume Shadow Copy snapshot using the Windows Power Shell in Windows 7. I found that I can create snapshots using the following via a
This is because the Invoke-Expression in the New-ShadowLink returns a string. If you modify the line to:
Invoke-Expression
New-ShadowLink
Invoke-Expression -Command "cmd /c mklink /d '$linkPath' '$target'" | Out-Null
it will fix the problem.