Ncis fanatic
  Home FAQ Contact Sign in
 
Advanced search
MATCHING GROUPS



more...
POPULAR GROUPS

more...

found 8 articles for 0.316 sec
Tested the powershell example you provided below on Windows 2008 Web Edition and all good! We are configuring the NIC's to be teamed via HP command line tool (cqniccmd.exe) then use the powershell script to configure the names/ip stack as part of our scripted server builds... Powershell... $NetworkConnectionsMask = 0x31 $Shell = New-Object -com shell.application $NetworkConnections =     

Group: microsoft.public.windows.powershell · Group Profile · Search for Ncis fanatic in microsoft.public.windows.powershell
Author: Matt Duguid
Date: Jun 29, 2008 16:08

Hi Matt, The NetConnectionID property is read-only on Windows Server 2003 and Windows XP. http://msdn.microsoft.com/en-us/library/aa394216(VS.85).aspx --- Shay Levi $cript Fanatic http://scriptolog.blogspot.com Thanks for the update. Back at work in a few hours so will try it on Windows 2008 and will advise outcome. Interested to see the other method you posted via
Show full article (6.15Kb) · Show article thread
Thanks for the update. Back at work in a few hours so will try it on Windows 2008 and will advise outcome. Interested to see the other method you posted via the shell.application object in powershell as I have seen a working vbscript example using same object... Cheers... ;) -- Matt Duguid "Shay Levi" wrote: > > > Yet another valid local method: > > $NETWORK_CONNECTIONS     

Group: microsoft.public.windows.powershell · Group Profile · Search for Ncis fanatic in microsoft.public.windows.powershell
Author: Shay Levi
Date: Jun 29, 2008 09:18

Yet another valid local method: $NETWORK_CONNECTIONS = 0x31 $shell = new-object -com shell.application $netcon = $shell.namespace($NETWORK_CONNECTIONS) $netcon.items() | where {$_.name -eq 'oldConnectionName'} | foreach {$_.name = "newConnectionName"} --- Shay Levi $cript Fanatic http://scriptolog.blogspot.com Hi Matt, On XP SP2 I get the same error as yours:
Show full article (4.36Kb) · Show article thread
Hi Matt, On XP SP2 I get the same error as yours: Exception calling "Put" with "0" argument(s): "Provider is not capable of the attempted operation " It works on Vista SP1: # get the current netconnectionid PS > $nci = gwmi -q "select * from win32_networkadapter" -computer localhost | where {$_.netconnectionid -eq 'Local Area Connection 1'} PS > $nci.NetConnectionID Local Area     

Group: microsoft.public.windows.powershell · Group Profile · Search for Ncis fanatic in microsoft.public.windows.powershell
Author: Matt Duguid
Date: Jun 29, 2008 02:42

Thanks for the quick response. I tested the code and it finds the card OK but has an issue when attempting to write back with put(). Does it requires another argument and do I need to use the .set property anywhere? Exception calling "Put" with "0" argument(s): "Exception calling "Put" with "0" argument(s): "Provider is not capable of the attempted operation "" At C:\temp\nic.ps1:3 char:73
Show full article (4.04Kb) · Show article thread
Gets the adapter where NetConnectionID is "Local Area Connection 1" and change it to "Local Area Connection": $nci = gwmi -q "select * from win32_networkadapter" -computer localhost | where {$_.NetConnectionID -eq "Local Area Connection 1"} if($nci){$nci.NetConnectionID="Local Area Connection"; $nci.put()} --- Shay Levi $cript Fanatic http://scriptolog.blogspot.com MD> Just wondering     

Group: microsoft.public.windows.powershell · Group Profile · Search for Ncis fanatic in microsoft.public.windows.powershell
Author: Shay Levi
Date: Jun 29, 2008 02:11

<nan@wizozkansas.com> wrote in message news:1178501739.715200.301520@e65g2000hsc.googlegroups.com... In the case of California vs Cynthia Sommer: Feb.18, 02 , Cindy Sommer's husband, Sgt. Todd Sommer, USMC, died following a brief illness. Cause of death listed on autopsy was cardiac arrhythmia, etiology unknown. His heart was later labeled "morphologically normal", which is quite
Show full article (3.47Kb) · Show article thread
    

Group: microsoft.public.windows.powershell · Group Profile · Search for Ncis fanatic in microsoft.public.windows.powershell
Author: Shay Levi
Date: Jun 29, 2008 01:47

Show full article (2.90Kb) · Show article thread
    

Group: microsoft.public.windows.powershell · Group Profile · Search for Ncis fanatic in microsoft.public.windows.powershell
Author: Matt Duguid
Date: Jun 28, 2008 18:35

Show full article (1.55Kb) · Show article thread
    

Group: microsoft.public.windows.powershell · Group Profile · Search for Ncis fanatic in microsoft.public.windows.powershell
Author: Shay Levi
Date: Jun 27, 2008 01:36

Show full article (0.92Kb) · Show article thread
    

Group: sci.physics · Group Profile · Search for Ncis fanatic in sci.physics
Author: hanson
Date: May 7, 2007 08:49

Show full article (3.35Kb)