Windows Admin Tips and Tricks

From AUwiki
Jump to: navigation, search

Useful tidbits making the administration of Windows domains just a tad easier:


DSQuery

Got a domain chuck full of user accounts of unknown status, since users come and go. Keep entropy in check:

(from a command line, on a Domain Controller)

C:\> dsquery users /inactive 12

will output all the user accounts that have been inactive for 12 weeks or more

C:\> dsquery user /disabled

will output all the disable user accounts in your domain

C:\> dsquery computer /inactive 4

outputs computer accounts that have not been active for 4 weeks


Uptime

Here's a command that lets you check the reboot status or uptime of a Windows box:

Uptime \\computer

Utility has to be downloaded: http://support.microsoft.com/kb/232243