Blog Detail

Create shortcuts to deploy available applications ConfigMgr 2012 (using PoSH)

22 Sep , 2015,
, , ,
No Comments

For a customer implementing Configuration Manager 2012 the use of the Application Catalog and Software Center can be a big change for the end-users. This when they have not used SCCM software and/or user-portal centric delivery before.
I was looking for possibilities to create a situation to start an application deployment with a more common interface like the start menu or the desktop.
Since the startmenu is back in modern OS-versions to deliver the apps for the user I decided to try and use it for this.
start menu available app example install

To automate it I have created a simple script that will create shortcuts you can use to start the deployment. On the background it uses Configuration Manager Client SDK WMI Classes
It’s not being used in production, so it is not completely functional with user rights but it was much easier to create than I expected. So use this at you own risk and make it better yourself :).

The code should explain itself because it’s not that difficult. You can play with the Get-WmiObject and the Where-Object options to test your exact results.

This creates (for example) a shortcut to install Mozilla Firefox with the target:
start menu available app shortcut firefox
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -WindowStyle Hidden -File C:\Deploy-CCM_App.ps1 -ApplicationName "Mozilla Firefox (nl)"

This script can be repeated by using something like scheduled tasks:
schtasks actions

schtasks trigger

The deployment then also needs a small Powershell script to start:
This part I have found on Nickolaj’s blog and is being explained there.

For the install to work propery, make sure you have one deployment for ‘Install’ per application per user. This would be the case most of the time in environments I have (seen).

Clicking on the shortcut [in the startmenu] will trigger the normal installation as it would when you use the Software Center!
software center installation via shortcut

Applications deployed to users but made available, unfortunately have to be chosen from the Application catalog first. I will try to get these to deploy with a shortcut by the user also later. [Edit: solved here]

Leave A Comment