MSI, App-V, SCCM, Appsense, Citrix. This blog contains hints and tips on these technologies. Primarily it is an online notebook of items that I may need to refer to in the future, or things I constantly forget!
Monday, September 22, 2014
Powershell tricks
This post was constantly being expanded and added to so the contents have now been transferred to a dedicated powershell blog.
http://davespshell.blogspot.co.uk/
This post will now be updated with any useful App-V powershell routines.
To unpublish published App-V packages which match the "where"
$list = get-appvclientpackage | where {$_.name -like "*tsm*"} | select -expand Name
Echo $list
ForEach ($Name in $list)
{
echo $name
unpublish-appvclientpackage -name $name | select Name, IsPublishedToUser
}
Note the use of the "-expand" Without it, the variable values are not suitable for input to the unpublish-appsvclientpackage cmdlet. Obviously remove the where to unpublish all the apps.