Forum Discussion
gavin1245
Nov 08, 2020Copper Contributor
WVD launching 2 instances of the App executable.
Hello, PoC WVD (ARM) host pool with single host, we're seeing multiple instances of an app (executable) run on a host after a session is disconnected. We want to ensure only 1 instance of the exe...
AMelander
Feb 10, 2022Copper Contributor
Bobby_Powers did you solve your issue?
I have the same problem and want to limit the user session to one instance of the app.
I have the same problem and want to limit the user session to one instance of the app.
gavin1245
Feb 10, 2022Copper Contributor
I changed my AVD (WVD) Application to launch PowerShell with a -File and script path Command line parameter. In the PowerShell script I used something like this:
$id = [System.Diagnostics.Process]::GetCurrentProcess().SessionId
$process = (Get-Process -Name <executable> | ? {$_.si -eq $id})
if ($process) {'You already have an instance of Application running, additional instance will not be started.'} else {Start-Process -FilePath <executable path>}