Skip to content

Instantly share code, notes, and snippets.

<#
.SYNOPSIS
Retrieves information about installed applications based on different search modes.
.DESCRIPTION
The Get-InstalledApps function retrieves information about installed applications based on various search modes
such as Registry, CmCIM, or File. It allows querying by application name, version, and search mode.
.PARAMETER Appname
The name of the application to search for.
.PARAMETER Version
The version of the application to search for.
# Quick way to bulk deploy a baseline to alot of collections
# make sure to edit:
## BaselineName
## Collections
## Schedule
if((Get-Module ConfigurationManager) -eq $null) {
Import-Module "$($ENV:SMS_ADMIN_UI_PATH)\..\ConfigurationManager.psd1"
}