The K12Panel Agent has a few assumed environments that can be used as variables in blueprints. These are called up by using $env:environmentvaluename in blueprints.
The K12Panel Agent has a few assumed environments that can be used as variables in blueprints. These are called up by using $env:environmentvaluename in blueprints.
K12Panel Service Agent Environments
Environment Name |
Usual Value (May differ if the machine is setup differently) |
---|---|
ALLUSERSPROFILE |
C:\ProgramData |
APPDATA |
C:\Windows\system32\config\systemprofile\AppData\Roaming |
CommonProgramFiles |
C:\Program Files\Common Files |
CommonProgramFiles(x86) |
C:\Program Files (x86)\Common Files |
CommonProgramW6432 |
C:\Program Files\Common Files |
COMPUTERNAME |
The hostname of the machine |
ComSpec |
C:\Windows\system32\cmd.exe |
DriverData |
C:\Windows\System32\Drivers\DriverData |
LOCALAPPDATA |
C:\Windows\system32\config\systemprofile\AppData\Local |
NUMBER_OF_PROCESSORS |
Number of cpu cores on the system |
OS |
Windows_NT |
Path |
Path to system binaries to find when calling up commands: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerSh |
PATHEXT |
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL |
PROCESSOR_ARCHITECTURE |
AMD64 (if 64bit) |
PROCESSOR_IDENTIFIER |
Based on cpu |
PROCESSOR_LEVEL |
Based on cpu |
PROCESSOR_REVISION |
Based on cpu |
ProgramData |
C:\ProgramData |
ProgramFiles |
C:\Program Files |
ProgramFiles(x86) |
C:\Program Files (x86) |
ProgramW6432 |
C:\Program Files |
PSExecutionPolicyPreference |
AllSigned, Bypass, Default, RemoteSigned, Restricted, Undefined, Unrestricted |
PSModulePath |
C:\Users\username\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules |
PUBLIC |
C:\Users\Public |
SystemDrive |
C: |
SystemRoot |
C:\Windows |
TEMP |
C:\Windows\TEMP |
TMP |
C:\Windows\TEMP |
USERDOMAIN |
WORKGROUP |
USERNAME |
MachineHostName$ |
USERPROFILE |
C:\Windows\system32\config\systemprofile |
windir |
C:\Windows |
K12Panel User Agent Environments
Environment Name |
Usual Value (May differ if the machine is setup differently) |
---|---|
ALLUSERSPROFILE |
C:\ProgramData |
APPDATA |
C:\Users\username\AppData\Roaming |
CommonProgramFiles |
C:\Program Files\Common Files |
CommonProgramFiles(x86) |
C:\Program Files (x86)\Common Files |
CommonProgramW6432 |
C:\Program Files\Common Files |
COMPUTERNAME |
Machine’s Hostname |
ComSpec |
C:\Windows\system32\cmd.exe |
DriverData |
C:\Windows\System32\Drivers\DriverData |
HOMEDRIVE |
C: |
HOMEPATH |
\Users\username |
LOCALAPPDATA |
C:\Users\username\AppData\Local |
LOGONSERVER |
\Machine’sHostName |
NUMBER_OF_PROCESSORS |
Core Count on CPU (8 for example) |
OneDrive |
C:\Users\username\OneDrive |
OS |
Windows_NT |
Path |
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Users\tech\AppData\Local\Microsoft\WindowsApps |
PATHEXT |
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL |
PROCESSOR_ARCHITECTURE |
AMD64 |
PROCESSOR_IDENTIFIER |
Varies on cpu installed. Looks like: Intel64 Family 6 Model 158 Stepping 10, GenuineIntel |
PROCESSOR_LEVEL |
Numerical value like 6 (Seems largely unused) |
PROCESSOR_REVISION |
Example: 9e0a |
ProgramData |
C:\ProgramData |
ProgramFiles |
C:\Program Files |
ProgramFiles(x86) |
C:\Program Files (x86) |
ProgramW6432 |
C:\Program Files |
PROMPT |
$P$G |
PSExecutionPolicyPreference |
AllSigned, Bypass, Default, RemoteSigned, Restricted, Undefined, Unrestricted |
PSModulePath |
C:\Users\username\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules |
PUBLIC |
C:\Users\Public |
SystemDrive |
C: |
SystemRoot |
C:\Windows |
TEMP |
C:\Users\username\AppData\Local\Temp |
TMP |
C:\Users\username\AppData\Local\Temp |
USERDOMAIN |
Domain Name (Machine Name if not on domain) |
USERDOMAIN_ROAMINGPROFILE |
Domain Name (Machine Name if not on domain) |
USERNAME |
username |
USERPROFILE |
C:\Users\username |
windir |
C:\Windows |