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 SCCM Win Server Collection

Messages
10
Reaction score
0
Points
1
Hi Experts
I want to create a Collection for windows server 2008 R2, Windows Server 2008 x64, Windows Server 2008 x86, Using the below query i can create Windows Server 2008 R2 Collection and if i change the version to 6.0 i will get windows server 2008 but how can i get collection for Windows Server 2008 32bit and 64bit.
select
SMS_R_SYSTEM.ResourceID,
SMS_R_SYSTEM.ResourceType,
SMS_R_SYSTEM.Name,
SMS_R_SYSTEM.SMSUniqueIdentifier,
SMS_R_SYSTEM.ResourceDomainORWorkgroup,
SMS_R_SYSTEM.Client from SMS_R_System
where
SMS_R_System.OperatingSystemNameandVersion like "%Server%"
and
SMS_R_System.OperatingSystemNameandVersion like "%6.1%"
=================================================================

2. In the above query is it possible to get ip address and domain name. Since i have SCCM server in Domain A and i am managing Domain B and Domain C servers from Domain A, please help me with the syntax

=================================================================

3. I have created Windows Server 2008 R2 collection using the above query and if need to delete it. Do i need to check the box delete each collection member from the database. if i check the box will it delete all my servers from sccm?
1420825


=================================================================
4. I want to export all the servers in this collection to CSV file since i can know on which servers SCCM agent is active or not, when i right click the collection and export i can see MOF File name(specify a file for this export). is it possible to export the servers from this collection to a csv file
 
You can get the OS version from SMS_G_System_SYSTEM view, using the systemtype column.
 
Will the below syntax work
select
SMS_R_SYSTEM.ResourceID,
SMS_R_SYSTEM.ResourceType,
SMS_R_SYSTEM.Name,
SMS_R_SYSTEM.SMSUniqueIdentifier,
SMS_R_SYSTEM.ResourceDomainORWorkgroup,
SMS_R_SYSTEM.Client from SMS_R_System
SMS_G_SYSTEM.view
where
SMS_R_System.OperatingSystemNameandVersion like "%Server%"
and
SMS_R_System.OperatingSystemNameandVersion like "%6.1%"
 
first add the g_system view just as you did to create this query from there you will find the systemtype column.
 

Forum statistics

Threads
7,133
Messages
27,858
Members
18,151
Latest member
TonyGTR
Back
Top