Extending Active Directory Functionality
- ADSIEdit.MSC :: (This can be installed from the Windows 2000/2003 Support Tools)
- An Active Directory account with “Enterprise Admins” permissions assigned to it.
VBScript
For this post, we will assume you have created a VBSscript named “Display_User.vbs”, and once done you have already moved/copied this script to the NETLOGON share of one of your domain controllers (DC).
On Error Resume Next Set wshArguments = WScript.Arguments Set objUser = GetObject(wshArguments(0)) str1 = "Last Login: " & objUser.LastLogin str2 = "Last Logoff: " & objUser.LastLogoff str3 = "Last Failed Login: " & objUser.LastFailedLogin str4 = "Logon Count: " & objUser.logonCount str5 = "Bad Login Count: " & objUser.BadLoginCount str6 = "Password Last Changed: " & objUser.PasswordLastChanged str7 = "User Account Control: " & objUser.userAccountControl str8 = "Login Script: " & objUser.scriptPath str9 = "Account Created: " & objUser.whenCreated str10 = "Account Last Modified: " & objUser.whenChanged MsgBox str1 & vbCrLf & str2 & vbCrLf & str3 _ & vbCrLf & str4 & vbCrLf & str5 & vbCrLf & str6 _ & vbCrLf & str7 & vbCrLf & str8 & vbCrLf & str9 _ & vbCrLf & str10,,objUser.Name
Related posts:

6 Responses to “Extending Active Directory Functionality”
Trackbacks/Pingbacks
-
[...] This post was mentioned on Twitter by Michael Stanclift and askatknits, StevoFC. StevoFC said: Extending Active Directory Functionality http://is.gd/6dAlC [...]
-
diabetes…
[...]Extending Active Directory Functionality | StevoFC.com[...]…
-
lower abs workout…
[...]Extending Active Directory Functionality | StevoFC.com[...]…







John works in the public IT sector focusing on network security and system admin/monitoring.
Wow, nice post.
It’s handy, my context menu at work on the production domain is huge. I’ve got scripts to change user’s addresses on the fly, copy group memberships to clipboard, grant specific user groups RDP access to servers, etc.
I should post what I have soon.
Great information, John. Thanks for sharing!