Hi
All applications I publish for RemoteApp on Windows Server 2016 gets "Current directory" set to "C:\Windows\system32\", no matter where I have the application (only tried with applications stored on C:\ fyi)
This is the environment-settings all applications I've published on a Server 2016 gets (besides the command line ofc).
My current solution is to use a cmd-script to enter the correct directory and then start it and just publish the .cmd-script.
Parent PID:10376Command line:"C:\notepad.exe"
Current directory:C:\Windows\system32\
Environment:
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\Administratör\AppData\Roaming
CLIENTNAME=SERVER
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=SERVER
ComSpec=C:\Windows\system32\cmd.exe
HOMEDRIVE=C:
HOMEPATH=\Users\Administratör
LOCALAPPDATA=C:\Users\Administratör\AppData\Local
LOGONSERVER=\\SERVER
NUMBER_OF_PROCESSORS=4
OS=Windows_NT
Path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn\;C:\Users\Administratör\AppData\Local\Microsoft\WindowsApps;
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=5e03
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PSModulePath=C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\PowerShell\Modules\
PUBLIC=C:\Users\Public
SESSIONNAME=RDP-Tcp#77
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\ADMINI~1.WIN\AppData\Local\Temp\5
TMP=C:\Users\ADMINI~1.WIN\AppData\Local\Temp\5
USERDNSDOMAIN=SERVER.LOCAL
USERDOMAIN=SERVER
USERDOMAIN_ROAMINGPROFILE=SERVER
USERNAME=administratör
USERPROFILE=C:\Users\Administratör
windir=C:\Windows