App-V 5.0 is PowerShell driven, which means opportunity for automating and scripting tasks that might have to be completed manually or might have been a challenge to script previously.
Using PowerShell to drive the App-V Management Server opens up plenty of great scenarios. Here’s how to use PowerShell to import a package (from a UNC path), publish it and grant access to a domain group, all on one line.
Import-AppvServerPackage -PackagePath "\\Server\Packages\MozillaFirefox16_pkg\MozillaFirefox16.appv" | Publish-AppvServerPackage -Verbose | Grant-AppvServerPackage -Groups "lab\Domain Users" -Verbose
The PackagePath property on the
Import-AppvServerPackage command should take any UNC or HTTP path, just like the Management Server UI.
This example command should be easy enough to extend to import and publish a number of packages stored in target folder.