![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | IP Address I want to retrieve the IP address of the machine running my script. I need a how to, or better yet a good resource that has a list off all the functions for vbscript listed in a nice understandable order....any help would be great! Thanks in advance. James |
My System Specs![]() |
| | #2 (permalink) |
| | Re: IP Address James wrote: Quote: >I want to retrieve the IP address of the machine running my script. I need >a how to, or better yet a good resource that has a list off all the >functions for vbscript listed in a nice understandable order....any help >would be great! > addresses of the local computer. See this link from the Script Center: http://www.microsoft.com/technet/scr.../nwlsvb01.mspx For VBScript functions download the WSH documentation: http://www.microsoft.com/downloads/d...displaylang=en -- Richard Mueller MVP Directory Services Hilltop Lab - http://www.rlmueller.net -- |
My System Specs![]() |
| | #3 (permalink) |
| | Re: IP Address Thanks again Richard. Here is what I found if anyone wants to use it... strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set IPConfigSet = objWMIService.ExecQuery _ ("Select * 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) msgbox IPconfig.IPAddress(i),0,"IP Address" Next End If Next James "Richard Mueller [MVP]" <rlmueller-nospam@xxxxxx> wrote in message news:%23SJr2LSFKHA.4932@xxxxxx Quote: > James wrote: > Quote: >>I want to retrieve the IP address of the machine running my script. I >>need a how to, or better yet a good resource that has a list off all the >>functions for vbscript listed in a nice understandable order....any help >>would be great! >> > Most clients today (from Windows 2000 on) can use WMI to retrieve the IP > addresses of the local computer. See this link from the Script Center: > > http://www.microsoft.com/technet/scr.../nwlsvb01.mspx > > For VBScript functions download the WSH documentation: > > http://www.microsoft.com/downloads/d...displaylang=en > > -- > Richard Mueller > MVP Directory Services > Hilltop Lab - http://www.rlmueller.net > -- > > |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| How to eliminate invalid e-mail address from address book | Vista mail | |||
| Can i migrate/associate http://mynick.spaces.live.com/ web address with my new email address??? | Live Messenger | |||
| setting for replies: receiver address - not default address | Vista mail | |||
| Help me --Hyper link address.. doesnt take me.. to article (web address) in Window Vista 32 | Vista General | |||