Test-MSUpdates

Topics: Archive - Deployment Scripts
Mar 6, 2015 at 1: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)
{
Start-Process
}

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

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