Ninite with group policy
https://brashear.me/blog/2015/01/23/deploy-application-updates-with-ninite-with-a-cache-on-your-lan/
It's taken me 3 hours to figure out that the scheduled task command
powershell -ExecutionPolicy Bypass -file .....
No longer works as intended. Although it allows the powershell script and by extension ninite pro to run, something is getting blocked.
If I run the ninite command on the command line it works fine. If I run the powershell command on the command line, the script runs ninite runs but then it's unable to find the applications.
Edit: I've worked out that powershell doesn't like the brackets in the line
Set-Variable APPS -option constant -value 'Chrome Flash "Flash (PPAPI)" "7-Zip" Irfanview "Notepad++" Audacity "Visual Studio Code" Blender Krita GIMP "Reader DC" "Paint.net" "Google Earth" Inkscape "Flash (IE)"'
I haven't worked out how to fix it yet.
Edit2: Made enquiries and the string is correct. Apparently it all goes wrong when powershell inserts the string in the execute command....
EDIT3: It works if you don't have a separate apps variable. I guess I can manage without that. I was planning to rewrite the script to deliver different apps to different devices. It's going to be a less efficient script.
Edited by browolf

0 Comments
Recommended Comments
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now