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.
Related videos on Youtube
Author by
Juanjo Daza
Updated on September 18, 2022Comments
-
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 about 12 years
-
-
Juanjo Daza about 12 yearsHow/where did you learn this? Where can I get more information? Are there API's I can use (via Managed or unmanaged code?)