HMCTech Posted April 26, 2010 Posted April 26, 2010 does anyone have a safe peice of software that will query active directory and generate a report on computers that have been inactive for over a period of time.
somabc Posted April 26, 2010 Posted April 26, 2010 (edited) You can use dsquery to get a list eg. to find all computers unused for 8 weeks dsquery computer -inactive 8 -limit 0 To delete the computers dsquery computer -inactive 8 -limit 0 | dsrm Edited April 26, 2010 by somabc 1
HMCTech Posted April 26, 2010 Author Posted April 26, 2010 thanks somabc, Could you give some detail about the number after inactive and limit? I assume in your example 8 means it will show any computers inactive for over 8 weeks, and no limit ont he number of results?
somabc Posted April 26, 2010 Posted April 26, 2010 Dsquery computer has details - inactive is no of weeks and limit is no of objects in AD to show with 0 being unlimited 1
MatthewL Posted July 28, 2010 Posted July 28, 2010 I use oldcmp and run this batch file oldcmp -report -age 120 -format csv You can change the format and age, I then just go through Active Directory and disable and move the accounts to another OU. You can get it to disable and delete the accounts I think but I wanted a little more control. Did 1800 machines the other week. You can download oldcmp if you just Google it.
robk Posted July 28, 2010 Posted July 28, 2010 I use a small VB Script to pick out old machines and user details. Shout if you want a copy
PiqueABoo Posted July 28, 2010 Posted July 28, 2010 I use oldcmp Me too & can't think of anything better (it's from joeware.net amongst some other very good free utils)
box_l Posted July 28, 2010 Posted July 28, 2010 I Have successfully used Quest AD Cmdlets for this task. You will need to install and run the Quest Powershell console, these commands do not seem to run in the standard shell even with the cmdlets installed. A bit like exchange 2010 seems to need its own shell. Quest AD Cmdlets are free to download from PowerShell Commands (CMDLETs) for Active Directory by Quest Software get-qadcomputer -IncludeAllProperties | Where-Object { $_.lastlogon -lt (get-date).AddDays(-90) } Outputs to shell console get-qadcomputer -IncludeAllProperties | Where-Object { $_.lastlogon -lt (get-date).AddDays(-90) } | select-object Name, ParentContainer, Description, pwdLastSet | export-csv c:\outdated.csv Outputs to csv get-qadcomputer -IncludeAllProperties | Where-Object { $_.lastlogon -lt (get-date).AddDays(-90) } | Move-QADObject -to my.corp/obsolete Moves to alternate OU tack this to the end to disable the accounts | disable-QADComputer Check Locate obsolete computer records in AD « Dmitry’s PowerBlog: PowerShell and beyond for more. And QAD cmdlets reference - PowerGUI Wiki BoX 1
Guest TheLibrarian Posted July 29, 2010 Posted July 29, 2010 Me too & can't think of anything better (it's from joeware.net amongst some other very good free utils) I love the warranty on the utilities he offers... warranty and license
ColinP Posted August 14, 2014 Posted August 14, 2014 Cjwdev | AD Tidy Free software can tell you the last time a pc was seen on the network, what dc it logged on to, and you can disable and move computer / user accounts all at the same time
zag Posted August 14, 2014 Posted August 14, 2014 We use Dovestone True Last Logon Active Directory True Last Logon - dovestones software Just change the option to show when a computer was last logged on and sort it by date. I usually do this once a term.
round2it Posted September 9, 2014 Posted September 9, 2014 admanager plus is good for this it also lets you export info about groups install on your workstation you dont need to touch the server
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now