Trying to start a process through Octopus as a different user

We need to run a Powershell script called through a Powershell step run with elevated permissions (a service account) or can we pass a credential object of some sort.

We are running “start-process powershell -Credential $cred -argumentlist $exeString” after setting the proper credentials for $cred.

We have not found documentation to facilitate this.

Thanks in advance

Hi Reggie,

I am very sorry about not getting back to you sooner, this message got lost in the forum spam filter and I only just found it does this.
Would the following help? http://docs.octopusdeploy.com/display/OD/Run+Tentacle+under+a+specific+user+for+use+in+PowerShell
It will allow you to run Tentacle (and thus what Tentacle runs) under a specific user.

Vanessa