Last active
October 25, 2023 14:20
-
-
Save mistificator/270a1a15f6ef94320e09741529af4bf2 to your computer and use it in GitHub Desktop.
.reg file that registers URL protocol "smb://" for SMB shared folders
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\smb] | |
"URL Protocol"="" | |
[HKEY_CLASSES_ROOT\smb\shell] | |
[HKEY_CLASSES_ROOT\smb\shell\open] | |
[HKEY_CLASSES_ROOT\smb\shell\open\command] | |
@="powershell -WindowStyle Hidden -Command \"& { Invoke-Expression $(-join('cmd /c', [URI]::UnescapeDataString('start %1').Replace('smb://', '//').Replace('/', '\\'))) }\"" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example URLs:
smb://server.local/Public
smb://NAS/Devices%20Backup/