djust270 / Intune-Scripts

55 stars 15 forks source link

Get-reguninstallkey/ps1 function #2

Closed Gumbyohson closed 2 years ago

Gumbyohson commented 2 years ago

Appreciated the regkey lookup you made on your blog. If we add this little bit at the bottom it'll ask for an app name and provide the output at the same time instead of having to register it again or manually call it at a later date.

$app = Read-Host -Prompt 'Input App search name'
Get-RegUninstallKey -displayname $app | select *uninstall*
djust270 commented 2 years ago

Ah you are referring to the article deploying software with WinGet. Ill add this as an example in that article. Thanks!