Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
    

1 Answer 1

up vote 2 down vote accepted

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|improve this answer
    
How/where did you learn this? Where can I get more information? Are there API's I can use (via Managed or unmanaged code?) –  makerofthings7 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

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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