Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Enable-PSRemoting -Force
- Set-Item WSMAN:localhostclienttrustedhosts <host_ip>
- Restart-Service WinRM
- Invoke-Command -ComputerName <name> -Credential <username> -ScriptBlock { Get-ChildItem C: }
Add Comment
Please, Sign In to add comment