Run a powershell script that is in a remote server


i trying run powershell script in remote server. can please help?

*note: not trying run local ps script on remote server.

thank you.

hi champ,

just understand correctly, trying this:

\\server\share\scripts\script.ps1

and errors on you? executionpolicy maybe?

try running this:

set-executionpolicy unrestricted -scope process \\server\share\scripts\script.ps1

if that's not it, you'll need explain scenario in more detail , provide errors. can use reproduce issue.

cheers,
fred


there's no place 127.0.0.1



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

2008 Windows Deployment Server Properties Error

Can no longer user MS Update - Files required to use Microsoft Update are no longer registered

How do a find data in one file, search for it in another file and if not found, write a custom message to another file