Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

PENDING Create SCCM Collection of computers with WSUS scan error

Marek Belan

Well-Known Member
Messages
105
Solutions
2
Reaction score
9
Points
18
Hi all how can i create collection of computerrs with WSUS scan error?

I have this querey but i need to add computers to dynamic colection.

SELECT v_GS_COMPUTER_SYSTEM.Name0, v_UpdateScanStatus.LastScanState, v_UpdateScanStatus.LastScanTime, v_UpdateScanStatus.LastStatusMessageID, v_UpdateScanStatus.LastErrorCode, v_UpdateScanStatus.LastScanPackageLocation, v_UpdateScanStatus.LastScanPackageVersion, v_UpdateScanStatus.LastWUAVersion,

v_UpdateScanStatus.LastLocalChangeTime

FROM v_UpdateScanStatus INNER JOIN

v_GS_COMPUTER_SYSTEM ON v_UpdateScanStatus.ResourceID = v_GS_COMPUTER_SYSTEM.ResourceID

where LastErrorCode <> 0

order by Name0
 
Can you show me WQL for UpdateScanStatus i really dont understat where to find this.
ok I get it. You want to create a collection, not add a collection to the SQL query.

I think what you are looking for is this one. You can see the Last enforcement state message ID
sms_updatecompliancestatus
 

Forum statistics

Threads
7,165
Messages
27,965
Members
18,262
Latest member
ChaseMcFadden

Trending content

Back
Top