Advertisement
easternnl

List of the App V Client Commands

Jun 2nd, 2015
827
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Change Execution Policy of PowerShell
  2. Set-ExecutionPolicy bypass  
  3.  
  4. #Import App-V modules
  5. Import-Module AppvClient
  6.  
  7. #Read the App V packages published for the current user
  8. Get-AppvClientPackage
  9.  
  10. #Read the App V packages published for the computer
  11. Get-AppVClientPackage -all
  12.  
  13. #Get information about a specific App V package
  14. Get-AppVClientPackage -name *keepass*
  15.  
  16. #Publish an App V package for a user
  17. Get-AppVClientPackage -name *keepass* | Publish-AppVClientPackage
  18.  
  19. #Publish an App V package for all the users on the computer
  20. Get-AppVClientPackage -name *keepass* | Publish-AppVClientPackage -Global
  21.  
  22. #Remove an App V package
  23. Get-AppVClientPackage -name *keepass* | Remove-AppVClientPackage
  24.  
  25. #List all App V commands in the module
  26. Get-Command -Module appvclient
  27.  
  28. #Create App V Sequences with PowerShell
  29. Import-Module AppVSequencer
  30.  
  31. #Generate New-Sequence
  32. New-AppvSequencerPackage -Installer C:\Users\ProtectedAdmin\Desktop\npp.6.7.5.Installer.exe -Name "notepad" -Path C:\Users\ProtectedAdmin\Desktop\packages
  33.  
  34. #Measure how long loading an App V package takes
  35. Measure-Command { Get-AppvClientPackage  -all -name *dymo* | Mount-AppvClientPackage }
  36.  
  37. #Read the App V Configuration
  38. Get-AppVClientConfiguration
  39.  
  40. #Set the App V Configuration
  41. Set-AppVClientConfiguration
  42.  
  43. #Set the App V DynamicVirtualization with PowerShell
  44. Set-AppVClientConfiguration -EnableDynamicVirtualization 0
  45.  
  46. #Generate a new GUID
  47. [guid]::NewGuid()
  48.  
  49. #Add a App V package with a specific DeploymentConfig.xml
  50. 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