Friday 27 April 2018

How to find system IP Address by VBScript (Program)

IP Address by VB Script

Step1- Open Notepad.
Step2- Write the Program.

dim DTC1, DTC, StrIP

Set DTC1 = GetObject("winmgmts:").InstancesOf("Win32_NetworkAdapterConfiguration")

For Each DTC in DTC1

if DTC.IPEnabled then

StrIP = DTC.IPAddress(i)
MsgBox "IP Address:  "&StrIP 


end if


Step3- Save this program as .vbs


Download VBS Code-  Click Here

No comments:

Post a Comment