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:

Disable WinRM

To disable remote management, Run PowerShell console as administrator, and then type:

WinRm Status

To know the current WinRm Status:

WinRM

If you want to know more about Windows Remote Management, check out this link: https://docs.microsoft.com/en-us/windows/desktop/winrm/portal