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
To display a list of set environment variables:
Windows
- Navigate to Start → All Programs → Accessories → Command Prompt.
- In the command prompt, enter set. A list of all the set environment variables displays in the command window.
MacOS
- Launch Terminal or a shell.
- 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:.
| Variable Name | Volatile (Read-Only) | Default value in Windows 7/10/2008 |
|---|---|---|
| ALLUSERSPROFILE | C:ProgramData | |
| APPDATA | C:Users{username}AppDataRoaming | |
| CD | Yes | The current directory (string). |
| ClientName | Yes | (Terminal servers only) the ComputerName of a remote host. |
| CMDEXTVERSION | Yes | The current Command Processor Extensions version number. (NT = "1", Win2000+ = "2".) |
| CMDCMDLINE | Yes | The original command line that invoked the Command Processor. |
| CommonProgramFiles | C:Program FilesCommon Files | |
| COMMONPROGRAMFILES(x86) | C:Program Files (x86)Common Files | |
| COMPUTERNAME | {computername} | |
| COMSPEC | C:WindowsSystem32cmd.exe or if running a 32 bit WOW - C:WindowsSysWOW64cmd.exe | |
| DATE | Yes | The current date. |
| ERRORLEVEL | Yes | The 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.) | |
| HighestNumaNodeNumber | Yes (hidden) | The highest NUMA node number on this computer |
| HOMEDRIVE | Yes | C: |
| HOMEPATH | Yes | Users{username} |
| LOCALAPPDATA | C:Users{username}AppDataLocal | |
| LOGONSERVER | \{domain_logon_server} | |
| NUMBER_OF_PROCESSORS | Yes | The number of processors running on the machine |
| OS | Yes | Operating system on the user's workstation |
| PATH | User and System | C:WindowsSystem32;C:Windows;C:WindowsSystem32Wbem;{plus program paths} |
| PATHEXT | .COM; .EXE; .BAT; .CMD; .VBS; .VBE; .JS ; .WSF; .WSH; .MSC | |
| PROCESSOR_ARCHITECTURE | Yes | AMD64/IA64/x86 (current process) |
| PROCESSOR_ARCHITEW6432 | =%PROCESSOR_ARCHITECTURE% (only available to 64-bit processes) | |
| PROCESSOR_IDENTIFIER | Yes | Processor ID of the user's workstation |
| PROCESSOR_LEVEL | Yes | Processor level of the user's workstation |
| PROCESSOR_REVISION | Yes | Processor version of the user's workstation |
| ProgramW6432 | =%ProgramFiles% (only available when running under a 64-bit OS) | |
| C:ProgramData | C:ProgramData | |
| C:ProgramFiles | C:Program Files or C:Program Files (x86) | |
| C:ProgramFiles(x86) 1 | C:Program Files (x86) (only available when running under a 64-bit OS) | |
| PROMPT | Code for current command prompt format, usually $P$G or C:> | |
| PSModulePath | %SystemRoot%system32WindowsPowerShellv1.0Modules | |
| C:UsersPublic | C:UsersPublic | |
| RANDOM | Yes | A 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 | |
| SYSTEMDRIVE | C: | |
| TEMP and TMP | Yes (User Variable) | C:Users{Username}AppDataLocalTemp Under XP this was {username}Local SettingsTemp |
| TIME | Yes | The current time using same format as time - Windows CMD - SS64.com (external link) |
| UserDnsDomain | Yes (User Variable) | The fully qualified domain name to which the currently logged-on user's account belongs |
| USERDOMAIN_roamingprofile | The 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} | |
| WINDIR | Set 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 Name | Volatile (Read-Only) | Default value |
|---|---|---|
| NINJA_DATA_PATH | /Applications/NinjaRMMAgent/programdata | |
| NINJA_LOCATION_ID | The location ID number | |
| NINJA_AGENT_NODE_ID | The ID for the NinjaOne agent installed on the device | |
| NINJA_ORGANIZATION_NAME | The NinjaOne organization to which the device is assigned | |
| NINJA_AGENT_VERSION_INSTALLED | Currently installed NinjaOne version (example: 12.0.1) | |
| NINJA_LOCATION_NAME | The NinjaOne location to which the device is assigned | |
| NINJA_ORGANIZATION_ID | The 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_INSTALLED | Currently 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 Name | Volatile (Read-Only) | Default value |
|---|---|---|
| NINJA_ORGANIZATION_NAME | The NinjaOne organization to which the device is assigned | |
| NINJA_AGENT_VERSION_INSTALLED | Currently installed NinjaOne version (example: 12.0.1) | |
| NINJA_LOCATION_NAME | The NinjaOne location to which the device is assigned | |
| NINJA_ORGANIZATION_ID | The 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_INSTALLED | Currently installed NinjaOne version (example: 12.0.1) | |
| NINJA_EXECUTING_PATH | /opt/NinjaRMMAgent/programfiles | |
| NINJA_DATA_PATH | /opt/NinjaRMMAgent/programdata | |
| NINJA_LOCATION_ID | The location ID number |
Additional Resources
The following external resources provide examples, support, and information about your environments: