Windows Remote Management (WinRM) allows you to manage a server from a remote location using PowerShell and WMI-based tools. In this post, I want to show you how to manage WinRM from a PowerShell session.
On the server that you want to manage remotely, Run the executable file %windir%\system32\Configure-SMRemoting.exe with the following syntax:
Enable WinRM
To enable remote management, Run PowerShell console as administrator, and then type:
1 2 3 | Configure-SMRemoting.exe -Enable |
Disable WinRM
To disable remote management, Run PowerShell console as administrator, and then type:
1 2 3 | Configure-SMRemoting.exe -Disable |
WinRm Status
To know the current WinRm Status:
1 2 3 | Configure-SMRemoting.exe -Get |
If you want to know more about Windows Remote Management, check out this link: https://docs.microsoft.com/en-us/windows/desktop/winrm/portal