Already a NinjaOne customer? Log in to view more guides and the latest updates.

Branding: Environment Variables via Systray Icon

Topic

This article provides a list of environment variables that you can request for Windows devices via the systray icon's help request form. The steps for returning Apple macOS environment variables are listed as well.

For more information about the systray icon, refer to NinjaOne Endpoint Management: Customizing Branding With the Systray Icon.

Environment

  • NinjaOne Endpoint Management
  • Microsoft Windows
  • Apple macOS
  • Linux

Description

NinjaOne allows you to create and deploy a custom Systray icon for your organization.

 

Index

Select a category to learn more:

How to View Your Environment Variables

The following example pulls the variables directly from Windows, so NinjaOne does not have any control over which variables do and do not exist.

To display a list of set environment variables:

Windows

  1. Navigate to Start → All Programs → Accessories → Command Prompt.
  2. In the command prompt, enter set. A list of all the set environment variables displays in the command window.

MacOS

  1. Launch Terminal or a shell.
  2. Enter printenv.

Standard Windows Environment Variables

The following table provides an example of the built-in variables for the Windows environment. The default value assumes the system drive is C:.

The SYSTEMROOT read-only system variable should be installed in C:Windows by default, but it is possible that Windows will install it to a different folder or drive. Windows 2000 and Windows NT 3.1 will default to C:WINNT.
Variable NameVolatile (Read-Only)Default value in Windows 7/10/2008
ALLUSERSPROFILEC:ProgramData
APPDATAC:Users{username}AppDataRoaming
CDYesThe current directory (string).
ClientNameYes(Terminal servers only) the ComputerName of a remote host.
CMDEXTVERSIONYesThe current Command Processor Extensions version number. (NT = "1", Win2000+ = "2".)
CMDCMDLINEYesThe original command line that invoked the Command Processor.
CommonProgramFilesC:Program FilesCommon Files
COMMONPROGRAMFILES(x86)C:Program Files (x86)Common Files
COMPUTERNAME{computername}
COMSPECC:WindowsSystem32cmd.exe or if running a 32 bit WOW - C:WindowsSysWOW64cmd.exe
DATEYesThe current date.
ERRORLEVELYesThe current ERRORLEVEL value, automatically set when a program exits.
FPS_BROWSER_APP_PROFILE_STRING
FPS_BROWSER_USER_PROFILE_STRING
Internet Explorer (these are undocumented variables for the Edge browser in Windows 10.)
HighestNumaNodeNumberYes (hidden)The highest NUMA node number on this computer
HOMEDRIVEYesC:
HOMEPATHYesUsers{username}
LOCALAPPDATAC:Users{username}AppDataLocal
LOGONSERVER\{domain_logon_server}
NUMBER_OF_PROCESSORSYesThe number of processors running on the machine
OSYesOperating system on the user's workstation
PATHUser and SystemC:WindowsSystem32;C:Windows;C:WindowsSystem32Wbem;{plus program paths}
PATHEXT.COM; .EXE; .BAT; .CMD; .VBS; .VBE; .JS ; .WSF; .WSH; .MSC
PROCESSOR_ARCHITECTUREYesAMD64/IA64/x86 (current process)
PROCESSOR_ARCHITEW6432=%PROCESSOR_ARCHITECTURE% (only available to 64-bit processes)
PROCESSOR_IDENTIFIERYesProcessor ID of the user's workstation
PROCESSOR_LEVELYesProcessor level of the user's workstation
PROCESSOR_REVISIONYesProcessor version of the user's workstation
ProgramW6432=%ProgramFiles% (only available when running under a 64-bit OS)
C:ProgramDataC:ProgramData
C:ProgramFilesC:Program Files or C:Program Files (x86)
C:ProgramFiles(x86) 1C:Program Files (x86) (only available when running under a 64-bit OS)
PROMPTCode for current command prompt format, usually $P$G or C:>
PSModulePath%SystemRoot%system32WindowsPowerShellv1.0Modules
C:UsersPublicC:UsersPublic
RANDOMYesA random integer number, anything from 0 to 32,767 (inclusive)
%SessionName%Terminal servers only; for a terminal server session, SessionName is a combination of the connection name, followed by #SessionNumber
SYSTEMDRIVEC:
TEMP and TMPYes (User Variable)C:Users{Username}AppDataLocalTemp
Under XP this was {username}Local SettingsTemp
TIMEYesThe current time using same format as time - Windows CMD - SS64.com (external link)
UserDnsDomainYes (User Variable)The fully qualified domain name to which the currently logged-on user's account belongs
USERDOMAIN_roamingprofileThe user domain for RDS or standard roaming profile paths: Windows 8/10/2012 (or Windows 7/2008 with Q2664408)
USERNAME{username}
USERPROFILE%SystemDrive%Users{username}
WINDIRSet by default as windir=%SystemRoot%

Standard macOS Environment Variables

The following table provides an example of the built-in variables for the macOS environment.

Variable NameVolatile (Read-Only)Default value
NINJA_DATA_PATH/Applications/NinjaRMMAgent/programdata
NINJA_LOCATION_IDThe location ID number
NINJA_AGENT_NODE_IDThe ID for the NinjaOne agent installed on the device
NINJA_ORGANIZATION_NAMEThe NinjaOne organization to which the device is assigned
NINJA_AGENT_VERSION_INSTALLEDCurrently installed NinjaOne version (example: 12.0.1)
NINJA_LOCATION_NAMEThe NinjaOne location to which the device is assigned
NINJA_ORGANIZATION_IDThe organization ID number displayed in NinjaOne (refer to NinjaOne Platform: How to Find an Organization ID)
NINJA_COMPANY_NAME
NINJA_AGENT_MACHINE_ID
NINJA_PATCHER_VERSION_INSTALLEDCurrently installed NinjaOne version (example: 12.0.1)
NINJA_EXECUTING_PATH/Applications/NinjaRMMAgent/programfiles

Standard Linux Environment Variables

The following table provides an example of the built-in variables for the Linux environment.

Variable NameVolatile (Read-Only)Default value
NINJA_ORGANIZATION_NAMEThe NinjaOne organization to which the device is assigned
NINJA_AGENT_VERSION_INSTALLEDCurrently installed NinjaOne version (example: 12.0.1)
NINJA_LOCATION_NAMEThe NinjaOne location to which the device is assigned
NINJA_ORGANIZATION_IDThe organization ID number displayed in NinjaOne (refer to NinjaOne Platform: How to Find an Organization ID)
NINJA_COMPANY_NAME
NINJA_AGENT_MACHINE_ID
NINJA_PATCHER_VERSION_INSTALLEDCurrently installed NinjaOne version (example: 12.0.1)
NINJA_EXECUTING_PATH/opt/NinjaRMMAgent/programfiles
NINJA_DATA_PATH/opt/NinjaRMMAgent/programdata
NINJA_LOCATION_IDThe location ID number

Additional Resources

The following external resources provide examples, support, and information about your environments:

FAQ

Next Steps