Friends,
Simple command to disable inactive accounts in active directory, the command dsquery.
"dsquery user -inactive 24 | dsmod user -disabled yes"
Here i have specified 24, is equal to 24 weeks. if u want to disable inactive accounts last two weeks, just u need to specify only 2.
Simple command to disable inactive accounts in active directory, the command dsquery.
"dsquery user -inactive 24 | dsmod user -disabled yes"
Here i have specified 24, is equal to 24 weeks. if u want to disable inactive accounts last two weeks, just u need to specify only 2.
No comments:
Post a Comment