New
#1
Enable user account at logoff/shutdown - server 2008 R2
Hi folks. I've got Server 2008 R2 laptop that I need to transfer files to. Frequently, when I reconnect the mapped drive on the source computer, it disables my account on the laptop. Sometimes I forget to check & re-enable it, causing me to get someone to re-enable my account.
I created a batch file using net user account /active:yes. Running that batch file seems to work fine.
The question is, how do I automate that batch file to run on logoff or shutdown?
Thanks,
Mike