10.22.2013

Windows Remote Assistance - Add right-click context menu to initiate request

Windows Remote Assistance - Add right-click context menu to initiate request


RemoteAssistance.vbs
=====================
'Script to run Remote Assitance on domain computer
Set wshArguments = WScript.Arguments
Set objUser = GetObject(wshArguments(0))
'Check if Remote Assistance is installed
Set fso = CreateObject("Scripting.FileSystemObject")
If (fso.FileExists("C:\Windows\System32\msra.exe")) Then
'Is istalled
 Set objShell = WScript.CreateObject("WScript.Shell")
 Return = objShell.Run("C:\Windows\System32\msra.exe /offerra " & objUser.dNsHostName, 1, true)
Else
 'Is not installed, error.
 Wscript.Echo "Microsoft Remote Assistance is not installed on this machine."
End If

=====================
Save this script as .vbs file into \\DOMAIN.LOCAL\NETLOGON directory.
StartADSI Edit tool 
Right-Click and hit Connect To
Choose Configuration and Click OK
Look for the following Key: 

CN=409,CN=DisplaySpecifiers,CN=Configuration,DC=domain,DC=local

There look for CN=computer-Display. Right-click on CN=computer-Display and select Properties.

aduc01

In attribute adminContextMenu add following line:
2, &Remote Assistance,\\domain.local\NETLOGON\RemoteAssistance.vbs

Description:
2 – order number
&Remote Assistance – name of the item in context menu
When you click OK, OK in ADSI Edit your work is done. Now when you click on computer account you can see and use following context menu item:

aduc02

And that’s all folks.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.