Windows – Local group policy logon startup script not executing

bootgroup-policyscriptwindows 7

This is for Windows 7

I have a .bat and .vbs file in a folder. The .bat runs the .vbs script. In the Local Policy Group editor, under Windows Settings/Scripts I added a reference to the .bat file in the Startup properties.

It seems as if my script is not running (I don’t see the result). Is there a log I can check to see why my script is not running? Do the .vbs and/or bat need to be in a special folder or anything? The .bat references the .vbs with a relative path – is that OK when being run as a startup script? Everything works fine when I just double-click to run the .bat file manually.

Best Answer

I can confirm that my .bat files works, even though it's on by D:\scripts folder. May I suggest put a simple command such as 'Notepad' in the batch file, just to see if it works.

May I also suggest that fire up Task Manager to see what process are are active, for example with your original script, are there any .vbs entries amongst the processes?

One more thought, are you configuring the scripts under User Configuration\Windows Settings\Scripts(Logon\Logoff) (my preference), or under Computer Configuration, which can be tricky.

Related Question