Get the script of this machine IP address

xiaoxiao2021-03-06  42

Usage: Save as a .vbs file, double click to run. Set ipconfigset = getObject ("WinMgmts: {ImpersonationLevel = Impersonate}"). 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 IfNext

转载请注明原文地址:https://www.9cbs.com/read-77377.html

New Post(0)