Version: 0.2
June 2025
ShArc uses the .sharc file extension for stub files in SharePoint, which reference files offloaded to Azure Blob Storage.
Users accessing these files through the Windows Explorer, when they are working with OneDrive for Business, can be supported by creating a file association redirecting them to a help page explaining how to access and restore files.
This document outlines the necessary steps for configuring and deploying this file association.
This guide is intended for IT administrators responsible for configuring and deploying file associations across an organization.
The installation package includes a preconfigured registry file sharc-windows-file-association.reg, which can be used to create the file association.
Before applying the registry file, it must be adjusted:
sharc-windows-file-association.reg in a text editor such as Notepad.The file association can be applied by simply double-clicking the file.
Note: Administrator privileges are required to execute the .reg file.
For enterprise-wide deployment, the installation package includes a PowerShell script that applies the required ShArc file association settings to the Windows Registry.
Before deployment, the script must be updated:
sharc-windows-file-association.ps1 in a text editor such as Notepad.The PowerShell script requires administrator (system) privileges for execution and can be deployed using:
This ensures a consistent rollout across all managed devices within the organization.
To deploy your ShArc file association configuration via Microsoft Intune, follow these steps to package your files using the Microsoft Win32 Content Prep Tool.
1. Prepare your files Place your updated PowerShell script (sharc-windows-file-association.ps1) and registry file (sharc-windows-file-association.reg) into a dedicated folder (e.g., C:\ShArcPackage).
⚠️ Important: Do not place the Win32 Content Prep Tool itself in this folder.
2. Download the Win32 Content Prep Tool Download the tool from GitHub and extract it to a separate location (e.g., C:\PrepTool).
3. Run the tool interactively Launch via Command Line IntuneWinAppUtil.exe to launch the interactive wizard.
When prompted:
C:\ShArcPackage)sharc-windows-file-association.ps1).intunewin file should be saved (e.g., C:\Output)N (unless you have catalog files)The tool will generate a .intunewin package in your output folder.
In the Microsoft Intune admin center:
.intunewin fileInstall command:
powershell.exe -ExecutionPolicy Bypass -File "sharc-windows-file-association.ps1"
Uninstall command:
powershell.exe -ExecutionPolicy Bypass -File "sharc-windows-file-association.ps1" -Uninstall
Install behavior: Select System
Device restart behavior: Choose No specific action
Add a detection rule to ensure Intune can verify successful deployment.
Configure the registry detection rule as follows:
HKEY_CLASSES_ROOT\.sharcTarget the relevant device or user groups for deployment.
HKEY_CLASSES_ROOT\.sharc.sharc file