jessemoore

WinRMConfig

Apr 28th, 2022
1,498
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # # TROUBLESHOOTING WINRM
  2. Get-Service WinRM -Computername CLIENT1 | Select MachinName, Name, Status, StartupType
  3. # IF its not enable then enable it
  4. Enable-PSRemoting -Force
  5. Set-Item wsman:\localhost\client\trustedhosts *
  6. Restart-Service WinRM
  7. #
  8. #
  9. # Test-WsMan COMPUTER
  10. # Invoke-Command -ComputerName CLIENT1 -ScriptBlock {ipconfig} -Credential Administrator
  11. # https://www.howtogeek.com/117192/how-to-run-powershell-commands-on-remote-computers/
Advertisement
Add Comment
Please, Sign In to add comment