Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Determine if computer is member of a domainContent of Determine if computer is member of a domain.vbsMD5 Hash: ECFE516169ADBA93A9B28577538AB23E |
||
Dim oComputerSystem : Set oComputerSystem = GetObject("winmgmts://.").InstancesOf("Win32_ComputerSystem")
Dim bMember : bMember = false For Each oEntry in oComputerSystem If oEntry.DomainRole = 1 then WScript.Echo "Computer is Member of a Domain" bMember = true Exit For End if Next If (bMember = false) then WScript.Echo "Computer is not Member of a Domain" End if | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |