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