Loading
Scriptbox
 VBScript Links 
 About VBscript 
 JavaScript Links 
 About JavaScript 
 Powershell Links 
 PSCRIPT the Script Launcher 
 PowerShell Shortcut Keys 
 About Powershell 
     VBScript
    JavaScript
    Powershell
Disclaimer
Contact
Latest 10 Scripts
Script search
  :: { Category } :: 0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ
         

Search Options:  Determine  if  computer  is  member  of  a  domain  

 Content of Determine if computer is member of a domain.vbs
MD5 Hash: C5659F08DE8C26FF9EA5C70B28E2E6CD
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 - 2010 Boris Toll      :: Scripts available: 6.476 ::      :: scriptbox.boris-toll.at ::      :: powered by www.boris-toll.at ::
  Google Entries:5.760
  Yahoo Backlinks:n/a
  Live Backlinks:29
  del.icio.us Bookmarks:n/a
  Technorati Links:n/a