Using Ninite to update 3rd party products with Deep Freeze
Posted by Adam Zilliax, Last modified by Adam Zilliax on 31 March 2017 01:51 PM
|
||||
Overview Background Problem Description Using Ninite Pro with Deep Freeze Console to update Software
Using Ninite Pro with Deep Freeze Batch File to update software
Scheduling Batch File workstation task
Example: to install VLC and Chrome, the batch file should be: start %~dp0\NinitePro.exe /select VLC Chrome /silent Here, %dp0 changes the directory the where the batch file is being run from
@echo off net use \\serverLocation yourPassword /user:yourDomain\yourUserName \\serverLocation\ninite.bat Here, net use command line provides the access to the network share location, while the second command runs the batch file from that location
Note: for a bigger number of installed software, it is recommended to set a bigger duration of the Batch File task
Using Deep Freeze Console Custom Actions This solution takes advantage on Deep Freeze Console Custom Action feature. The Custom Action allows to define additional functionality of Deep Freeze Console against client workstations. Normally, it defines a method of calling custom batch file or other scripting solution and passing some parameters specific to the selected workstation (for example, machine IP address, computer name). In this solution, the Custom Action should manage to run on target workstation same batch file as described in Solution 1. This batch file runs Ninite Pro executable on target workstation with command line parameters specifying the software required to be installed/updated. Same as in previous solution, Ninite is configured to use a local network share for storing software downloads. Use following steps to configure and run Ninite Custom Action
The content of that batch file is provided below: @echo off reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\system /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=Yes netsh advfirewall firewall set rule group="Remote Service Management" new enable=Yes
<?xml version="1.0" encoding="UTF-8"?> <!--Deep Freeze Default Custom Action file--> -<CUSTOMDEFINEDACTIONS> -<ACTION4> -<CAPTION> <ENGLISH>Ninite Server Installer</ENGLISH> </CAPTION> <FILEMENU>Y</FILEMENU> <POPUPMENU>Y</POPUPMENU> <SILENT>Y</SILENT> <SUBITEMS/> -<PARAMS> -<USERNAME> <VAR>%USERNAME%</VAR> -<CAPTION> <ENGLISH>User Name</ENGLISH> <GERMAN>Benutzername</GERMAN> <JAPANESE>ƒ†[ƒU–¼</JAPANESE> <SPANISH>Nombre de usuario</SPANISH> <FRENCH>Nom d'utilisateur</FRENCH> <CHINESE>Óû§Ãû</CHINESE> </CAPTION> </USERNAME> -<PASSWORD> <VAR>%PASSWORD%</VAR> -<CAPTION> <ENGLISH>Password</ENGLISH> <GERMAN>Passwort</GERMAN> <JAPANESE>ƒpƒXƒ[ƒh</JAPANESE> <SPANISH>Contraseña</SPANISH> <FRENCH>Mot de passe</FRENCH> <CHINESE>ÃÜÂë</CHINESE> </CAPTION> </PASSWORD> </PARAMS> <SYNC/> <LOG/> <!--Edit myServerLocation, myPass, myDomain and myUserName in the following Execute tag--> <EXECUTE>"PsExec.exe" \\%%WKSNAME%% -u %USERNAME% -p %PASSWORD% cmd /c "net use \\myServerLocation myPass /user:myDomain\myUserName && \\myServerLocation\ninite.bat" </EXECUTE> <WORKDIR>C:\Windows\System32\</WORKDIR> </ACTION4> </CUSTOMDEFINEDACTIONS>
On 32 bit systems: “C:\Program Files\Faronics\Deep Freeze 7 Enterprise” On 64 bit systems: “C:\Program Files (x86)\Faronics\Deep Freeze 7 Enterprise”
Example: to install VLC and Chrome, the batch file should be: start %~dp0\NinitePro.exe /select VLC Chrome /silent Here, %dp0 changes the directory the where the batch file is being run from
Now, the Ninite will launch on the target workstation and perform require software installations and upgrade. Java | ||||
|