PDA

View Full Version : secedit /refreshpolicy is looping in bat! (W2K)



humbletech99
05-30-2006, 04:08 AM
I've got a batch file as follows:

secedit /refreshpolicy machine_policy
secedit /refreshpolicy user_policy
pause

but this results in the first command looping infintely in the cmd window! If I type it in manually in the cmd window it works fine.

why is this?

Brf
05-30-2006, 09:37 AM
How are running the batch file?

humbletech99
06-02-2006, 01:12 AM
it's ok, I realised I called the batch secedit.bat so it was calling itself instead of the secedit from the system!

renaming the batch fixed it.<P ID="edit"><FONT class="small">Edited by humbletech99 on 06/02/06 00:12.</FONT></P>