I am trying to get some powershell commands to run on an remote computer when I make a POST-request to a andpoint but cant figure out how to get it to work. I can run the same commands from a powershell prompt/ISE and it works
But when I try the same using node-powershell I get an errormessage: "Principal Gäst was not found."
This works running from a remote using powershell:
I am trying to get some powershell commands to run on an remote computer when I make a POST-request to a andpoint but cant figure out how to get it to work. I can run the same commands from a powershell prompt/ISE and it works
But when I try the same using node-powershell I get an errormessage: "Principal Gäst was not found."
This works running from a remote using powershell:
This does not work running from a node applikation:
addUserToLocalAdminGroup.ps1