Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Running a command in a remote Powershell session

$
0
0

Hi,

I have used the Enter-PSSession to get a remote session on a domain controller... all is ok with that.

when i run the following command it fails, however if i run this locally on the domain controller it succeeds. this command is correct, it just fails with the remote powershell session

dsacls.exe "OU=MYTestOU,OU=Servers,DC=MyDomain,DC=Local" /G "mydomain\MyComputer$":GRGWCC

I have tried placing c:\windows\system32 before the exe, and i have also tried cmd /c dsacls.exe .........

i cant figure out why this doesnt work, can anyone help?

thanks

Steve



Viewing all articles
Browse latest Browse all 15028

Trending Articles