This is something that has been bothering me lately on a too many step process that I think can be done with PS ..
I need help with taking a list of users and Disabling them and moving them to a specific OU ... but .. there is more to it .. see below.
I currently do this with a VB script and PS
*Disable the accounts on the txt file ( I currently use a VB Script )
*Move them to MyDomain/Disabled Accounts/ ( Same VB Script as above )
*Add a Note to the Office field: Disabled <Date> and by who ( In the new script , I can enter this each day to the file or have it prompt me ?
*Remove all the groups assosiated with the accounts and save a txt file for each ( I currently use PS for this )
* I also need an output file that shows:
*** If the script disabled the account or if the account was already disabled
*** The DN of the account prior to the move to Disabled Accounts OU
*** If the account was moved or the SamAccount was invalid
This is ALOT to ask for .. maybe we can take it in steps ?