I'd like to browse and edit WinRM configuration settings but struggle with winrm.exe.

Is there an alternative app, a command line switch, XML file, registry setting (etc) that I should investigate?


WinRM is not very friendly. You can browse the settings easily enough:


That describes some of the details, but winrm get wsman:microsoft.com/wsman/2005/06/config -format:#xml will dump out an XML-formatted file for you to use.

Unfortunately, you can't put the whole file. That would be easy. Instead, you can put individual lines you want to change

winrm get wsman:microsoft.com/wsman/2005/06/config/Listener?IP= @{Hostname=myhost.example.com}

Where IP, and Port are selectors to pick the right Listener section, and Hostname is the value being changed.

  • How/where did you learn this? Where can I get more information? Are there API's I can use (via Managed or unmanaged code?) – goodguys_activate Feb 12 '12 at 4:41
  • @makerofthings7 If you're looking for programatic access to WinRM, try msdn. – sysadmin1138 Feb 12 '12 at 13:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.