We have high access ID's that remain disabled unless needed. Normally I just open ADUC and uncheck disabled to enable it. The only trouble with this is when it is an offshore user who needs it enabled at 4:00 AM on Saturday morning.
Today I decided to create a scheduled task to do this, and try as I might I couldn't get it to work. Sticking the following command in the Run: box in the scheduled task doesn't work. The issue is with mutiple quotes.
"dsmod user "CN=First Last,OU=General,OU=Org,OU=Users and Groups,DC=child,DC=company,DC=com" -disabled no"
This command doesn't even run. I expect because it is only trying to run the "dsmod user " command and forgets the rest.
dsmod user "CN=First Last,OU=General,OU=Org,OU=Users and Groups,DC=child,DC=company,DC=com" -disabled no
This command also won't run
"dsmod user CN=First Last,OU=General,OU=Org,OU=Users and Groups,DC=child,DC=company,DC=com -disabled no"
This task will execute, but the account doesn't become enabled.