Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu

 Windows OS Hub / Group Policies / Create Desktop Shortcuts on Domain Computers via GPO

July 16, 2020 Active DirectoryGroup Policies

Create Desktop Shortcuts on Domain Computers via GPO

Using Group Policies, you can create a shortcut to a specific app on the desktops of all (or certain) domain users. GPO allows you to create a shortcut for a locally installed app, a URL, an executable file on a shared network folder or a domain controller (the NETLOGON folder).

In this example we will show you how to create multiple shortcuts on a user’s desktop using Group Policy Preferences (available starting with Windows Server 2008 R2). In the same way you can create shortcuts in Windows 10 Start Menu or Quick Access Toolbar.

  1. Open the Group Policy Management Console (gpmc.msc), right-click an AD container (Organizational Unit) you want to apply a shortcut creation policy to and create a new policy (a GPO object) named CreateShortcut; create and link a new shortcut gpo
  2. Right-click on the created policy and select Edit;
  3. Go to the Group Policy Preferences section: User Configuration –> Preferences -> Windows Settings -> Shortcuts. Click it and select New -> Shortcut; Group Policy Preferences - create new shortcut
  4. Create a new shortcut item with the following settings:
    Action: Update
    Name: TCPViewShortcut (shortcut)
    Target Type: File System Object (you can select a URL or a Shell object here)
    Location: Desktop
    In this example, we will put a shortcut only on the desktop of the current user. Here you can choose where to place your shortcut: Start Menu, Startup or All User Desktops.

    Target Path: C:\Install\TCPView\Tcpview.exe (a path to the file you want to create a shortcut for)
    Icon file path: C:\Install\TCPView\Tcpview.exe (a path to the shortcut icon) gpo: shortcut settings
  5. If you have selected to place the shortcut on the Desktop of the current user (Location = Desktop), check the Run in logged-on user’s security context (user policy option) on the Common tab;Run in logged-on user’s security context (user policy option)
  6. If you want to create a shortcut for specific users only, add their accounts to a separate AD domain group. Then you can use Group Policy Targeting to deploy a shortcut to members of that security group. Enable the Item-level targeting and click the Targeting button. Select New Item -> Security Group and choose the domain group. As a result, the application shortcut will appear only for users added to the specified Active Directory security group; gpo: target shortcut to domain security group
  7. If you want to create an app shortcut in the Public profile (for all computer users), select Location = All User Desktop (disable the “Run in logged-on user’s security context” option since non-admin users do not have the permissions to modify the Public profile);
  8. Save the changes. Note that Desktop (%DesktopDir%) and All User Desktop (%CommonDesktopDir%) environment variables are displayed in the GPO console;create several shortcuts with environment variables using gpo
  9. Update the policies on your clients (gpupdate /force or by logoff/logon).
    If you have linked a GPO to an Organizational Unit containing computer objects (instead of users), you must also enable the GPO loopback option. Set Configure user Group Policy loopback processing mode = Merge in Computer Configuration -> Policies -> Administrative Templates -> System -> Group Policy. enable Group Policy loopback processing mode
  10. After the policies have been updated, a user will see a new shortcut on the desktop; new shortcut appeared on the user's desctop
If the shortcut has not appeared, we recommend to read these articles describing client-side GPO diagnostics:

  • Slow GPO processing
  • How to use the Group Policy results tool (GPResult.exe)?
  • Why a Group Policy Is Not Applied?

You can add multiple rules to creating app shortcuts for different groups of users, computers or OUs in a single GPO (you can set different criteria of applying a shortcut policy using GPP Item Level Targeting).

Let’s add the Logoff shortcut (with the shutdown.exe command) to the desktops of all users to let them quickly end their session.

Create a new policy item with the following settings:

  1. Name = “Log Off”
  2. Location = “All Users Desktop”
  3. Target Path = C:\Windows\System32\logoff.exe or C:\Windows\System32\shutdown.exe /l
  4. Icon File Path = %SystemRoot%\System32\SHELL32.dll
    (Use the standard library with the commonly used Windows icons. Select the icon you want in the DLL file. Its index will appear in the Icon Index field.) assign shortcut icon file
Using Group Policies, you can also configure the same Start Menu and Taskbar layout for all users in the way you want.
0 comment
2
Facebook Twitter Google + Pinterest
previous post
Get Started with FirewallD on CentOS 8/7
next post
Using HAProxy as a Load Balancer for Nginx

Related Reading

Checking Windows Activation Status on Active Directory Computers

June 27, 2022

How to Disable or Enable USB Drives in...

June 24, 2022

Adding Domain Users to the Local Administrators Group...

June 23, 2022

Creating New User Accounts in Active Directory with...

June 7, 2022

Create Organizational Units (OU) Structure in Active Directory...

May 17, 2022

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows 7
  • Windows Server 2019
  • Windows Server 2016
  • Windows Server 2012 R2
  • PowerShell
  • VMWare
  • Hyper-V
  • MS Office

Recent Posts

  • Using PowerShell Behind a Proxy Server

    July 1, 2022
  • How to Access VMFS Datastore from Linux, Windows, or ESXi?

    July 1, 2022
  • How to Deploy Windows 10 (11) with PXE Network Boot?

    June 27, 2022
  • Checking Windows Activation Status on Active Directory Computers

    June 27, 2022
  • Configuring Multiple VLAN Interfaces on Windows

    June 24, 2022
  • How to Disable or Enable USB Drives in Windows using Group Policy?

    June 24, 2022
  • Adding Domain Users to the Local Administrators Group in Windows

    June 23, 2022
  • Viewing a Remote User’s Desktop Session with Shadow Mode in Windows

    June 23, 2022
  • How to Create a Wi-Fi Hotspot on your Windows PC?

    June 23, 2022
  • Configuring SSH Public Key Authentication on Windows

    June 15, 2022

Follow us

woshub.com

ad

  • Facebook
  • Twitter
  • RSS
Popular Posts
  • How to Configure Google Chrome Using Group Policy ADMX Templates?
  • Get-ADUser: Find Active Directory User Info with PowerShell
  • Allow RDP Access to Domain Controller for Non-admin Users
  • How to Find the Source of Account Lockouts in Active Directory domain?
  • Get-ADComputer: Find Computer Details in Active Directory with PowerShell
  • Deploy PowerShell Active Directory Module without Installing RSAT
  • Configuring Proxy Settings on Windows Using Group Policy Preferences
Footer Logo

@2014 - 2018 - Windows OS Hub. All about operating systems for sysadmins


Back To Top