vbs:bulkshortcutrebuild
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
vbs:bulkshortcutrebuild [2014/04/29 12:59] – created gfsadministrator | vbs:bulkshortcutrebuild [2014/04/29 17:16] (current) – removed gfsadministrator | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Localhost Info ====== | ||
- | Ottiene le informazioni sulla scheda di rete ed eventuale adapter VPN restituendo i due IP interni e il nome macchina. Lo script originale è disponibile all' | ||
- | <file vb localhostinfo.vbs> | ||
- | dim NIC1, Nic, StrIP, CompName | ||
- | Set NIC1 = GetObject(" | ||
- | For Each Nic in NIC1 | ||
- | if Nic.IPEnabled then | ||
- | StrIP = Nic.IPAddress(i) | ||
- | CompName = WshNetwork.Computername | ||
- | Dim WMI, Configs, Config, Adapters, Adapter | ||
- | Set WMI = GetObject(" | ||
- | Set Configs = WMI.ExecQuery(" | ||
- | For Each Config In Configs | ||
- | Set Adapters = WMI.AssociatorsOf(" | ||
- | For Each Adapter In Adapters | ||
- | VPNIP = Config.IPAddress(0) | ||
- | Next | ||
- | Next | ||
- | MsgBox "IP Address: "& | ||
- | & "VPN IP Address: "& | ||
- | & " | ||
- | wscript.quit | ||
- | end if | ||
- | |||
- | next | ||
- | </ |
vbs/bulkshortcutrebuild.1398769161.txt.gz · Last modified: 2014/04/29 12:59 by gfsadministrator