My Fellow Administrators:
I respectfully resquest your assistance with a script. My objective is to use GPO to deploy a startup script which will delete a file in the root directory, then run a program located on a network share.
I have succesfully created a script that worked when manually launched. However; When I added it to a GPO, it doesn’t work. I have narrowed it down to the script itself because when I replace the script with another one, it worked beautifully.
The script is:
Set WshShell = WScript.CreateObject(“WScript.Shell”)
Set objFSO = CreateObject(“Scripting.FileSystemObject”)
Const DeleteReadOnly = TRUE
objFSO.DeleteFile(“C:\deletethisfile.txt”), DeleteReadOnly
WshShell.Run(“\\server\share\program.exe”)
I can do this same thing through a login script batch fileand have it work perfectly but I would prefer to do it through a startup script as my users tend be more patient before they login.
Any help on this would be much appreciated.
Blitz