Windows 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 Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

Change wins on remote servers

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 02-29-2008   #1 (permalink)
Bruno
Guest


 

Change wins on remote servers

Hi
I am trying to use Powershell to change a remote nic configuration on
several servers.
What i would like to achive is the equivalent of the netsh functionality
(tried netsh -r that didn't work, so ended up with the wmic command)

Wmic /node:computername process call create “netsh int ip add wins L
10.1.1.1 index=1”

Note also that I will end up with 4 Wins servers for some time, then remove
the two obsolete ones, [but i don't see a way to get the 3rd and 4th ones
with Wmi].
As Powershell remoting is due in V2, is there another solution ? [Not that
this one does not work, but full powershell would be more 'elegant']

thanks in advance
bruno

My System SpecsSystem Spec
Old 02-29-2008   #2 (permalink)
Marco Shaw [MVP]
Guest


 

Re: Change wins on remote servers

Bruno wrote:
Quote:

> Hi
> I am trying to use Powershell to change a remote nic configuration on
> several servers.
> What i would like to achive is the equivalent of the netsh functionality
> (tried netsh -r that didn't work, so ended up with the wmic command)
>
> Wmic /node:computername process call create “netsh int ip add wins L
> 10.1.1.1 index=1”
>
> Note also that I will end up with 4 Wins servers for some time, then remove
> the two obsolete ones, [but i don't see a way to get the 3rd and 4th ones
> with Wmi].
> As Powershell remoting is due in V2, is there another solution ? [Not that
> this one does not work, but full powershell would be more 'elegant']
>
> thanks in advance
> bruno
The remoting layer of v2 is Windows Remote Management (winrm)(it is
based on the WS-MANAGEMENT standard) which is out as version 1.1 and is
production ready.

It comes with winrs for running remote commands like you would in DOS or
PowerShell.

So your command would look like:
winrs -r:http://computername netsh int ip add wins...

This way, you can use simple HTTP or HTTPS protocols to manage remote
systems, instead of WMI/DCOM.

So getting winrm on your systems will prepare them for v2...

Marco

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

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

Blog:
http://marcoshaw.blogspot.com
My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to force remote replication in many servers using s AlonsoII VB Script 0 07-22-2008 08:26 AM
connecting to different remote servers Manjot VB Script 1 06-09-2008 12:33 AM
Wins Vista Can't Join into Domain (Wins NT4) KK Siaw Vista networking & sharing 1 08-24-2007 06:40 AM
Re: How could I change the incoming and outgoing servers? Richard Urban Vista mail 2 02-17-2007 05:20 PM
Access to Remote Servers Possible? Matt PowerShell 3 01-17-2007 03:28 PM


Update your Vista Drivers Update Your Drivers Now!!

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