Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Check to See if a User Exists in an NT 4 DomainContent of Check to See if a User Exists in an NT 4 Domain.vbsMD5 Hash: 0A7E832B23E9486B2EE6D989FE66648E |
||
Set objDomain = GetObject("WinNT://fabrikam")
objDomain.Filter = Array("User") blnFound = FALSE For Each objUser in objDomain If objUser.Name = "kenmyer" Then blnFound = TRUE Exit For End If Next If blnFound = TRUE Then Wscript.Echo "The user account exists in the domain." Else Wscript.Echo "The user account does not exist in the domain." End If | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |