Topics: Archive - Deployment Scripts
Mar 6, 2015 at 12:50 PM
May I know how to use Test-MSUpdates function.

I want to uninstall a KB and want to make sure that if its installed then only run uninstall command otherwise skip installation.

do i have to use like this

$msupdates = Test-MSUpdates 'KBnumber'
if ($msupdates = $true)

something like this.
Mar 11, 2015 at 10:23 AM

Check out the toolkit help for function examples.
Test-MSUpdates returns $true or $false, so you could do this:
if (Test-MSUpdates -KBNumber 'KB2956087') {