ник: osmor
зачем тогда вообще пароль?
определение имени компьютера
http://hiprog.com/index.php?option=com_content&task=view&id=257
Вывод списка IP адресов компьютера
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)
debug.print IPConfig.IPAddress(i)
Next
End If
Next
|