Server Networking Information
From: M (anonymous_at_discussions.microsoft.com)
Date: 04/29/04
- Next message: Jeff Cochran: "Re: Change DNS on NT 4.0"
- Previous message: Jeff: "Re: Help with a logon script"
- In reply to: marjina98_at_hotmail.com: "Server Networking Information"
- Next in thread: Viatcheslav V. Vassiliev: "Re: Server Networking Information"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 29 Apr 2004 11:44:48 -0700
Try downloading Primal script and use the WMI wizard.
That should help.
M
>-----Original Message-----
>Hi Viatcheslav V. Vassiliev,
>
>COuld you please tell us where should we find the
scripts which give
>the information of Server IP Address & Network Adapter
Information for
>windows 2000 server? IF Possible
>I will be thankful to you.
>
>Regards
>
>Marjina
>
>
>"Viatcheslav V. Vassiliev" <msnewsgroup@www-sharp.com>
wrote in message
news:<#1lsvedLEHA.3216@tk2msftngp13.phx.gbl>...
>> Works on XP. Returns real IP address.
>>
>> //------------------------------------
>> Regards,
>> Vassiliev V. V.
>> http://www-sharp.com -
>> Scripting/HTA/.Net Framework IDE
>>
>>
<marjina98@hotmail.com> ???????/???????? ? ???????? ??????
???:
>> news:24bfee06.0404290236.2ad52942@posting.google.com...
>> > Hi,
>> >
>> > I am using the following script for getting Network
Adapter
>> > information of the server, but I didn't get any row.
>> > Is that script giving the Network Adapter
Information?
>> > I am using Windows 2000 Server.
>> > Any advice will be great.
>> >
>> > Regards
>> >
>> > Marjina
>> >
>> >
>> >
>> >
>> > Script
>> >
>> >
>> >
>> > strComputer = "."
>> > Set objWMIService = GetObject("winmgmts:\\" &
strComputer &
>> > "\root\cimv2")
>> > Set IPConfigSet = objWMIService.ExecQuery _
>> > ("Select IPAddress from
Win32_NetworkAdapterConfiguration where
>> > IPEnabled=TRUE")
>> > For Each IPConfig in IPConfigSet
>> > If Not IsNull(IPConfig.IPAddress) Then
>> > For i=LBound(IPConfig.IPAddress) to UBound
(IPConfig.IPAddress)
>> > WScript.Echo IPConfig.IPAddress(i)
>> > Next
>> > End If
>> > Next
>.
>
- Next message: Jeff Cochran: "Re: Change DNS on NT 4.0"
- Previous message: Jeff: "Re: Help with a logon script"
- In reply to: marjina98_at_hotmail.com: "Server Networking Information"
- Next in thread: Viatcheslav V. Vassiliev: "Re: Server Networking Information"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|