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:
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:
I use a semicolon to combine two Powershell commands:
$sUser = get-qaduser -samaccountname <username>; $sUser.MemberOf
Get samaccountname (logonname) from fullnames:
Get-Content c:\users.txt | get-qaduser | select displayName,sAMAccountName | export-csv c:\output.csv –noType
Users.txt is contains users’ full name.
First download and install ActiveRoles Management Shell for Active Directory.
get-qadgroupmember “group name”
Bring in some formatting by using the ‘select’ parameter:
get-qadgroupmember “group name” | select logonname, displayname