Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\winbox]
@="URL:Winbox Protocol"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\winbox\shell]

[HKEY_CLASSES_ROOT\winbox\shell\open]

[HKEY_CLASSES_ROOT\winbox\shell\open\command]
@="powershell.exe -windowstyle hidden -command \"$u='%1' -replace '^winbox://','' -replace '/$',''; $usr=''; $pwd=''; $ip=$u; if($u -match '^(.*?):(.*?)@(.*)$'){$usr=[Uri]::UnescapeDataString($matches[1]); $pwd=[Uri]::UnescapeDataString($matches[2]); $ip=$matches[3]}elseif($u -match '^(.*?)@(.*)$'){$usr=[Uri]::UnescapeDataString($matches[1]); $ip=$matches[2]}; $ip=$ip -replace '/.*',''; $exe='winbox.exe'; if(Test-Path 'C:\\Users\\Public\\winbox.exe'){$exe='C:\\Users\\Public\\winbox.exe'}elseif(Test-Path 'C:\\Public\\winbox.exe'){$exe='C:\\Public\\winbox.exe'}; if($usr -and $pwd){Start-Process $exe -ArgumentList @($ip,$usr,$pwd)}elseif($usr){Start-Process $exe -ArgumentList @($ip,$usr)}else{Start-Process $exe -ArgumentList @($ip)}\""
