Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\winbox]
@="URL:Winbox Protocol"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\winbox\DefaultIcon]
@="\"C:\\Program Files\\Mikrotik\\Winbox\\winbox64.exe\",0"

[HKEY_CLASSES_ROOT\winbox\shell]

[HKEY_CLASSES_ROOT\winbox\shell\open]

[HKEY_CLASSES_ROOT\winbox\shell\open\command]
@="powershell.exe -WindowStyle Hidden -Command \"$uri = '%1' -replace '^winbox://',''; if ($uri -match '^(?:([^:]+):([^@]+)@)?([^:]+)(?::(\\d+))?') { $u = $Matches[1]; $p = $Matches[2]; $h = $Matches[3]; $port = $Matches[4]; $t = if ($port) { \\\"$h`:$port\\\" } else { $h }; & winbox64.exe $t $u $p }\""
