Powershell job with alternate credentials from Octopus Deploy
问题 I've got an Octopus Tentacle running a deploy script. The tentacle is running as the LocalSystem account. Inside the script, I'm able to do pretty much everything I need, aside from some archive bit. The archive needs to be done under different domain credentials because it's on a network share. The frustrating this is that the code below works locally, but when run off the tentacles, it fails with the error ----------------------------------------------------[ Backup Nupkg ]-----------------