3

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?

1

1 Answer 1

2

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.

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .