SCCM 2007 Software Updates

From Slothx.net

Jump to: navigation, search

Contents

WMI Information

Namespace: root\ccm\statemsg
Class: CCM_StateMsg

General Info

Guides


General Info

Webcasts

General Terms

Powershell: CCM_UpdateStatus


# ------------------------------------------------------------------------------------------------
# CCM_UpdateStatus
# ------------------------------------------------------------------------------------------------

# List all updates
Get-WmiObject -Namespace "Root\ccm\softwareupdates\updatesstore" -Class CCM_UpdateStatus

# List Update (Basic Details)
Get-WmiObject -Namespace "Root\ccm\softwareupdates\updatesstore" -Class CCM_UpdateStatus | Select Article, Status, Title, UniqueID

# Missing updates
Get-WmiObject -Namespace "Root\ccm\softwareupdates\updatesstore" -Class CCM_UpdateStatus | Where-Object {$_.status -eq "Missing"}

# Missing updates (Basic Details)
Get-WmiObject -Namespace "Root\ccm\softwareupdates\updatesstore" -Class CCM_UpdateStatus | Where-Object {$_.status -eq "Missing"} | Select Article, Status, Title, UniqueID

# Installed updates
Get-WmiObject -Namespace "Root\ccm\softwareupdates\updatesstore" -Class CCM_UpdateStatus | Where-Object {$_.status -eq "Installed"}

# Installed updates (Basic Details)
Get-WmiObject -Namespace "Root\ccm\softwareupdates\updatesstore" -Class CCM_UpdateStatus | Where-Object {$_.status -eq "Installed"} | Select Article, Status, Title, UniqueID

# List Specific Update
$update_id = "36b59501-1963-455b-9985-81e6af53ae0e"
Get-WmiObject -Namespace "Root\ccm\softwareupdates\updatesstore" -Class CCM_UpdateStatus | Where-Object {$_.UniqueId -eq $update_id}

# List Specific Update (Basic Details)
$update_id = "36b59501-1963-455b-9985-81e6af53ae0e"
Get-WmiObject -Namespace "Root\ccm\softwareupdates\updatesstore" -Class CCM_UpdateStatus | Where-Object {$_.UniqueId -eq $update_id} | Select Name, Article, Title, UniqueID

Powershell: CCM_StateMsg

# ------------------------------------------------------------------------------------------------
# CCM_StateMsg
#
# Namespace: root\ccm\statemsg
# Class:     CCM_StateMsg
#
# ------------------------------------------------------------------------------------------------

# List all state messages
Get-WmiObject -Namespace "root\ccm\statemsg" -Class CCM_StateMsg | Format-Table TopicID, TopicType, StateID -autosize

Site Changes

Site Navigation

Personal tools