Guest User

Untitled

a guest
Jan 18th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. Enable-PSRemoting -Force
  2. Set-Item WSMAN:localhostclienttrustedhosts <host_ip>
  3. Restart-Service WinRM
  4.  
  5. Invoke-Command -ComputerName <name> -Credential <username> -ScriptBlock { Get-ChildItem C: }
Add Comment
Please, Sign In to add comment