Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

security setting not allowing batch file to run at startup 1

Status
Not open for further replies.

jatkins

IS-IT--Management
Dec 3, 2002
12
US
I've created a DOS batch file which will release and renew the system's IP when it boots. I installed it on a system running win2k pro. For the batch file to execute at startup, I added the following value to the registry below:

Value=IPConfig string c:\WINNT\system\release.bat

HKEY_LOCAL_MACHINE\software\microsoft\windows\current version\run

The .bat file itself consists of the following lines:
@echo off
ipconfig /release
ipconfig /renew

It works great when I log on as the administrator but won't run when logging on as a standard user. Anyone have any idea what security setting needs to change to allow this little batch file to run? Thank you in advance....
 
You may need to change the permissions in the registry to that branch (to allow normal users full access). Use regedt32 (security menu) for this.
 
Or u can make it in the Local security policy , use these steps :
1- go to start menu , Run
2- type mmc
3- Console -> Add Remove Snap In..
4- Add -> Group Policy -> Add -> Local Machine -> Finish -> Close -> OK
5- Under Local Computer -> Computer Configuration -> Windows Setting -> Scripts
6- Double Click Start Up
7- Show File
8- Copy your batch file to the same folder which shown in the show file , C:\WINNT\system32\GroupPolicy\Machine\Scripts\Startup

9- Then Return to the Start Up scripts -> Add -> Choose your Batch File in the script name by pressing browse ..

10 - Select OK till out of this group policies ...

11 - Restart , and u will get it.

[red]Long way , isn't it ? ;)[/red] Mohamed Farid
Know Me No Pain , No Me Know Pain !!!
 
Mohamed,
It WORKED!!!! Thank you for taking the time to reply to my thread....:)
 
ok , give me a star ! ;) Mohamed Farid
Know Me No Pain , No Me Know Pain !!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top