/
/

How to Pin a File, Folder, App or Website to the Taskbar in Windows

How to Pin a File, Folder, App or Website to the Taskbar in Windows blog banner image

The Windows taskbar provides quick access to your most-used apps and tools, improving user efficiency and reducing navigation overhead. While Microsoft restricts direct pinning of some items (e.g., files, folders), there are reliable workarounds that let you go beyond standard app shortcuts.

In this guide, you’ll learn multiple ways to pin items to the taskbar in Windows, including how to add apps, files, folders, and websites.

Note: The methods in this guide apply to both Windows 10 and Windows 11. While the visual design and taskbar layout may differ slightly, the core steps and functionality for pinning apps, files, folders, and websites remain the same across both versions.

How to pin to the taskbar in Windows for quick access

Keep the following in mind before proceeding:

  • Administrator rights are required for scripting or large-scale deployment.
  • Pinning behavior may vary between consumer and enterprise builds.
  • Websites must be opened in supported browsers (e.g., Edge or Chrome) to enable pinning.
  • Some items must be converted into shortcuts for taskbar compatibility.

Method 1: Pin an app from the Start or Search GUI

This is the simplest and most user-friendly way to pin apps to the taskbar.

  1. Click the Start button or press the Windows key.Click Start button
  2. Search for the app you want to pin.
  3. Right-click the app in the search results.
  4. Select Pin to taskbar to successfully pin the shortcut to the taskbar in Windows.Search any app and right click and click pin to taskbarCheck if successfully pinned to taskbar

 

Alternative method

You can also pin apps while they’re open:

  1. Launch the app you want to pin.
  2. Right-click its icon on the taskbar.
  3. Select Pin to taskbar.Launch app then right click and select Pin to taskbar

Method 2: Pin a website to the taskbar via Microsoft Edge

If you frequently visit a specific website, you can pin it directly to your taskbar for one-click access. Microsoft Edge makes this easy by turning websites into Progressive Web Apps (PWAs), allowing them to behave like standalone apps.

  1. Open Microsoft Edge.
  2. Go to the website you want to pin.
  3. Click the three-dot menu (•••) in the top-right corner.
  4. Hover over More tools > Pin to taskbar.Microsoft Edge click the three-dot menu, more tools then pin to taskbar
  5. A shortcut with the web icon will now be available on your taskbar.Check if successfully pinned a shortcut in taskbar

Method 3: Pin a file, folder, or drive to the taskbar (via shortcut workaround)

Windows 11 doesn’t support direct taskbar pinning for files, folders, or drives, but there’s a workaround. You can create a custom shortcut that launches File Explorer and points to your target location.

  1. Right-click on your desktop and select New > Shortcut.
  2. In the location field, enter this format: explorer.exe “C:\Path\To\Your\Folder”
    For example: explorer.exe C:\Users\YourName\Pictures
  3. Click Next, name the shortcut, and click Finish.
  4. Right-click the new shortcut and choose Properties.
  5. Under the Shortcut tab, click Change icon.
  6. Select your desired folder icon, then click OK.
  7. Click Apply > OK.
  8. Right-click the new shortcut again, choose Show more options, then click Pin to taskbar.

Method 4: Use PowerShell to pin apps to the taskbar (scripted deployment)

PowerShell doesn’t provide a built-in command to pin apps to the taskbar for existing users. However, you can use a layout XML file with PowerShell to define a taskbar layout that applies to all new user accounts on the device.

This method is ideal for IT administrators, system admins, or anyone deploying standardized Windows environments.

Step 1: Pin apps for reference

  1. Click the Start button.
  2. Search for the app you want to pin.
  3. Right-click the app > More > Pin to taskbar.
  4. Repeat for each app you’d like to include in your layout.

This step helps you identify the shortcut names or AppUserModelIDs (AUMIDs) needed for your XML file.

Step 2: Get app shortcut paths or app IDs

For classic desktop apps:
  1. Press Win + R to open the Run Dialog box.
  2. Type %APPDATA%\Microsoft\Windows\Start Menu\Programs.
  3. Click Enter to open the Start Menu Programs folder in File Explorer.
  4. Locate the .lnk shortcut for the app. If the app is in a subfolder, open that folder.
  5. Right-click the file, then select Properties.
    • Confirm the Type of file is Shortcut (.lnk)
    • Copy the full name (e.g., Notepad.lnk)
For Microsoft Store (UWP) apps:
  1. Open PowerShell.
  2. Run: Get-StartApps
  3. Find your app and copy its AppUserModelID

For example: Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge

Step 3: Create the XML File

  1. Press Win + S to open the Search.
  2. Type notepad and open the Notepad app.
  3. Paste the following XML code:
    <LayoutModificationTemplate 

    xmlns=”http://schemas.microsoft.com/Start/2014/LayoutModification” 

    xmlns:defaultlayout=”http://schemas.microsoft.com/Start/2014/FullDefaultLayout” 

    xmlns:taskbar=”http://schemas.microsoft.com/Start/2014/TaskbarLayout” 

    Version=”1″>

    <CustomTaskbarLayoutCollection PinListPlacement=”Replace”>

    <defaultlayout:TaskbarLayout>

    <taskbar:TaskbarPinList>

    <!– Classic desktop app example –>

    <taskbar:DesktopApp DesktopApplicationLinkPath=”%APPDATA%\Microsoft\Windows\Start Menu\Programs\Notepad.lnk” />

    <!– App in a subfolder –>

    <taskbar:DesktopApp DesktopApplicationLinkPath=”%APPDATA%\Microsoft\Windows\Start Menu\Programs\Microsoft Office\Excel.lnk” />

     <!– Microsoft Store (UWP) app –>

    <taskbar:UWA AppUserModelID=”Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge” />

    </taskbar:TaskbarPinList>

    </defaultlayout:TaskbarLayout>

    </CustomTaskbarLayoutCollection>

    </LayoutModificationTemplate>

  4. Click File > Save as.
  5. Set Save as Type to All Files.
  6. Name the file: TaskbarLayout.xml
  7. Save it to a known folder. For example: C:\Layout

Step 4: Apply the layout using PowerShell

  1. Press Win + S to open the Search.
  2. Type powershell, then right-click Windows PowerShell from the results.
  3. Select Run as administrator.
  4. In the PowerShell window, run this command: Import-StartLayout -LayoutPath “C:\Layouts\TaskbarLayout.xml” -MountPath $env:SystemDrive\
  5. Restart your PC to apply the changes.

Group Policy/MDM considerations for taskbar pinning

As mentioned, Windows 11 allows administrators to enforce a custom taskbar layout using a layout XML file. This can be done through Group Policy (GPO) or MDM tools, which are ideal for managing Windows 11 devices, especially in an enterprise or education environment.

Option 1: Enforcing taskbar pinning via Group Policy (GPO)

  1. Press Win + R to open the Run dialog box.
  2. Type gpedit.msc and click Enter to open the Local Group Policy Editor.
  3. Navigate to: User Configuration > Admin Templates > Start Menu and Taskbar
  4. Double-click the policy Start Layout.
  5. Set it to Enabled.
  6. In the Start Layout File field, enter the full network path to your XML layout file.
    For example: \\SERVER\Share\TaskbarLayout.xml
  7. Click OK to save.

Option 2: Enforcing taskbar pinning via Intune/MDM

For cloud-managed or hybrid environments, you can use any MDM solution that supports OMA-URI policies. Use the following settings:

  • MDM setting: StartLayoutFile
  • OMA-URI: ./Vendor/MSFT/Policy/Config/Start/StartLayoutFile

This is best used for large-scale, image-based deployments where consistency is required.

Additional considerations

When deploying a taskbar layout, a few important factors must be considered to ensure compatibility and control.

App compatibility

Universal Windows Platform (UWP) and traditional Win32 apps can be pinned to the taskbar, but their pinning behavior may differ.

  • Win32 apps – These are classic desktop apps, such as Notepad and Microsoft Office, that are pinned using their .lnk (shortcuts) files.
  • UWP apps – These are modern apps, such as Microsoft Edge and Mail, that must be pinned using their AppUserModelID.

User lockdown

Admins can also prevent users from modifying the pinned apps on the taskbar by combining AppLocker or Shell restrictions.

  • AppLocker –Enables admins to create rules that allow or block specific apps from running.
  • Shell restrictions – Lock down access to UI elements, like the desktop, Start menu, and taskbar, to prevent users from unpinning or adding items.

Edge vs. Chrome

Microsoft Edge and Google Chrome allow you to pin a website taskbar in Windows 11. While Microsoft Edge allows a direct Pin to Taskbar option, Google Chrome has a slightly different way:

  1. Open the website.
  2. Click the three-dot menu (⋮) in the top-right corner.
  3. Depending on your Chrome version:
    Select More tools > Create Shortcut.
    or
    Select Cast, save, and share > Create Shortcut.
  4. Check the box Open as window, then click Create.
    The shortcut is now in the Start Menu and can be pinned to the taskbar.
  5. Open the Start Menu.
  6. Search for the shortcut by name.
  7. Right-click the shortcut, then select Pin to taskbar.

Pin websites, folders, files, and apps to the Windows taskbar

Windows 11 provides flexible ways to customize the taskbar to suit your workflow. With proper tools and techniques, you can pin almost any resource, making it just as effective for personal setups as it is for organization-wide deployments.

Use explorer.exe shortcuts to pin folders and drives, and use Edge or Chrome to pin websites as taskbar apps. In enterprise or education settings, taskbar layouts can be deployed using JSON/XML and managed at scale using Group Policy or Intune. Always test your XML layout and shortcuts on a reference machine before rolling them out. This helps avoid broken pins, user confusion, and incomplete setups.

You might also like

Ready to simplify the hardest parts of IT?
×

See NinjaOne in action!

By submitting this form, I accept NinjaOne's privacy policy.

NinjaOne Terms & Conditions

By clicking the “I Accept” button below, you indicate your acceptance of the following legal terms as well as our Terms of Use:

  • Ownership Rights: NinjaOne owns and will continue to own all right, title, and interest in and to the script (including the copyright). NinjaOne is giving you a limited license to use the script in accordance with these legal terms.
  • Use Limitation: You may only use the script for your legitimate personal or internal business purposes, and you may not share the script with another party.
  • Republication Prohibition: Under no circumstances are you permitted to re-publish the script in any script library belonging to or under the control of any other software provider.
  • Warranty Disclaimer: The script is provided “as is” and “as available”, without warranty of any kind. NinjaOne makes no promise or guarantee that the script will be free from defects or that it will meet your specific needs or expectations.
  • Assumption of Risk: Your use of the script is at your own risk. You acknowledge that there are certain inherent risks in using the script, and you understand and assume each of those risks.
  • Waiver and Release: You will not hold NinjaOne responsible for any adverse or unintended consequences resulting from your use of the script, and you waive any legal or equitable rights or remedies you may have against NinjaOne relating to your use of the script.
  • EULA: If you are a NinjaOne customer, your use of the script is subject to the End User License Agreement applicable to you (EULA).