Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Change Execution Policy of PowerShell
- Set-ExecutionPolicy bypass
- #Import App-V modules
- Import-Module AppvClient
- #Read the App V packages published for the current user
- Get-AppvClientPackage
- #Read the App V packages published for the computer
- Get-AppVClientPackage -all
- #Get information about a specific App V package
- Get-AppVClientPackage -name *keepass*
- #Publish an App V package for a user
- Get-AppVClientPackage -name *keepass* | Publish-AppVClientPackage
- #Publish an App V package for all the users on the computer
- Get-AppVClientPackage -name *keepass* | Publish-AppVClientPackage -Global
- #Remove an App V package
- Get-AppVClientPackage -name *keepass* | Remove-AppVClientPackage
- #List all App V commands in the module
- Get-Command -Module appvclient
- #Create App V Sequences with PowerShell
- Import-Module AppVSequencer
- #Generate New-Sequence
- New-AppvSequencerPackage -Installer C:\Users\ProtectedAdmin\Desktop\npp.6.7.5.Installer.exe -Name "notepad" -Path C:\Users\ProtectedAdmin\Desktop\packages
- #Measure how long loading an App V package takes
- Measure-Command { Get-AppvClientPackage -all -name *dymo* | Mount-AppvClientPackage }
- #Read the App V Configuration
- Get-AppVClientConfiguration
- #Set the App V Configuration
- Set-AppVClientConfiguration
- #Set the App V DynamicVirtualization with PowerShell
- Set-AppVClientConfiguration -EnableDynamicVirtualization 0
- #Generate a new GUID
- [guid]::NewGuid()
- #Add a App V package with a specific DeploymentConfig.xml
- Add-AppvClientPackage '\\erik-laptop\appv\5.0\1. working\2. todo\dymo.labelwriter.8\dymo.labelwriter.8.appv' -DynamicDeploymentConfiguration '\\erik-laptop\appv\5.0\1. working\2. todo\dymo.labelwriter.8\dymo.labelwriter.8_DeploymentConfig.xml'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement