0
votes
2answers
55 views

Can an encrypted credential be accessed from within a PSSession?

My local machine exists on a domain in a separate forest from the forest I administer. As a result, I use PSSessions extensively. While I have been able to encrypt my credentials and save them in my ...
1
vote
1answer
2k views

Can't run powershell start-process with alternate credentials

tI am trying to run a powershell script from another powershell script using alternate credentials. If I run: $cred = get-credentials $localArgs = "/c Powershell c:\myscript.ps1" Start-Process ...
1
vote
4answers
6k views

Specify Credentials to run Powershell Script to Query AD

I want to run a powershell script to query AD from a machine that is NOT on the domain. Basically I want to query to see if there is computer account already on the domain for this machine and create ...