Free for PREMIUM members
Set-ADAccountExpiration gclinch -DateTime "02/28/2014 5:00:00 PM"
Open in new window
Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.
get-aduser -fliter * -searchbase "OU=testou,dc=domain,dc=com" | Set-ADAccountExpiration "user" -DateTime "02/28/2014 5:00:00 PM"
get-aduser -Filter * -SearchBase "ou=testou,dc=upgrade,dc=local" | Set-ADAccountExpiration -DateTime "02/03/2014 5:00:00 PM"
If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.