SCCM 2012 – Set User Category (Part 1)

SCCM 2012 – Set User Category (Part 1)

Hi All,

have you ever tried to set the category for your applications? Yes, that category that will appear on the Application Catalog Website for the user. For me this is a really difficult task. the reasons are:
1- I need to know what category i’ll add the application. If you think about browser, it is easy, but what about others?!?!!?
2- it is time consuming…
3- you’ll always put the wrong category based on Asset Intelligence information.

well..i created a powershell and extension to do it. It will allow you to right click the application nodes and will set the user category for all applications based on the Asset Intelligence Information. it may take time, depending on how many apps you have in your infrastructure.

And as you noticed, the subject is Part 1, it means that this script will have an updated version someday to work with folders, where it will only apply the categories for the folder and not all applications

but how exactly it work. Easy, it will check if the Application Catalog Localized application name and will check if anything exists with a similar name. I mean similar as it will check the SQL with like %%.
setusercategory1

Anyway, to do it, download the SetUserCategory zip file, extract and add the files to the following places:

RFL-Applications.xml to <CM12R2Console Installation Path)\XmlStorage\Extensions\Actions\d2e2cba7-98f5-4d3b-bc2f-b670f0621207 (change the CM12R2Console to the path of the console :))
SetUserCategory.ps1 to C:\Scripts\CM12R2Console on the same computer where you installed the CM12 R2 Console

Once you have done it, restart the console and you’ll see a new action group called RFL Systems and once you right click any folder, you’ll also be able to see the action (see below screenshot)
setusercategory2

Note: if you have downloaded the SetSecurityScopev2 console extension, you’ll need to rename the xml file or edit the xml file already existing (i’ll cover how to do it in a later post)

when you click, a powershell screen will be shown and the application category will be set
setusercategory3

About

Raphael is a 9 times Microsoft MVP with over 20 years of experience in IT, in which 13 years have been dedicated to System Center and Automation. His extended experience has been developed through several IT roles, from first-line support to principal consultant, towards a wide range of clients and sectors. One of the four MVPs in Enterprise Client Management in the UK, Raphael holds more than 30 Microsoft certifications and is an MCT (Microsoft Certified Trainer). Since 2008, Raphael has been providing Microsoft trainings from basic to advanced levels in several categories. Throughout his career, Raphael has joined as speaker in well-known events such as TechEd and Gartner Security Risk Management. He also organised community events and lectured around the world, sharing best practices and knowledge within the industry. Bilingual in English and Portuguese, Raphael has authored diverse articles published in Microsoft's TechEd, served as the editor-in-chief of a magazine focused on System Center in Brazil and wrote two books: "Understanding System Center 2012 SP1 Configuration Manager: The walkthrough book" and "System Center 2012 R2 Configuration Manager: Automation from Zero to Hero".

Tagged with: , , , , ,