Does anyone have a vbscript that will query both the local computer and AD (as appropriate) to return the information below. I'm struggling about with forming the required LDAP calls.
current (logged on) UserName
Computer (Host) Name
OS version & service packs (if applied)
Location of computer (from AD)
I'd also like to amend the script so as to query the whole domain and return most of the above information in a csv file but with last logged in user & date/time instead of current Username.
Domain Name = MyDomain.Local
Domain Controller = MyDC
Script needs to run on both XP Pro and Windows 7 Pro
The domain is Server 2003