I'm trying to use a batch script to automate the updates of some apps using ninite with a group policy log off script.
Here is my script:
echo Copying ninite
mkdir C:\temp
mkdir C:\temp\ninite
echo STARTING
robocopy /xo /"\filesever01\shared data\IT\SoftwareUpdate\/" \temp\ninite\ NiniteOne.exe
echo installing Chrome and Skype...
c:\temp\ninite\NiniteOne.exe /select Chrome Skype /cachepath "\\fileserver01\shared data\IT\SoftwareUpdate\NiniteCache"
echo Installing Java and Reader without autoupdates...
c:\temp\ninite\NiniteOne.exe /select Java Reader /disableautoupdate /cachepath "\\fileserver01\shared data\IT\SoftwareUpdate\NiniteCache" /silent report.txt
When the script runs at logoff it fails. I ran it at log on and noticed that it fails because ninite asks for administrator permission and I am assuming that it's failing at logoff for the same reason.
Does anyone have any recommendations on what I should do? Is ninite the right tool for what I am trying to do? Is a batch script the right path or should I try using powershell?