Hi,
i need to create a script which would check users account status (active/deactivates) and if the account is deactivated (in a dedicated OU), it would trigger an action to delete his home folder on a share.
I can do the trigger /action part, i just cant figure out how to search ad and check user account status..
Can you please help me with this..?
Thx
Ivan
AD user status script
Moderator: DosItHelp
Re: AD user status script
Code: Select all
net user squashman /domain | find "Account active"