Removing platforms
Removing platforms
Removes one or more supported platforms from a software package.
Examples:
Hint: The execution of these examples requires a connected PowerShell drive. |
The following example removes the platforms "Windows 7 (x86)" and "Windows 7 (x64)" from the software package "WhatsApp 2.2310.3.0" :
$MySoftware = Get-EmdbSoftwarePackage "emdb:\rootDSE\Global Software Library\Application Library\Facebook\WhatsApp 2.2310.3.0" Remove-EmdbSoftwarePlatform -Software $MySoftware -Platform "Windows 7 (x86)", "Windows 7 (x64)" |
You can do the same with wildcards:
Remove-EmdbSoftwarePlatform -Software $MySoftware -Platform "Windows 7*" |
To remove from all eScript and MSI software packages the "Windows 7 (x86)" and "Windows 7 (x64)" platforms that are no longer supported by Microsoft, you can also pipe the objects to the cmdlet:
Get-EmdbSoftwarePackage -Path "emdb:\" -Filter "(SchemaTag:ContainedIn='MsiPackage','eScriptPackage')" -Recurse | Remove-EmdbSoftwarePlatform -Platform "Windows 7*" |