Enable user account at logoff/shutdown - server 2008 R2

mtkCTU

New member
Local time
11:23 PM
Messages
2
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
 

My Computer My Computer

OS
7 Pro

My Computer My Computer

Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
Back
Top