This guide explains how to deploy the ShArc Desktop client (ShArcDesktop) so that users can restore archived files with a single double-click directly from Windows Explorer.
When ShArc archives a file, it leaves a lightweight .sharc stub behind in SharePoint and OneDrive. The ShArc Desktop client turns those stubs back into the original file from inside the user's synced OneDrive folder: the user double-clicks the file in Windows Explorer, ShArc restores the content from cold storage, and the original file opens automatically—with no browser, no SharePoint page, and no extra steps.
Without the desktop client, users can still restore archived files through SharePoint, OneDrive online, or Microsoft Teams in the browser. The desktop client adds the native, native double-click Explorer experience on top of those existing paths. It does not change how restore works anywhere else, and OneDrive sync continues to function normally.
.sharc file in a OneDrive-synced folder.If a restore cannot be completed, for example because no network connection is available, the client shows a clear native error message instead of opening the file.
https://sharc-<organisation>.azurewebsites.net.| Method | Best for | Package |
|---|---|---|
| Microsoft Intune | Rolling the client out to many machines centrally | ShArcDesktop.intunewin |
| Standalone installer | A single machine, such as a tester, a one-off device, or an unmanaged device | ShArcDesktop-Installer.exe |
Both methods install the same client and register the same .sharc file association. They differ only in how the package is delivered and elevated.
After completing Step 1, use the four values to deploy the prebuilt ShArcDesktop.intunewin package.
Open the Microsoft Intune admin center, then go to Apps > Windows > Add. Choose the app type Windows app (Win32) and upload ShArcDesktop.intunewin.
ShArcDesktop.intunewin.
ShArcDesktopLayer2 GmbH.sharc stub files on double-click.Paste the four values from Step 1 into the install command:
powershell.exe -ExecutionPolicy Bypass -File .\Install-Intune.ps1 -ServerUrl "<ServerUrl>" -ClientId "<ClientId>" -ServerClientId "<ServerClientId>" -TenantId "<TenantId>"
Use the following uninstall command:
powershell.exe -ExecutionPolicy Bypass -File .\Uninstall-Intune.ps1
Set Install behavior to System.
Choose Use a custom detection script and upload Detect-Intune.ps1 from the package.
The detection script reports the app as installed once the registry entry, executable, and .sharc file association are all in place.
Detect-Intune.ps1 as a custom detection script and leave both options set to No.
Assign the app to the target user or device group. Monitor the rollout under Apps > ShArcDesktop > Device install status.
C:\Program Files\Layer2\ShArc\ShArcDesktop.exe exists.C:\ProgramData\Layer2\ShArc\appsettings.json contains the four tenant-specific values..sharc file and confirm that it is restored and the original file opens.For a single machine that is not managed by Intune, use the self-extracting installer ShArcDesktop-Installer.exe. It installs the same client and requires no additional prerequisites. The built-in Windows PowerShell 5.1 is sufficient, and no execution-policy change is required.
Install-Sharc.ps1 -Mode Update, or note them from the output of -Mode Install.ShArcDesktop-Installer.exe, approve the User Account Control prompt, and enter ServerUrl, ClientId, ServerClientId, and TenantId when prompted.C:\Program Files\Layer2\ShArc\ShArcDesktop.exe and C:\ProgramData\Layer2\ShArc\appsettings.json, registers the .sharc association, and adds an entry under Settings > Apps.No training is required. To restore an archived file from a OneDrive-synced folder, the user simply double-clicks it in Windows Explorer. ShArcDesktop opens, restores the file, and opens it after OneDrive has finished syncing it to the device.
The other restore paths remain available and unchanged. From SharePoint, OneDrive online, or Microsoft Teams, users restore through the browser. Mac users and machines without the desktop client always use the browser-based restore path.
ShArcDesktop.intunewin as a new Win32 app version or supersede the existing app. Enrolled devices reinstall silently.ShArcDesktop-Installer.exe on the machine.In both cases, the user configuration at C:\ProgramData\Layer2\ShArc\appsettings.json is preserved.
On a single machine, open Settings > Apps > ShArcDesktop > Uninstall, or trigger the Intune uninstall. This removes the binaries and the .sharc association. The configuration at %ProgramData%\Layer2\ShArc\appsettings.json and the per-user token cache are intentionally preserved.
To remove the Azure AD desktop client app registration as well, use:
Install-Sharc.ps1 -Mode UninstallAll
Important: This mode also removes the ShArc Azure resources. Run it only when you intend to decommission the entire deployment.
If a user previously selected Always use this app for .sharc files, for example to open them with Notepad, Windows stores a protected per-user override that a system-level installation cannot safely change.
Affected users can apply one of the following one-time fixes from their own Windows session:
.sharc file, select Open with > Choose another app > ShArcDesktop, and enable Always use this app.Remove-Item "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.sharc\UserChoice" -Force
After either fix, double-clicking a .sharc file opens ShArcDesktop.
If the client does not install, sign in, or restore files as expected, see the companion ShArc Desktop Client troubleshooting guide.
The most useful log locations for support are:
%LocalAppData%\Layer2\ShArc\logs\C:\ProgramData\Microsoft\IntuneManagementExtension\Logs\