I could not post this in the comments for the Horizon Toolbox 2 – VMware Labs fling, error:
Access Denied
You don't have permission to access "http://labs.vmware.com/wp-comments-post.php" on this server.
Reference #18.6e95dc17.1452539334.1b884f98
Probably had to do with length or content so here it is:
We dont want to install the built in remote assistance but would like the ability to use the existing Microsoft remote assistance (Initiate Remote Assistance from a Command Line or a Script). I was able to modify the registry of my admin machine to handle a new protocol handler to support a new href added to C:\Program Files\VMware\HorizonToolbox\HorizonToolbox2.0.1\webapps\toolbox\WEB-INF\templates\console.html in the toolkit.
This is not a secure way of accomplishing this, perhaps you could find something more appropriate.
The registry keys needed on my local admin machine:
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\msra] @="URL:Microsoft Remote Assistance Protocol" "URL Protocol"="" [HKEY_CLASSES_ROOT\msra\shell] [HKEY_CLASSES_ROOT\msra\shell\open] [HKEY_CLASSES_ROOT\msra\shell\open\command] @="cmd /C for /F \"delims=: tokens=2\" %%c in (\"%1\") do msra.exe /offerra %%c"
Added the following html to line 142 of console.html:
<a title="Offer MS Remote Assistance" href="msra:{{vm.name}}" target="_blank">{{vm.name}}</a>
If your url tries to connect to "unsafe:msra:vmname" then you'll need to edit the javascript to add the msra protocol handler. I did this on line 124 in C:\Program Files\VMware\HorizonToolbox\HorizonToolbox2.0.1\webapps\toolbox\js\angular.min.js
change https?|ftp|mailto|tel|file to https?|ftp|mailto|msra|tel|file
Of course you need the proper GPO's deployed to offer remote assistance:
System/Remote Assistance
Policy | Setting | Winning GPO | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
Offer Remote Assistance | Enabled | RemoteAssistance | ||||||||
| ||||||||||
Policy | Setting | Winning GPO | ||||||||
Solicited Remote Assistance | Enabled | RemoteAssistance | ||||||||
| ||||||||||
Policy | Setting | Winning GPO | ||||||||
Turn on session logging | Enabled | RemoteAssistance |