- Jan 12, 2004
- 11,093
- 11
- 81
Hi guys,
Need some help here is some WinXP batch files.
In the office we have some loaner laptops. We plan to lock down the laptop USB ports for security reasons. Management does not want to disable the ports via the BIOS but via a script we've come up with (I've attached the USB code to disable the ports.) so basically it's easy on and easy off (scripts localed on the C drive for admins only).
Objective:
Run a batch file every time a computer boots.
I've tried:
Start Up Folder
To make things easy I was going to drop the script into the Start Up folder under all users, but realized that wouldnt work because you have to be an admin permissions to run the script and we make all users use the guest account.
Autoexec.bat
I've tried dropping the code into the autoexec.bat so that it runs every time the computer boots, but for some reason it doesnt run.
Registry
I have now moved on to the registry. I figured this is the best way to make it run all the time. I when to:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
Added a key with: C:\System32\cmd.exe /c yourpath\yourbatch.bat
no dice. Anyone have any suggestions or know what might be going on?
Need some help here is some WinXP batch files.
In the office we have some loaner laptops. We plan to lock down the laptop USB ports for security reasons. Management does not want to disable the ports via the BIOS but via a script we've come up with (I've attached the USB code to disable the ports.) so basically it's easy on and easy off (scripts localed on the C drive for admins only).
Objective:
Run a batch file every time a computer boots.
I've tried:
Start Up Folder
To make things easy I was going to drop the script into the Start Up folder under all users, but realized that wouldnt work because you have to be an admin permissions to run the script and we make all users use the guest account.
Autoexec.bat
I've tried dropping the code into the autoexec.bat so that it runs every time the computer boots, but for some reason it doesnt run.
Registry
I have now moved on to the registry. I figured this is the best way to make it run all the time. I when to:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
Added a key with: C:\System32\cmd.exe /c yourpath\yourbatch.bat
no dice. Anyone have any suggestions or know what might be going on?