SCCM 2012 – Set User Category (Part 1)
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 %%.
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
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)