Sometimes there may be a need to trigger an Software updates scan on the client during a Task Sequence. This was the case for one of my customers, they were using a task sequence to deploy software updates to a mass of systems to ensure compliance. The problem was that they needed to catch all updates with this Task sequence but after running the software updates task and rebooting, they were still seeing some updates were required. The issue was resolved by performing a software updates scan before and after the Install Software Updates task sequence step and then following up with another Install Software Updates task sequence step.
Use the “Run Command line” Task Sequence step.
WMIC /namespace:\\root\ccm\invagt path inventoryActionStatus where
InventoryActionID="{00000000-0000-0000-0000-000000000=113}" DELETE
/NOINTERACTIVE
You can also utilize the “Run Command line” Task Sequence step to perform a SW and HW inventory as well.
Hardware Inventory:
WMIC /namespace:\\root\ccm\invagt path inventoryActionStatus where
InventoryActionID="{00000000-0000-0000-0000-000000000001}" DELETE
/NOINTERACTIVE
Software Inventory:
WMIC /namespace:\\root\ccm\invagt path inventoryActionStatus where
InventoryActionID="{00000000-0000-0000-0000-000000000002}" DELETE
/NOINTERACTIVE
Thank you for reading