How do I browse and edit WinRM configuration settings?

9,319

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

http://technet.microsoft.com/en-us/library/cc782312%28WS.10%29.aspx

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=10.1.2.3+Port=443 @{Hostname=myhost.example.com}

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

Share:
9,319

Related videos on Youtube

Juanjo Daza
Author by

Juanjo Daza

Updated on September 18, 2022

Comments

  • Juanjo Daza
    Juanjo Daza over 1 year

    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?

  • Juanjo Daza
    Juanjo Daza about 12 years
    How/where did you learn this? Where can I get more information? Are there API's I can use (via Managed or unmanaged code?)