When setting a package to remove while streaming a different package the hidden sessions will not terminate.
Symantec is aware of this issue and the appstream code does not allow the removal of cache during the period of when a layer is being installed. Once installation is complete it will allow for deletion as normal.
$CMD = '"C:\Program Files\Symantec\Workspace Streaming\Bin\appmgrcmd.exe" -s -r 2b0d5bf4-06ff-48a5-a290-7d5306025e32_2 -forceremove'
$USR = "ADMIN"
$PASS = "[email protected]!"
$DOM = "DOMAIN"
If not IsAdmin() Then
RunasWait($USR, $DOM, $PASS, 0, @ComSpec & " /c " & $CMD)