Shortcuts based on group membership

Shortcuts based on group membership

The goal in this case is to create shortcuts on the start menu or desktop, for users who is member of a Active Directory group. If the user later is removed from the group the shortcut must also be removed.

This can be achieved in many ways but one way is to use Group Policy Preferences.

First we create a policy in the group policy editor then go to User Configuration – Preferences – Windows Settings – Shortcuts and select New – Shortcut.

image

Then in Action select Replace and select the Location for example Start Menu.

Name the shortcut and if you want this to be in a sub folder use the syntax as shown TestName on Shortcut, this will create the shortcut in a folder named Test, just note that the folder will not be removed if the user is later removed from the group.

Enter the target of the program you want to start with the shortcut, you can browse the the file but remember that it will be locally on the computer where you create the policy, the file will have to be present on the computer where the policy later is going to be applied.

Finally we can change the icon if we prefer to change the default for this program.

image

Select the Common tab and select Run in logged-on user’s security context (user policy option), Remove this item when it is no longer applied and Item-level targeting.

Click on Targeting…

image

Select New Item and Security Group.

image

In group enter the name of the security group the user must be member of to get the shortcut on the start menu. You can browse for the group in Active Directory.

image

When you logon to a Windows client where this policy is applied you should find our shortcut.

image

If you remove the user from the group an do a new logon the shortcut will be removed.It is off course also possible to create a rule that removes the folder Test if desiredSmiley

+ posts

Table of Contents

Share this post
Search blog posts
Search
Authors
Modern Workplace consultant and a Microsoft MVP in Enterprise Mobility.

Modern Workplace consultant and a Microsoft MVP in Windows and Devices.

Infrastructure architect with focus on Modern Workplace and Microsoft 365 security.

Cloud & security specialist with focus on Microsoft backend products and cloud technologies.

Cloud & security specialist with focus on Microsoft 365.

Cloud & Security Specialist, with a passion for all things Cybersecurity

Cloud and infrastructure security specialist with background in networking.

Infrastructure architect with focus on design, implementation, migration and consolidation.

Infrastructure consultant with focus on cloud solutions in Office365 and Azure.

Modern workplace and infrastructure architect with a focus on Microsoft 365 and security.

follow us in feedly
Categories

Follow on SoMe