Loading |
VBScript |
JavaScript |
Powershell |
Search Options: List Object Page Information for a User AccountContent of List Object Page Information for a User Account.vbsMD5 Hash: B1B6951596D4AB602094A288B8FBC363 |
||
' Description: Returns information about the MyerKen user account object in Active Directory.
Set objUser = GetObject _ ("GC://cn=MyerKen,ou=Management,dc=NA,dc=fabrikam,dc=com") strWhenCreated = objUser.Get("whenCreated") strWhenChanged = objUser.Get("whenChanged") Set objUSNChanged = objUser.Get("uSNChanged") dblUSNChanged = _ Abs(objUSNChanged.HighPart * 2^32 + objUSNChanged.LowPart) Set objUSNCreated = objUser.Get("uSNCreated") dblUSNCreated = _ Abs(objUSNCreated.HighPart * 2^32 + objUSNCreated.LowPart) objUser.GetInfoEx Array("canonicalName"), 0 arrCanonicalName = objUser.GetEx("canonicalName") WScript.echo "Canonical Name of object:" For Each strValue in arrCanonicalName WScript.Echo vbTab & strValue Next WScript.Echo WScript.Echo "Object class: " & objUser.Class WScript.echo "When Created: " & strWhenCreated & " (Created - GMT)" WScript.echo "When Changed: " & strWhenChanged & " (Modified - GMT)" WScript.Echo WScript.Echo "USN Changed: " & dblUSNChanged & " (USN Current)" WScript.Echo "USN Created: " & dblUSNCreated & " (USN Original)" | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |