In App-V 4.6 we used to use the command line Sfttray /exe to open a process inside the virtual environment of an App-V Package, a lot of people referred to this as “breaking into the bubble”. As you would of heard, our trusty sfttray commands have been replaced in v5 by all new PowerShell cmdlets.
So how can we open up a new process inside the virtual environment of an App-V package in 5.0?
This cmdlet can be used to launch whatever process we desire inside the bubble of any App-V 5.0 package published on the client.
First thing we need to do is get the name of the package we are interested in:
From the output we can choose the package we want, this is case I’m going to use WinRar. So I am going to store this in a variable called $appvpackage by running the following command:
$appvpackagename = Get-AppvClientPackage WinRAR
Now we are ready to run our Start-AppvVirtualProcess command:
Start-AppvVirtualProcess -FilePath C:\Windows\System32\cmd.exe
-FilePath specifies the location of the process I want to launch inside the virtual environment, in this case I am launched command prompt and for me this is the ideal process because from the command prompt we can launch additional processes which will also be inside the bubble.
-AppvClientObject is the package which we want to launch inside and in this case we are just passing the variable we created earlier against it.
We now have a command prompt launched inside the virtual environment.
From here we can now browse and interact with the virtual environment. For example if I launch a regedit from this command line and then a regedit from the local machine, I can compare the differences:
Here we can see the WinRAR key with the regedit that has been launched inside the bubble (Right) and compare it to the local registry (Left) where the key does not exist! Click here for more information on the virtual registry mechanisms!