-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Welcome to the Install-NiniteUpdates wiki!
Powershell Install-NiniteUpdates.ps1 script takes care of your installation/updating process in Active Directory Environment.
- Works inside and outside internal network (it decides whether to use caches or not if provided)
- Supports multiple cache locations - selects the fastest one
- extended script's and ninite's logs in separated files (with custom rotation)
- Updating local copy of ninitepro.exe file
- With the help of Scheduler you can plan multiple tasks updating your company software
- Tested on Windows 7 (Powershell 2.0 minimum) and Windows 10.
- Security Filtering: Authenticated Users
- GPO Content with scheduler's two tasks creating (before and after user's logon):
C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -file "C:\tools\ninite\Install-NiniteUpdates.ps1" -apps "Skype" -NiniteSourcePath "\\dcsrv01.contoso.com\netlogon\Ninite\NinitePro.exe" -CachePaths "\\fssrv01.contoso.com\Ninite\NiniteDownloads\files \\fssrv02.contoso.com\Ninite\NiniteDownloads\files" -updateonly -LogsAge "180"
c:\Tools\Ninite\Log\scriptLogs.txt output :
================== Start ==================
Received variables:
NiniteSourcePath: \\dcsrv01.contoso.com\netlogon\Ninite\NinitePro.exe
Apps : Skype
LogsAge : 180
CachePaths : \\fssrv01.contoso.com\Ninite\NiniteDownloads\files \\fssrv02.contoso.com\Ninite\NiniteDownloads\files
UpdateOnly : true
RootDir : c:\Tools\Ninite
Local ninitepro.exe file: exists and does not require an update.
Testing connection: fssrv01.contoso.com ..
Average ping: 34.5
Testing connection: fssrv02.contoso.com ..
Average ping: 40
The fastest cache path: fssrv01.contoso.com
Launching logs retention..
Deleted 0 log files from c:\Tools\Ninite\Log folder
Executed command : c:\Tools\Ninite\App\NinitePro.exe /disableshortcuts /disableautoupdate /allusers /silent . /updateonly /select Skype /cachepath \\fssrv01.contoso.com\Ninite\NiniteDownloads\files
Ninite log file : COMPUTERNAME_20161223163702_update.txt
Ninite status : OK
=========== END [Elapsed time: 0h. 0m. 25s.] ===========
c:\Tools\Ninite\Log\COMPUTERNAME_20161223163702_update.txt output:
OK
C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -file "C:\tools\ninite\Install-NiniteUpdates.ps1" -apps "`"Flash (IE)`""
[at Scheduler]:
C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -file "C:\tools\ninite\Install-NiniteUpdates.ps1" -apps ""Flash (IE)""
c:\Tools\Ninite\Log\scriptLogs.txt output :
[23.12.2016 17:00:55]: ================== Start ==================
[23.12.2016 17:00:55]: Received variables:
[23.12.2016 17:00:55]: NiniteSourcePath: \\dcsrv01.contoso.com\netlogon\Ninite\NinitePro.exe
[23.12.2016 17:00:55]: Apps : Flash (IE)
[23.12.2016 17:00:55]: UpdateOnly : false
[23.12.2016 17:00:55]: RootDir : c:\Tools\Ninite
[23.12.2016 17:00:58]: ninite.com returned expected status: 200
[23.12.2016 17:00:58]: Cache path are unavailable or did not entered. Apps will be downloaded from ninite.com.
[23.12.2016 17:00:58]: Executed command : c:\Tools\Ninite\App\NinitePro.exe /disableshortcuts /disableautoupdate /allusers /silent . /select Flash (IE)
[23.12.2016 17:01:01]: Ninite log file : COMPUTERNAME_20161223170101_install.txt
[23.12.2016 17:01:01]: Ninite status : Failed - Could not find specified application: (IE) - 12442
[23.12.2016 17:01:01]: =========== END [Elapsed time: 0h. 0m. 6s.] ===========
[23.12.2016 17:01:01]: