Virtual Engine are pleased to announce the release of the App-V 5.0 .APPV Package PowerShell CmdLets. These (free) PowerShell CmdLets enable you to query, extract files and report on the contents of .APPV files generated by the App-V 5 sequencer, without renaming them and manually opening them. Happy PowerShelling!
Following on from the release of the Virtual Engine App-V 5.0 PowerShell CmdLets, I thought I best give you a quick run through on setting them up! Installing the PowerShell modules is easy, regardless of whether you’re installing them just for your user account or on a per machine basis. Note: we will package these up into a .MSI once we’ve had some initial feedback and fixed any “features!”
Per User Installation
To install the new modules on a per-user basis, extract the files into your ‘Documents\WindowsPowerShell\Modules\’ directory:
Per Computer Installation
To install the new modules on a per-computer basis, extract the files into the ‘C:\Windows\System32\WindowsPowerShell\v1.0\Modules\’ (or %PSModulePath% for short!) directory:
To import and use the modules, simply run the following PowerShell command (they are digitally signed):
You may be prompted to confirm that you trust the publisher (!?). The modules are digitally signed. If you want to use them, then you better ensure that you select the ‘Always Run’ (or at lease ‘Run Once’) option!
Once they’re loaded you can check by running the following PowerShell command. If you see something similar to this then you should be all set:
PS C:\Windows\system32> Get-Command -Module VirtualEngine* CommandType Name ModuleName ----------- ---- ---------- Function Get-AppV5File VirtualEngine-AppV5 Function Get-AppV5FilePackage VirtualEngine-AppV5 Function Get-AppV5FileReport VirtualEngine-AppV5 Function Get-AppV5FileXml VirtualEngine-AppV5 Function Get-AppV5FileXmlPackage VirtualEngine-AppV5 Function Get-VEAppV5Version VirtualEngine-AppV5 Function Save-AppV5File VirtualEngine-AppV5 Function Save-AppV5FileReport VirtualEngine-AppV5 Function Save-AppV5FileXml VirtualEngine-AppV5 Function Save-AppV5FileXmlPackage VirtualEngine-AppV5 PS C:\Windows\system32>
Note: The modules require PowerShell 3.0 and the Microsoft .Net Framework 4.5. These are installed by default on Windows 8 and Windows Server 2012. If you’re running Windows 7 without these requirements, then you’ll receive errors. Make sure you meet these requirements.