Skip to main content

Settings Reference

This settings reference guide describes each parameter of the NinjaGetEntryPoint.ps1 script settings are listed in the order they appear in the script source.

Main Settings

Setting / ParameterTypeDescriptionMandatoryDefault Value
OperationStringThe operation to perform.YesN/A
PackageSourceStringWhere to install packages from.Nowinget
InstallPathDirectoryInfoThe path to install NinjaGet files to.No$ENV:ProgramData\NinjaGet
LogPathDirectoryInfoThe path to write log files to.No$InstallPath\Logs
TrackingPathDirectoryInfoThe path to write tracking files to.No$InstallPath\Tracking
AutoUpdateBooleanAutomatically update supported apps.No$true
AutoUpdateBlocklistString[]A list of apps to exclude from updates.NoN/A
NotificationLevelStringThe level of notifications to display.NoFull
RMMPlatformStringThe RMM platform to integrate with.NoNinjaOne
LastRunFieldStringThe RMM field to store last run date time.NoNGLastRun
LastRunStatusFieldStringThe RMM field to store last run status.NoNGLastRunStatus
InstallFieldStringThe RMM field to store the apps to install.NoNGInstall
UninstallFieldStringThe RMM field to store the apps to uninstall.NoNGUninstall
NotificationImageURLStringThe URL to the notification image.No
NotificationTitleStringThe title of the notification.NoNinjaGet
UpdateIntervalStringThe interval to check for updates.NoDaily
UpdateTimeStringThe time of day to check for updates.No16:00
UpdateOnLoginBooleanCheck for updates when a user logs in.No$true
DisableOnMeteredBooleanDisable NinjaGet when on metered connections.No$true
MachineScopeOnlyBooleanOnly install packages which install machine-wide.No$false
UseTaskSchedulerBooleanUse Task Scheduler to schedule updates.No$true
UseMSIXBooleanUse the MSIX package to install/update WinGet.No$false

Uninstall Settings

The following settings are only used when Operation is Uninstall:

Setting / ParameterTypeDescriptionMandatoryDefault Value
RemoveSettingsBooleanRemove NinjaGet settings when uninstalling.No$false
RemoveLogsBooleanRemove NinjaGet logs when uninstalling.No$false

Setting Validation

Some parameters validate their input, and will throw an error if the input is invalid as follows:

  • Operation - Setup | Info | Uninstall | Process | Update
  • PackageSource - winget | msstore
  • NotificationLevel - Full | SuccessOnly | ErrorOnly | None
  • RMMPlatform - NinjaOne
  • UpdateInterval - Daily | Every2Days | Weekly | Every2Weeks | Monthly
  • UpdateTime - between 00:00 and 23:59

Warnings

Use the UseMSIX setting with caution. Once you install the MSIX package WinGet will no longer update itself via the Microsoft Store and you will need to update it manually or via NinjaGet.