Quantcast
Channel: Group Policy forum
Viewing all articles
Browse latest Browse all 19997

Startup scripts and Server 2012

$
0
0

Good morning,

Seems I am having an issue with scripts at the moment of time.

The files I want to automatically install are executables so I am running them as a part of a starup script.  I have my script executing a batch file that has this information:

Echo Installing VLC Media Player

IF exist c:\vlc-2.0.6-win32.txt (GOTO END)

REM Uninstall existing VLC version
if exist "%PROGRAMFILES%\VideoLAN\VLC\uninstall.exe" "%PROGRAMFILES%\VideoLAN\VLC\uninstall.exe" /S
if exist "%PROGRAMFILES% (x86)\VideoLAN\VLC\uninstall.exe" "%PROGRAMFILES% (x86)\VideoLAN\VLC\uninstall.exe" /S
:: Wait for 20 seconds
ping -n 20 127.0.0.1 > NUL

REM Run VLC Installer
"%~dp0vlc-2.0.6-win32.exe" /language=en_GB /S
copy \\wheatondc1\publishedapps$\vlc-2.0.6-win32.txt c:\vlc-2.0.6-win32.txt

REM Return exit code to SCCM
exit /B %EXIT_CODE%

:END
echo program finished

I have this set as a machine policy so when I reboot the computer, it doesn't install the program.  I have run this manually and it works fine and installs the program without a problem.  I even ran it after installing the program and it jumped to END like it was supposed to do.

So now my question is, where do I go from here since the Event Logs don't show any errors or problems either.

Thanks,

Kevin Butler

This is the Group Policy Result:


Kevin Butler


Viewing all articles
Browse latest Browse all 19997

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>