![]() However, there may be times when you need to uninstall those applications from your computer. ![]() Net frameworks.Īrticle on differences between registry way and wmi way.One of the selling points of Windows is that it lets you install several applications within a few clicks. One thing to take away is use the registry method for normal installations and the. ![]() We can use PowerShell to check what’s installed on a machine that can be used for reporting or verification with Pester to make sure all the correct software and right versions are installed. The registry wayĭescribe 'Available Software Checks' Even the Microsoft docs give the Get-WMIObbject -Class Win32_Product as an example to list installed software but don’t mention the side effects of using this. I also recently watched a session from the PowerShell summit 2019 on youtube that brings up the issue that using Win32_Product makes the msi installers run consistency checks and potentially run repairs. Getting a list of the installed software has taken a number of different approaches with PowerShell but allows to test that the correct software is installed and also produce a text file with the software installed information as a build artifact for later reference. I’ve been using Pester to verify software that is installed on TeamCity build agents that are being created with Packer and a number of PowerShell scripts. Here’s a post on a few ways you can find installed software on Windows using PowerShell. Avoid Get-CimInstance and Get-WMIObject.Finding installed software with PowerShell on Windows
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |