query fun

Need to see which custom client settings are deployed to which collections? and the same for antimalware policies?  Also if the policy is not deployed to a collection it will show NULL for the collection name.  enjoy.

 

client settings:

SELECT vSMS_ClientSettingsAssignments.Name AS CollectionName, vSMS_AntimalwareSettings.Name AS EndPointPolicyName
FROM vSMS_ClientSettingsAssignments right JOIN
vSMS_AntimalwareSettings ON vSMS_ClientSettingsAssignments.ClientSettingsID = vSMS_AntimalwareSettings.ID

 

antimalware policy:

SELECT vSMS_ClientSettingsAssignments.Name AS CollectionName, vSMS_ClientSettings.Name AS ClientPolicyName
FROM vSMS_ClientSettingsAssignments right JOIN
vSMS_ClientSettings ON vSMS_ClientSettingsAssignments.ClientSettingsID = vSMS_ClientSettings.ID

 

Powershell: list of SCCM security scopes

Dumps a list of SCCM security scopes with descriptions via Powershell.  Replace computername and site_BBB with your site data.  enjoy.

Get-WmiObject -computername SCCM -Namespace “root\sms\site_BBB” -Class SMS_SecuredCategory | format-list -Property categoryname, categorydescription

 

Boundary Groups and Peer Cache

When you create a boundary group the option “Allow peer downloads in this boundary group” is enabled by default.  You might be in for a surprise when you start doing peer cache testing in some boundary groups and find computers from all over the hierarchy are trying to get content from your new superpeer(s).    Use the following SQL query and the flag values below to make sure your BG options are configured correctly.  I would typically recommend leaving the top option enabled in the BG options but also enable the second option to only use peers in the same subnet.  If that boundary group has a local distribution point then the third option might also be helpful.

SELECT Name, Description, DefaultSiteCode, Flags

FROM BoundaryGroup

where flags is not NULL

 

and some of the relevant flag values are:

Flag 0: the top option “allow peer downloads” is enabled in the BG option tab

Flag 1: no options enabled

Flag 2: the top option and the “during peer downloads only use peers in the same subnet” options are selected

Microsoft Tech Talks – North Texas edition

There are Microsoft Tech Talk groups across the US and we are spinning one up in the North Texas area.  These are based on the Meetup platform for now and you can sign up here:  https://www.meetup.com/mtttexas/

The main focus of the MTT will be to hold periodic free Meetup events for local IT folks.  Our first one is coming up on October 30 at the Microsoft office in Las Colinas/Irving and is focused on the Cloud Management Gateway feature of Configuration Manager.  We plan to hold events every quarter or so and the topics and products covered will vary each time.  So, please join the Meetup group for sure and sign up for the first Meetup event if that topic is of interest to you or your org.

https://www.meetup.com/mtttexas/

 

Configuration Manager client version numbers

Every time I do a CM Risk Assessment (RaaS) for a customer I have to remember the various versions of CM clients that are out there.  Here is a compiled list so I’ll know where to find it (and maybe you will too!) :-

If you find this useful please consider a $5 donation towards my next venti iced coffee and thanks! https://www.paypal.com/paypalme/BrettBennett/5USD

Friendly NameClient Version
CM 2012 RTM 5.00.7711.0000
CM 2012 CU1 5.00.7711.0200
CM 2012 CU2 5.00.7711.0301
CM 2012 SP1 5.00.7804.1000
CM 2012 SP1 CU1 5.00.7804.1202
CM 2012 SP1 CU2 5.00.7804.1300
CM 2012 SP1 CU3 5.00.7804.1400
CM 2012 SP1 CU4 5.00.7804.1500
CM 2012 R2 5.00.7958.1000
CM 2012 R2 KB2905002 5.00.7958.1100
CM 2012 R2 CU1 5.00.7958.1203
CM 2012 R2 CU2 5.00.7958.1303
CM 2012 R2 CU3 5.00.7958.1401
CM 2012 R2 CU4 5.00.7958.1501
CM 2012 R2 SP1 5.00.8239.1000
CM 2012 R2 SP1 CU1 5.00.8239.1203
CM 2012 R2 SP1 CU2 5.00.8239.1301
CM 1511 5.00.8325.1000
CM 1602 5.00.8355.1000
CM 1602 hotfix 5.00.8355.1306
CM 1602 hotfix 5.00.8355.1307
CM 1606  5.00.8412.1000
CM 1606 hotfix 5.00.8412.1007
CM 1606 hotfix 5.00.8412.1307
CM 1610 5.00.8458.1000
CM 1610 hotfix 5.00.8458.1007
CM 1702 5.00.8498.1007
CM 1706 5.00.8540.1003
CM 1710 5.00.8577.1003
CM 1710 hotfix 5.00.8577.1108
CM 1802 5.00.8634.1000
CM 1806 5.00.8692.1003
CM 1806 hotfix 5.00.8692.1008
CM 1810 5.00.8740.1012
CM 1810 hotfix 5.00.8740.1024
CM 1810 hotfix 5.00.8740.1031
CM 19025.00.8790.1005
CM 19065.00.8853.1006
CM 19105.00.8913.1006
CM 1910 hotfix5.00.8913.1012
CM 1910 hotfix5.00.8913.1032
CM 2002 Fast5.00.8968.1021
CM 2002 Slow5.00.8968.1026
CM 2002 HFRU5.00.8968.1042
CM 20065.00.9012.1020
CM 2006 KB45847595.00.9012.1034
CM 2006 KB45786055.00.9012.1052
CM 2006 KB45757905.00.9012.1056
CM 2010 Fast5.00.9040.1015
CM 2010 HFRU5.00.9040.1044
CM 2010 KB50016705.00.9040.1048
MECM 21035.00.9049.1010
MECM 2103 KB96031115.00.9049.1014
MECM 2103 KB100361645.00.9049.1035
MECM 2107 Fast Ring5.00.9058.1012
MECM 21075.00.9058.1018
MECM 2107 KB111215415.00.9058.1047
MECM 21115.00.9068.1008
MECM 2111 Hotfix5.00.9068.1012
MECM 2111 HFRU5.00.9068.1026
MECM 22035.00.9078.1006
MECM 2203 HFRU5.00.9078.1025
MECM 22075.00.9088.1007
MECM 2207 HFRU5.00.9088.1025
MECM 22115.00.9096.1000
MECM 2211 HFRU5.00.9096.1024
MECM 23035.00.9106.1000

If you find this useful please consider a $5 donation towards my next venti iced coffee and thanks! https://www.paypal.com/paypalme/BrettBennett/5USD

The Journey Begins

Out with the old, in with the new.  My blog that was hosted on TechNet is dead now and I’ve moved most of the posts to here.  Now that I’m paying for this site I have an interest to try and post more frequently.  I will also be posting on topics outside of ConfigMgr, which wasn’t an option on the old site.

I hope you enjoy!

I was looking for a dime and found a quarter – Buddy Guy

Query to find content with “enable for on-demand distribution” option set

If you need to determine which of your ConfigMgr packages, applications or update deployment packages has the “enable for on-demand distribution” option enabled, this query will help.  Run it in SQL studio against the ConfigMgr database.  You can adjust the where statement to also look for other configuration settings, like where the persist in cache option is set.  Enjoy.

 

SELECT  pkg.*,

   (PkgFlags&0x01000000)/0x01000000 AS PKG_DO_NOT_DOWNLOAD,
   (PkgFlags&0x02000000)/0x02000000 AS PKG_PERSIST_IN_CACHE,
   (PkgFlags&0x04000000)/0x04000000 AS PKG_USE_BINARY_DELTA_REP,
   (PkgFlags&0x10000000)/0x10000000 AS PKG_NO_PACKAGE,
   (PkgFlags&0x20000000)/0x20000000 AS PKG_USE_SPECIAL_MIF,
   (PkgFlags&0x40000000)/0x40000000 AS PKG_DISTRIBUTE_ON_DEMAND
 FROM   dbo.v_Package pkg  
 
 where ((PkgFlags&0x40000000)/0x40000000)  = 1

Mass delete management packs

You can individually delete MPs from the SCOM console or you can delete multiples via Powershell with this command.  Replace msdtc in my example with the name/partial name of the MPs you want to mass delete.

get-scommanagementpack | ?{ $_.name -match “msdtc” } | remove-scommanagementpack

new book!

I’m proud to announce that the latest edition of the Mastering Configuration Manager series of books is now released.  You can purchase the kindle version now or the paperback version later this month.  It takes a considerable amount of effort to co-author a book and I’m really glad to have worked on this book with my good friend Santos Martinez and Peter Daalmans.  I hope you find this book useful as you learn about Configuration Manager Current Branch.

amazon link here:  https://www.amazon.com/Mastering-System-Center-Configuration-Manager/dp/1119258456/ref=sr_1_1?ie=UTF8&qid=1484158708&sr=8-1&keywords=mastering+configuration