Description
This document discusses the differences between environment variables when deploying a batch file using LDMS.
Ivanti EPM Environment Variables when Running as Local System
ALLUSERSPROFILE=C:\Documents and Settings\All Users CBA8_BSA_PATH=C:\Program Files\LANDesk\Shared Files\cbaroot\bsa CBA8_START=2008-12-17 16:29:10 CBA8_STOP=2008-12-17 00:24:55 CommonProgramFiles=C:\Program Files\Common Files COMPUTERNAME=XP ComSpec=C:\WINDOWS\system32\cmd.exe CORESERVER=D88 FP_NO_HOST_CHECK=NO LDMS_LOCAL_DIR=C:\Program Files\LANDesk\LDClient\Data LD_CLIENT_DIR=C:\Program Files\LANDesk\LDClient NUMBER_OF_PROCESSORS=1 OS=Windows_NT PACKAGE_DESCRIPTION=Get Environment Variables PACKAGE_NAME=SET Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\LANDesk\Shared Files;C:\Program Files\LANDesk\Shared Files;C:\Program Files\landesk\shared files;C:\Program Files\LANDesk\LDClient; PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH PROCESSOR_ARCHITECTURE=x86 PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 8, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=0f08 ProgramFiles=C:\Program Files PROMPT=$P$G SERVICE_HOST_PATH=C:\Program Files\LANDesk\Shared Files SystemDrive=C: SystemRoot=C:\WINDOWS TASK_ID=18 TASK_NAME=Set TEMP=C:\WINDOWS\TEMP TMC_CACHE_DIR=C:\Program Files\LANDesk\LDClient\sdmcache\ TMP=C:\WINDOWS\TEMP TRUSTED_CERT_PATH=C:\Program Files\LANDesk\Shared Files\cbaroot\certs USERPROFILE=C:\Documents and Settings\LocalService UTF8_MACHINE_NAME=XP windir=C:\WINDOWS
The following is a short list of additional variables that are added to the environment by Ivanti EPM when deploying a batch file. (This list was created using 8.8 SP1.).
CBA8_BSA_PATH=C:\Program Files\LANDesk\Shared Files\cbaroot\bsa CBA8_START=2008-12-17 16:29:10 CBA8_STOP=2008-12-17 00:24:55 CORESERVER=Core88 LD_CLIENT_DIR=C:\Program Files\LANDesk\LDClient PACAKGE_DESCRIPTION=Get Environment Variables PACKAGE_NAME=SET Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\LANDesk\Shared Files;C:\Program Files\LANDesk\Shared Files;C:\Program Files\landesk\shared files;C:\Program Files\LANDesk\LDClient; SERVICE_HOST_PATH=C:\Program Files\LANDesk\Shared Files TASK_ID=18 TASK_NAME=My Task Name TMC_CACHE_DIR=C:\Program Files\LANDesk\LDClient\sdmcache\ TRUSTED_CERT_PATH=C:\Program Files\LANDesk\Shared Files\cbaroot\certs UTF8_MACHINE_NAME=MyPCName
Local System Environment Variables When Launched by Microsoft's AT.EXE Command
ALLUSERSPROFILE=C:\Documents and Settings\All Users AltStartup=C:\Unknown_AltStartUp AppData=C:\Documents and Settings\NetworkService\Application Data CommonDesktop=C:\Documents and Settings\All Users\Desktop CommonFavorites=C:\Documents and Settings\All Users\Favorites CommonFiles=C:\Program Files\Common Files CommonProgramFiles=C:\Program Files\Common Files CommonProgramGroups=C:\Documents and Settings\All Users\Start Menu\Programs CommonStartMenu=C:\Documents and Settings\All Users\Start Menu CommonStartUp=C:\Documents and Settings\All Users\Start Menu\Programs\Startup COMPUTERNAME=XP ComSpec=C:\WINDOWS\system32\cmd.exe ConnectionWizard=C:\Program Files\Internet Explorer\Connection Wizard Cookies=C:\Documents and Settings\NetworkService\Cookies DesktopDirectory=C:\WINDOWS\Desktop DocAndSettingRoot=C:\Documents And Settings Favorites=C:\WINDOWS\Favorites FP_NO_HOST_CHECK=NO History=C:\Documents and Settings\NetworkService\Local Settings\History InternetCache=C:\Documents and Settings\NetworkService\Local Settings\Temporary Internet Files LDMS_LOCAL_DIR=C:\Program Files\LANDesk\LDClient\Data NetHood=C:\WINDOWS\Nethood NUMBER_OF_PROCESSORS=1 OS=Windows_NT Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH PersonalDocuments=C:\Unknown_PersonalDocuments PROCESSOR_ARCHITECTURE=x86 PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 8, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=0f08 ProgramFiles=C:\Program Files PROMPT=$P$G RecycleBin=C:\Unknown_RecycleBin SRArchiveDir=*:\_restore.{37BBF00C-E178-4053-9A9F-1F6B16F2982C} SRDataStoreRoot=*:\_restore.{37BBF00C-E178-4053-9A9F-1F6B16F2982C} SRTempDir=*:\_restore.{37BBF00C-E178-4053-9A9F-1F6B16F2982C} StartMenu=C:\WINDOWS\Start Menu SystemDrive=C: SystemRoot=C:\WINDOWS TEMP=C:\WINDOWS\TEMP Templates=C:\Unknown_Templates TMP=C:\WINDOWS\TEMP USERPROFILE=C:\Documents and Settings\NetworkService windir=C:\WINDOWS WinSys=C:\WINDOWS\system32
Local System Environment Variables When Launched by the Local Scheduler Service
ALLUSERSPROFILE=C:\Documents and Settings\All Users CommonProgramFiles=C:\Program Files\Common Files COMPUTERNAME=XP ComSpec=C:\WINDOWS\system32\cmd.exe FP_NO_HOST_CHECK=NO LDMS_LOCAL_DIR=C:\Program Files\LANDesk\LDClient\Data NUMBER_OF_PROCESSORS=1 OS=Windows_NT Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH PROCESSOR_ARCHITECTURE=x86 PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 8, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=0f08 ProgramFiles=C:\Program Files PROMPT=$P$G SystemDrive=C: SystemRoot=C:\WINDOWS TEMP=C:\WINDOWS\TEMP TMP=C:\WINDOWS\TEMP USERPROFILE=C:\Documents and Settings\LocalService windir=C:\WINDOWS