Skip to content

Windows WSMANHTTPCONFIG command

The Windows WSMANHTTPCONFIG command is used to configure WinRM settings for secure remote management. This command allows users to customize settings such as the maximum envelope size and the certificate thumbprint. By adjusting these settings, users can enhance the security and efficiency of their remote management processes. This command is particularly useful for system administrators who need to manage multiple systems remotely and want to ensure the security of their data transmissions. With the WSMANHTTPCONFIG command, users can tailor WinRM settings to meet their specific needs and maximize the effectiveness of their remote management capabilities.

WSMANHTTPCONFIG Syntax:

Terminal window
wsmanhttpconfig [option] [parameter]

Options:

OptionDescription
-r, —restoreRestore the WinRM service to its default configuration.
-l, —listList the current configuration settings.
-s, —set [setting]Set a specific configuration setting.

Parameters:

ParameterDescription
settingThe specific setting to be configured or set.

WSMANHTTPCONFIG Usage:

Enable WinRM HTTP listener on the default port 5985

Terminal window
wsmanhttpconfig -listener

Enables the WinRM HTTP listener on the default port 5985.

Disable WinRM HTTP listener

Terminal window
wsmanhttpconfig -listener -disable

Disables the WinRM HTTP listener.

Configure WinRM HTTP listener with a specific port

Terminal window
wsmanhttpconfig -listener -port 8080

Configures the WinRM HTTP listener to use port 8080 instead of the default port.

Display current WinRM HTTP listener configuration

Terminal window
wsmanhttpconfig -listener -get

Displays the current configuration of the WinRM HTTP listener.

How do I use wsmanhttpconfig in Windows?

To use the wsmanhttpconfig command in Windows, execute the following command:

Terminal window
wsmanhttpconfig -ep "/wsman" -p 5985

What is the purpose of the wsmanhttpconfig command?

The wsmanhttpconfig command in Windows is used to configure the WinRM HTTP listener settings.

How can I check the current configuration of the WSMAN HTTP listener?

You can check the current configuration of the WSMAN HTTP listener by running the following command:

Terminal window
wsmanhttpconfig -info

How do I set the maximum number of concurrent users for the WSMAN HTTP listener?

To set the maximum number of concurrent users for the WSMAN HTTP listener, use the following command:

Terminal window
wsmanhttpconfig -maxusers 100

Can I enable SSL encryption for the WSMAN HTTP listener using wsmanhttpconfig?

Yes, you can enable SSL encryption for the WSMAN HTTP listener with the following command:

Terminal window
wsmanhttpconfig -ssl

How can I reset the WSMAN HTTP listener configuration to default settings?

To reset the WSMAN HTTP listener configuration to default settings, you can run the following command:

Terminal window
wsmanhttpconfig -reset

Applications of the WSMANHTTPCONFIG Command

  • Configure the WinRM service to use HTTP instead of HTTPS
  • Set the HTTP listener port for WinRM
  • Enable or disable basic authentication for the WinRM service
  • Specify whether to use SSL for WinRM communication