Pau Lo
asked on
Service Pack Level Report
How can I (with free tools/scripts) produce a report of all computers in a domain with the following 4 fields:
I am only really bothered about clients (desktop/laptop) and not servers, if the report can filter down.
Computer Name
Operating System (and most importantly this must include SERVICE PACK)
Computer status (ie disabled or not)
Modieified date (to see if the computer is being used or not)
Operating System (and most importantly this must include SERVICE PACK)
Computer status (ie disabled or not)
Modieified date (to see if the computer is being used or not)
I am only really bothered about clients (desktop/laptop) and not servers, if the report can filter down.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Oh, sorry forgot about that :) -limit 0 is required
Try this
enabled
disabled
Krzysztof
Try this
enabled
dsquery * -filter "(&(objectClass=computer)(objectCategory=computer)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))" -limit 0 -attr Name operatingSystem operatingSystemServicePack whenChanged >>c:\enabled_comp.txt
disabled
dsquery * -filter "(&(objectClass=computer)(objectCategory=computer)(userAccountControl:1.2.840.113556.1.4.803:=2))" -limit 0 -attr Name operatingSystem operatingSystemServicePack whenChanged >>c:\disabled_comp.txt
Krzysztof
ASKER