Rexxer

Some tips for me and other

Powershell + Remote

Run powershell on the remote PC and run it:

Enable-PSRemoting -Force
Set-Item wsman:\localhost\client\trustedhosts *
Restart-Service WinRM

Test the connection from the local PC:

Test-WsMan COMPUTERNAME

Run the remote command:

Invoke-Command -ComputerName COMPUTERNAME -ScriptBlock { COMMAND } -credential USERNAME

Comments are currently closed.