VB Script to show user description in BGINFO

I use BGINFO a LOT, in fact, I probably use it at every site I manage.

the following script pulls out the user’s description from AD to allow BGINFO to display this.

Obviously, you can edit this to show any AD attribute you want…

On Error Resume Next
Dim objSysInfo, objUser
Set objSysInfo = CreateObject("ADSystemInfo")
Set objUser = GetObject("LDAP://" & objSysInfo.UserName)
Echo "Description: " & objUser.description


Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.