An object at the specified path C:\Users\user~1.name does not exist
问题 So today I came across an issue whereby a powershell script was causing the deployment to fail. This job is set-up exactly the same on other machines. This one however just refused to work. The error was: An object at the specified path C:\Users\user~1.name does not exist heres the full log at the time of failure 2017-01-11T15:03:12.1295730Z Executing the powershell script: D:\Tfs\Agent2\tasks\PowerShellOnTargetMachines\1.0.25\PowerShellOnTargetMachines.ps1 2017-01-11T15:03:12.3014605Z ##