PowerShell Command to Identify Stale Computers and move to specific OU

Here is the simple Power Shell Command to identify Stale
Computers and move to specific OU.

$d = [DateTime]::Today.AddDays(-3600); Get-ADComputer -Filter
‘PasswordLastSet -ge $d’|adobject -targetpath ‘ou=disabled,dc=umatest,dc=com’

Change the highlighted parameters as
required. You can run a trial test and schedule the script on DC to run daily.

Powershell scripts library for windows system administrators

You may find the below collection of scripts useful for your daily windows administration.
[SOURCE : http://techibee.com]

General Powershell:

General Windows:

File and Folders:


Process Management:

BIOS:

Service Management:

Network Management:

VMware:

SCOM:

Active Directory:

Exchange:

MISC: