I'm having some difficulty with a startup script that I have deployed through group policy. The target machine is running Windows 7 Professional (x86). The purpose of the startup script is to install TightVNC, which unfortunately does not have an MSI installer. RSoP as well as the Windows event log confirm that the GPO is being applied to this machine, so I don't think that's the problem. I can also confirm that the script does what is supposed to do if I run it manually under the local system account (I tested with psexec and by creating a scheduled task that ran under the system account). However, despite numerous reboots, and the evidence from the event log indicating that the script has run, the script is not working. I even added a simple echo to logfile command at the start of the script to see if it was working, but I do not see the file after reboot. I'm totally perplexed--please help :(
Script contents below:
echo test > c:\test.log
REM quit if TightVNC is already installed
if exist "C:\Program Files (x86)\TightVNC" goto :eof ELSE
if exist "C:\Program Files\TightVNC" goto :eof ELSE
echo Installing TightVNC...
echo Adding registry keys...
regedit /S "tightvnc-server-config.reg"
echo Restarting TightVNC service...
net stop "TightVNC Server"
net start "TightVNC Server"
echo Removing StartMenu items...
rmdir /s /q "C:\Documents and Settings\All Users\Start Menu\Programs\TightVNC\"
echo Installation complete.