The Scripting Pod 
Home Frequently Asked Questions Forum - BLOG Contact Print Page Add to Favorite Close Window
  Home | FAQ | Blog/Forum | Contact |

The Scripts

Windows Vista Gadgets




Auto Accept Offer Remote Assistance Requests

To configure all of your Windows XP computers in your environment to automatically accept Offer Remote Assistance requests all you need to do is edit two files on the XP machines. You can roll this change out to your computers via a login script in a group policy (GPO) or using a 3rd party tool such as "Desktop Standard". Either way works quite well.

INSTRUCTIONS:

You can configure Windows XP to automatically accept incoming Offer Remote Assistance requests by simply editing two files on a Windows XP machine. They are:

  1. C:\WINDOWS\pchealth\helpctr\System\Remote Assistance\helpeeaccept.htm
  2. C:\WINDOWS\pchealth\helpctr\System\Remote Assistance\Interaction\Server\TakeControlMsgs.htm
in both files a line of code is added to call the sub-routine that is executed when a person would click on the "Yes" button when prompted by Offer Remote Assistance (ORA). File "1" is the first file used to prompt a user that someone is going to connect to their PC, "would you like to give username access to your computer" Yes/No. In this file a line is inserted after line number 158. The code: DoAccept(); is inserted after the line: btnDecline.focus(); and before the next semi-colon. This is the routine called when the YES button is pressed. So essentially, the button is automatically pressed when the above prompt is displayed on the computer, giving the IT administrator access to view the end user PC.

File "1" snippet sample showing modification required
  • line 156: btnAccept.disabled = false;
  • line 157: btnDecline.disabled = false;
  • line 158: btnDecline.focus();
  • line 159: DoAccept(); //NEW line Added for auto-accept
  • line 160: ;


File "2" is used when the IT Admin whishes to take control of the PC. In this file a line is inserted after line number 28. The code: onClickHandler(0); is inserted as the "new" line 29. This is the routine called when the YES button is pressed at the following prompt: "Do you wish to let username share control of your computer system" Yes/No. Like above, this essentially presses the YES button automatically when the previously mentioned prompt is displayed.

File "2" snippet sample showing modification required
  • line 25: idBody.style.visibility = "hidden";
  • line 26: alert( L_ERRACCESSDENIED_Text );
  • line 27: return;
  • line 28: }
  • line 29: onClickHandler(0); //NEW line Added for auto-accept
  • line 30: return;


I WILL POST A SCRIPT HERE SOON TO DO THIS AUTOMATICALLY - STAY TUNED

So when the script is used in conjunction with GPO's and the Remote Connection Facilitator, you can connect directly to an end user PC without any hassle!

If you have found this utility useful please consider making a DONATION. Donations help keep this site running, provide resources to develop new scripts, and further enhancements to existing scripts.














Home | FAQ | Forum | Contact |

Copyright 2008 ScriptingPod.com All rights reserved.
Windows XP and the Windows logo are registered
trademarks of the Microsoft Corporation.