App-V 5 Inside the bubble (AKA break into the Virtual Environment)

As App-V grows up, this old post “Softgrid/App-V: Inside the bubble” became outdated. With App-V 5.x we have Powershell to break into the bubble.

Launch a cmd.exe processes inside the App-V 5 virtualized environment:

$AppVName = Get-AppvClientPackage <Package>
Start-AppvVirtualProcess -AppvClientObject $AppVName cmd.exe

Or as a oneliner:

Start-AppvVirtualProcess -AppvClientObject (Get-AppvClientPackage “<AppVApplicationName>”) cmd.exe

Change “cmd.exe” to your needs, and of course change AppVApplicationName to the application name you would break into..

Another approach is the /appvve switch:


Or using a virtual process id:

cmd.exe /appvpid:8108



Enumerate user memberships with Powershell

Enumerating user memberships is a common task to perform.  Unlike other scripting languages, with Powershell it’s a one-line action.

First download/install Quest AD Tools, and add them:

add-pssnapin quest.activeroles.admanagement

I use a semicolon to combine two Powershell commands:

$sUser = get-qaduser -samaccountname <username>; $sUser.MemberOf

get-qaduser memberof

get-qaduser memberof

Enumerate security group user memberships with PowerShell by using get-QADGroupMember

First download and install ActiveRoles Management Shell for Active Directory.

add-pssnapin quest.activeroles.admanagement

get-qadgroupmember “group name”



Bring in some formatting by using the ‘select’ parameter:

get-qadgroupmember “group name” | select logonname, displayname