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

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums

Go Back   Vista Forums > Vista technology newsgroups > PowerShell

invoke-expression -computername ...

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

invoke-expression -computername ...

Does the Windows Firewall service have to be running in order to use WS-Management? I really like this remoting capability, however, all of our servers have the service disabled. The only way I have been able to remote is with the service enabled. Any thoughts or should I give up on remoting for now?

Brad
bradn901cb is offline   Reply With Quote

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

Re: invoke-expression -computername ...

bradn901cb wrote:
Quote:

> Does the Windows Firewall service have to be running in order to use
> WS-Management? I really like this remoting capability, however, all of
> our servers have the service disabled. The only way I have been able to
> remote is with the service enabled. Any thoughts or should I give up on
> remoting for now?
>
>
You don't have to have the firewall running, but you'll have to do some
steps manually (versus running the automatic setup script).

I'll look them up, hopefully today, if nobody pipes up before me...

--
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-11-2008   #3 (permalink)
Lost, I think.
bradn901cb is on a distinguished road
 
Join Date: Apr 2008
:P
Posts: 5

Re: invoke-expression -computername ...

That would be great! No rush for this.

Thanks

Brad
bradn901cb is offline   Reply With Quote
Old 04-11-2008   #4 (permalink)
Marco Shaw [MVP]
Guest
 
Posts: n/a

Re: invoke-expression -computername ...

Quote:

> You don't have to have the firewall running, but you'll have to do some
> steps manually (versus running the automatic setup script).
>
> I'll look them up, hopefully today, if nobody pipes up before me...
I don't have a test VM right now to go through this and double-check,
but from the script, I gather the following needs to be done:

1. Run this:
PSH>$pshome/configure-wsman.ps1 -action CreateShell

2. Run all of these from PowerShell:
winrm set winrm/config/winrs `'@{MaxShellsPerUser=`"16`"}`'
winrm set winrm/config/winrs `'@{MaxConcurrentUsers=`"5`"}`'
winrm set winrm/config/winrs `'@{MaxMemoryPerShellMB=`"150`"}`'
winrm set winrm/config `'@{MaxTimeoutms=`"180000`"}`'
winrm set winrm/config `'@{MaxProviderRequests=`"400`"}`'
winrm set winrm/config/Service `'@{MaxConnections=`"50`"}`'
winrm create winrm/config/Listener?Address=*+Transport=HTTP"

This will provide the same environment, except that the firewall
exceptions aren't added.

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