Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Store Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems.

Go Back   Vista Forums > Vista technology newsgroups > PowerShell

remoting - invoke-expression port

Reply
 
Thread Tools Display Modes
Old 04-09-2008   #1 (permalink)
Lost, I think.
bradn901cb is on a distinguished road
 
Join Date: Apr 2008
:P
Posts: 5

remoting - invoke-expression port

I'm having issues using this, and I believe it is because IIS is running on my remote machine and winrm using port 80. How do I change the port that it is listening on?

Brad
bradn901cb is offline   Reply With Quote

Old 04-09-2008   #2 (permalink)
Marco Shaw [MVP]
Guest
 
Posts: n/a

Re: remoting - invoke-expression port

bradn901cb wrote:
Quote:

> I'm having issues using this, and I believe it is because IIS is running
> on my remote machine and winrm using port 80. How do I change the port
> that it is listening on?
>
>
Is the remote machine Windows XP? Does invoke-expression and/or
start-psjob work locally on that remote machine?

If it turns out that it is IIS causing the problem:

I'd run "stop-service winrm", first, then this is the command:
winrm set winrm/config/Listener?Address=*+Transport=HTTP @{Port="81"}

I actually ran it from DOS because, then I didn't have to worry about
escaping any characters.

The above assumes you have a pretty default winrm config running now.

Remember to use the -port parameter now.

Marco

--
Microsoft MVP - Windows PowerShell
http://www.microsoft.com/mvp

PowerGadgets MVP
http://www.powergadgets.com/mvp

Blog:
http://marcoshaw.blogspot.com
  Reply With Quote
Old 04-09-2008   #3 (permalink)
Marco Shaw [MVP]
Guest
 
Posts: n/a

Re: remoting - invoke-expression port

Quote:

> Remember to use the -port parameter now.
>
> Marco
>
Oh, and remember to open up a new port for incoming TCP connections if
you're using the client-side firewall.

Marco
  Reply With Quote
 
Reply

Thread Tools
Display Modes









Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48