Changing WinRM service/server port


  1.    02 Jan 2010 #1
    Marco Shaw [MVP] Guest

    Changing WinRM service/server port


    Anyone know how to change the server/service port?

    I've created a listener, but I think I need to change the WinRM client
    and server to use the new port...

    PS C:\> Set-WSManInstance -ResourceURI
    winrm/config/service/DefaultPorts -Value @{HTTP="6000"}
    Set-WSManInstance : The WinRM client cannot process the request
    because it is trying to update a read-only setting. Rem
    ove this setting from the command and try again.
    At line:1 char:18
    + Set-WSManInstance <<<< -ResourceURI
    winrm/config/service/DefaultPorts -Value @{HTTP="6000"}
    + CategoryInfo : InvalidOperation: (
    [Set-WSManInstance], InvalidOperationException
    + FullyQualifiedErrorId :
    WsManError,Microsoft.WSMan.Management.SetWSManInstanceCommand
      My System SpecsSystem Spec

  2.    06 Jan 2010 #2
    Bob Landau Guest

    RE: Changing WinRM service/server port


    Marco,

    The settings you are trying to change are global which is another way of
    saying assuming you can change these any scripts you give us using powershell
    remoting would break and visa versa.

    How are you making the remote call?

    Either

    Invoke-Command -Computer X -Port 6000 ...

    or

    Invoke-Command -ConnectionURI http://X:6000 ...

    should work. I've yet to try this out but this is on my short list but I
    don't want to experiement on my main machine so need to create a VM for
    testing.


    "Marco Shaw [MVP]" wrote:

    > Anyone know how to change the server/service port?
    >
    > I've created a listener, but I think I need to change the WinRM client
    > and server to use the new port...
    >
    > PS C:\> Set-WSManInstance -ResourceURI
    > winrm/config/service/DefaultPorts -Value @{HTTP="6000"}
    > Set-WSManInstance : The WinRM client cannot process the request
    > because it is trying to update a read-only setting. Rem
    > ove this setting from the command and try again.
    > At line:1 char:18
    > + Set-WSManInstance <<<< -ResourceURI
    > winrm/config/service/DefaultPorts -Value @{HTTP="6000"}
    > + CategoryInfo : InvalidOperation: (
    > [Set-WSManInstance], InvalidOperationException
    > + FullyQualifiedErrorId :
    > WsManError,Microsoft.WSMan.Management.SetWSManInstanceCommand
    > .
    >
      My System SpecsSystem Spec

  3.    06 Jan 2010 #3
    Bob Landau Guest

    RE: Changing WinRM service/server port


    don't forget about the firewall

    http://support.microsoft.com/default.aspx/kb/947709

    "Bob Landau" wrote:

    > Marco,
    >
    > The settings you are trying to change are global which is another way of
    > saying assuming you can change these any scripts you give us using powershell
    > remoting would break and visa versa.
    >
    > How are you making the remote call?
    >
    > Either
    >
    > Invoke-Command -Computer X -Port 6000 ...
    >
    > or
    >
    > Invoke-Command -ConnectionURI http://X:6000 ...
    >
    > should work. I've yet to try this out but this is on my short list but I
    > don't want to experiement on my main machine so need to create a VM for
    > testing.
    >
    >
    > "Marco Shaw [MVP]" wrote:
    >

    > > Anyone know how to change the server/service port?
    > >
    > > I've created a listener, but I think I need to change the WinRM client
    > > and server to use the new port...
    > >
    > > PS C:\> Set-WSManInstance -ResourceURI
    > > winrm/config/service/DefaultPorts -Value @{HTTP="6000"}
    > > Set-WSManInstance : The WinRM client cannot process the request
    > > because it is trying to update a read-only setting. Rem
    > > ove this setting from the command and try again.
    > > At line:1 char:18
    > > + Set-WSManInstance <<<< -ResourceURI
    > > winrm/config/service/DefaultPorts -Value @{HTTP="6000"}
    > > + CategoryInfo : InvalidOperation: (
    > > [Set-WSManInstance], InvalidOperationException
    > > + FullyQualifiedErrorId :
    > > WsManError,Microsoft.WSMan.Management.SetWSManInstanceCommand
    > > .
    > >
      My System SpecsSystem Spec

  4.    06 Jan 2010 #4
    Marco Shaw [MVP] Guest

    Re: Changing WinRM service/server port


    New-PsSession supports a Port parameter, which likely allows one to override
    the default WinRM settings *or*, you can edit the WinRM client itself to use
    a different port to match the server-side...

    Marco

    "Bob Landau" <BobLandau@newsgroup> wrote in message
    news:E1168E8A-3C61-4E87-A848-0688DD90C27A@newsgroup

    > Marco,
    >
    > The settings you are trying to change are global which is another way of
    > saying assuming you can change these any scripts you give us using
    > powershell
    > remoting would break and visa versa.
    >
    > How are you making the remote call?
      My System SpecsSystem Spec

Changing WinRM service/server port

Similar Threads
Thread Forum
Protocol: SMTP, Server Response: '250 HELP', Port: 25, Secure(SSL): Yes, Server Error: 250, Error Number: 0x800CCC7D
I cant receive or send emails in windows mail. What do I have todo?
Vista mail
Changing port 443 to some other
We have a SSL VPN device which needs port 443 I need to change the SBS port 443 to say 444 for WebAccess can anyone point me in the right...
SBS Server
net.tcp port sharing service - any disadvantages?
Hi, I'm developing a set of services for a software solution. It will be broken down in several application including a few windows services. ...
.NET General
Changing default http port (80)?
Hola! Is there a way to change the default port that http browsing uses? Lately I've been getting terrible lag time when browsing websites (such...
Network & Sharing
winrm connection to custom web service
Hi, I'm trying to connect to a WS-Man compliant custom web service using powershell, but am not having much luck. It seems like when I try to...
PowerShell
Parallel Port Driver Service Error
I wish I could disable this Service but I can't find it. At every bootup I get this message in Event Viewer/Windows Logs/System: Error: Service...
Vista General
Changing Port Number
Rookie question: How do i change the port number on Windows Vista - Windows Mail. Thanks
Vista mail

Our Sites
  • Ten Forums
  • Eight Forums
  • Seven Forums
  • Help Me Bake
  • Site Links
  • Contact Us
  • Privacy and Cookies
  • About Us
    Windows Vista Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

    Designer Media Ltd
    All times are GMT -5. The time now is 08:44.
    .