Running a script with task manager using the SYSTEM user the environment variables of this user (on Windows 10) are: APPDATA: C:\Windows\system32\config\systemprofile\AppData\RoamingLOCALAPPDATA: C:\Windows\system32\config\systemprofile\AppData\LocalHOMEPATH: <<<EMPTY>>>Path: <<<SYSTEM_PATH>>>;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsAppsTEMP: C:\Windows\TEMPTMP: C:\Windows\TEMPUSERNAME: <<<PC-HOSTNAME>>>$USERPROFILE: C:\Windows\system32\config\systemprofile Notes:HOMEPATH is empty instead of \Users\John for an user named JohnUSERNAME is the hostname followed by a dollar sign