﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Remote Assistance w/o Permission</title><link>http://www.visualbasicscript.com/</link><description /><copyright>(c) VBScript Forum</copyright><ttl>30</ttl><item><title> RE: Remote Assistance w/o Permission (twilliamsen)</title><description>  Ok, it is fixed with the above portion of putting a space between Remote and Assitance. &lt;br&gt;  &amp;nbsp; &lt;br&gt;  The strComputerName variable is not being passed to the text box.&amp;nbsp;  &lt;br&gt;   </description><link>http://www.visualbasicscript.com/fb.ashx?m=55757</link><pubDate>Mon, 21 Jan 2008 12:34:19 GMT</pubDate></item><item><title> RE: Remote Assistance w/o Permission (twilliamsen)</title><description>  Meg. &lt;br&gt;  &amp;nbsp; &lt;br&gt;  Very interesting concept....&amp;nbsp; I am looking at using this piece of interesting code with my current HTA...&amp;nbsp;  &lt;br&gt;  &amp;nbsp; &lt;br&gt;  But, I keep getting this: &lt;br&gt;  &amp;nbsp; &lt;br&gt;  Machine is not accessible, ie does not appear to be turned on.&amp;nbsp;  &lt;br&gt;  &amp;nbsp; &lt;br&gt;  Firewalls are not on...&amp;nbsp; I can ping the machine. &lt;br&gt;  &amp;nbsp; &lt;br&gt;  and I can open this directly from the run box &lt;br&gt;  &amp;nbsp; &lt;br&gt;  \c$\WINDOWS\PCHealth\HelpCtr\System\Remote"&amp;gt;\\&amp;lt;strComputerName&amp;gt;\c$\WINDOWS\PCHealth\HelpCtr\System\Remote Assistance\helpeeaccept.htm &lt;br&gt;  &amp;nbsp; &lt;br&gt;  I did find a little error with the directory above, there is a space between "Remote" and "Assistance"&amp;nbsp; I changed it will triple quotes, but do not know if that is the issue yet or not. &lt;br&gt;  &amp;nbsp; &lt;br&gt;   </description><link>http://www.visualbasicscript.com/fb.ashx?m=55755</link><pubDate>Mon, 21 Jan 2008 12:27:48 GMT</pubDate></item><item><title> RE: Remote Assistance w/o Permission (Rischip)</title><description>  All it is, is TightVNC with remote installation. My software does that, just not quite as eligantly. &lt;br&gt;  But then again, mine is scriptable, and be scripted to connect to all pc's in a domain sequentially. &lt;br&gt;   </description><link>http://www.visualbasicscript.com/fb.ashx?m=52638</link><pubDate>Thu, 11 Oct 2007 18:09:00 GMT</pubDate></item><item><title> RE: Remote Assistance w/o Permission (Aforb)</title><description>  Creating it's&amp;nbsp;own terminal service without authentication and no notofication on host PC. &lt;br&gt;   &lt;br&gt;  Yeah, I guess it is ;) But it only works over a domain, not workgroup, and has difficulty finding some hosts.  &lt;br&gt;  &amp;nbsp; &lt;br&gt;  [Edit: Spelling] &lt;br&gt;   </description><link>http://www.visualbasicscript.com/fb.ashx?m=52178</link><pubDate>Mon, 24 Sep 2007 14:33:26 GMT</pubDate></item><item><title> RE: Remote Assistance w/o Permission (ginolard)</title><description>  Holy Cow...that GenControl tool is just a little TOO powerful.... </description><link>http://www.visualbasicscript.com/fb.ashx?m=52147</link><pubDate>Mon, 24 Sep 2007 04:51:01 GMT</pubDate></item><item><title> RE: Remote Assistance w/o Permission (Aforb)</title><description>  I know this isn't as fun as scripting it yourself, but I found a neat little app that does exactly this the other day. &lt;br&gt;  &amp;nbsp; &lt;br&gt;  &lt;a href="http://www.topshareware.com/Gencontrol-download-9507.htm" target="_blank" rel="nofollow"&gt;GenControl&lt;/a&gt;&amp;nbsp;- and I hope this isn't included as spamming. I just thought you all might want to have a look seeing as though it's remote assistance and all. &lt;br&gt;  &amp;nbsp; &lt;br&gt;  Cheers, &lt;br&gt;  Reece. &lt;br&gt;   </description><link>http://www.visualbasicscript.com/fb.ashx?m=52146</link><pubDate>Mon, 24 Sep 2007 00:18:13 GMT</pubDate></item><item><title> RE: Remote Assistance w/o Permission (Meg)</title><description>  &lt;blockquote class="quote"&gt;&lt;i&gt;&lt;/i&gt;&lt;br&gt;ORIGINAL: rothgar &lt;br&gt;   &lt;br&gt;  thanks for the tip.&amp;nbsp; I was going to copy the modified files over to the client machine but where do I copy them to? &lt;br&gt;  &lt;/blockquote&gt;  &lt;br&gt;   &lt;br&gt;  Hi rothgar,  &lt;br&gt;  Run the script from the same directory as where you extracted my Yes and No folders from the zip you downloaded. &lt;br&gt;  The path to the where the modified files get copied to is in the script if you want to manually copy them.  &lt;br&gt;   &lt;br&gt;  &lt;b&gt;&lt;font color="#ff0000"&gt;But to clarify:&lt;/font&gt;&lt;/b&gt; &lt;br&gt;  According to the link in my last post, it appears that there are only two files that need modifying.  &lt;br&gt;  &lt;b&gt;&lt;font face="courier new"&gt;&lt;font size="2"&gt;C:\WINDOWS\pchealth\helpctr\System\Remote Assistance\helpeeaccept.htm&lt;/font&gt;&lt;/font&gt;&lt;/b&gt; &lt;br&gt;  &lt;b&gt;&lt;font face="courier new"&gt;&lt;font size="2"&gt;C:\WINDOWS\pchealth\helpctr\System\Remote Assistance\Interaction\Server\TakeControlMsgs.htm&lt;/font&gt;&lt;/font&gt;&lt;/b&gt; &lt;br&gt;  &lt;b&gt;&lt;/b&gt;&amp;nbsp; &lt;br&gt;  I have tested this and&amp;nbsp;all you need are the two files modified as per Lewis Robert's &lt;a href="http://www.lewisroberts.com/?p=40" target="_blank" rel="nofollow"&gt;http://www.lewisroberts.com/?p=40&lt;/a&gt; instructions.  &lt;br&gt;   &lt;br&gt;  &lt;b&gt;&lt;font color="#000000"&gt;Here is a link to&amp;nbsp;the files (just the two) which I have modified myself. &lt;/font&gt;&lt;/b&gt; &lt;br&gt;  &lt;a href="http://www.painterinfo.com/RA/RA.zip" target="_blank" rel="nofollow"&gt;&lt;b&gt;RA.ZIP&lt;/b&gt;&lt;/a&gt;  &lt;br&gt;   &lt;br&gt;  &lt;b&gt;&lt;font color="#000000"&gt;&lt;i&gt;These files work much better than the ones I posted earlier. &lt;/i&gt;&lt;/font&gt;&lt;/b&gt; &lt;br&gt;  &lt;font color="#000000"&gt;&lt;b&gt;&lt;i&gt;If the link stops working, follow Lewis's tutorial and modify your own copies.&lt;/i&gt;&lt;/b&gt; &lt;/font&gt; </description><link>http://www.visualbasicscript.com/fb.ashx?m=50955</link><pubDate>Sun, 19 Aug 2007 20:18:44 GMT</pubDate></item><item><title> RE: Remote Assistance w/o Permission (rothgar)</title><description>  thanks for the tip.&amp;nbsp; I was going to copy the modified files over to the client machine but where do I copy them to? </description><link>http://www.visualbasicscript.com/fb.ashx?m=50765</link><pubDate>Wed, 15 Aug 2007 16:56:24 GMT</pubDate></item><item><title> RE: Remote Assistance w/o Permission (Meg)</title><description>  The dude on this site describes&amp;nbsp;how to edit your own Remote Assistance files&amp;nbsp;in order to make the remote client auto accept a connection. &lt;a href="http://www.lewisroberts.com/?p=40" target="_blank" rel="nofollow"&gt;http://www.lewisroberts.com/?p=40&lt;/a&gt;&amp;nbsp; </description><link>http://www.visualbasicscript.com/fb.ashx?m=50741</link><pubDate>Wed, 15 Aug 2007 03:48:30 GMT</pubDate></item><item><title> RE: Remote Assistance w/o Permission (Meg)</title><description>  Hi rothgar&lt;b&gt;,&lt;/b&gt;  &lt;br&gt;  &amp;nbsp; &lt;br&gt;  I read on your site that you use Norton AV, we use Mcafee and firewall's off, so that might be a hint?  &lt;br&gt;  &amp;nbsp; &lt;br&gt;  If you can run Remote Assistance via the normal traditional way then there is no reason why remote assistance would not work via this script as basically all it does is launch the remote assistance page, punch in the machine name and press go.  &lt;br&gt;  &amp;nbsp; &lt;br&gt;  Regarding the hacked version of remote assistance, try manually copying the files to a test machine and then run remote assistance via the normal traditional way. If that does not work and future windows security updates could break it, I can't suggest anything as I was just given the modified files, I am not sure what is different about them that makes them special.  &lt;br&gt;  &amp;nbsp; &lt;br&gt;  I did notice today however that when I connected to a users machine using the script, If you press "Take Control" too quick it doesn’t work. Maybe the files are still finishing copying or the system needs to settle for a few seconds before pressing that button.? &lt;br&gt;  &amp;nbsp; &lt;br&gt;  &amp;nbsp; &lt;br&gt;   </description><link>http://www.visualbasicscript.com/fb.ashx?m=50740</link><pubDate>Wed, 15 Aug 2007 03:27:39 GMT</pubDate></item><item><title> RE: Remote Assistance w/o Permission (rothgar)</title><description>  In xp it ran for me and prompted the user to allow me to connect but it never went all the way through :( &lt;br&gt;   &lt;br&gt;  I have a feeling it is some setting on our network that is causing problems and not the program itself.&amp;nbsp; My work network is pretty jacked up. :( &lt;br&gt;   &lt;br&gt;  If the user on the other end clicks yes it just fails every time. &lt;br&gt;   </description><link>http://www.visualbasicscript.com/fb.ashx?m=50739</link><pubDate>Tue, 14 Aug 2007 20:43:59 GMT</pubDate></item><item><title> RE: Remote Assistance w/o Permission (dm_4ever)</title><description>  Yeah, on Vista they actually have an EXE which can be used via the command line to pass various options....&lt;img src="http://www.visualbasicscript.com/upfiles/smiley/s10.gif" alt="" /&gt; wish they had that on WinXP....it would make RemoteAssistance so much easier to script. </description><link>http://www.visualbasicscript.com/fb.ashx?m=50736</link><pubDate>Tue, 14 Aug 2007 18:27:07 GMT</pubDate></item><item><title> RE: Remote Assistance w/o Permission (rothgar)</title><description>  It looks like the call for remote assistance. &lt;br&gt;   &lt;br&gt;  shell.run "hcp://CN=Microsoft%20Corporation,L=Redmond,S=Washington,C=US/Remote%20Assistance/Escalation/Unsolicited/Unsolicitedrcui.htm" &lt;br&gt;   &lt;br&gt;   &lt;br&gt;  OH WAIT...it is different in vista.&amp;nbsp; Let me try it on XP &lt;br&gt;   </description><link>http://www.visualbasicscript.com/fb.ashx?m=50735</link><pubDate>Tue, 14 Aug 2007 16:23:38 GMT</pubDate></item><item><title> RE: Remote Assistance w/o Permission (dm_4ever)</title><description>  What's line 85 for you? </description><link>http://www.visualbasicscript.com/fb.ashx?m=50734</link><pubDate>Tue, 14 Aug 2007 16:15:21 GMT</pubDate></item><item><title> RE: Remote Assistance w/o Permission (rothgar)</title><description>  Does anyone else get an error when running the script? &lt;br&gt;   &lt;br&gt;  The error I get is &lt;br&gt;   &lt;br&gt;  Script: C:\remoteassistance.vbs &lt;br&gt;  Line: 85 &lt;br&gt;  Char: 1 &lt;br&gt;  Error: 0x80041002 &lt;br&gt;  Code: 80041002 &lt;br&gt;  Source: (null) &lt;br&gt;   &lt;br&gt;  This looks like a great tool for me as a computer tech but I can't get it to work.&amp;nbsp; Any help would be great! &lt;br&gt;   &lt;br&gt;  Thanks &lt;br&gt;   </description><link>http://www.visualbasicscript.com/fb.ashx?m=50733</link><pubDate>Tue, 14 Aug 2007 15:11:32 GMT</pubDate></item><item><title> RE: Remote Assistance w/o Permission (dm_4ever)</title><description>  Glad to help a bit. &lt;br&gt;   &lt;br&gt;  This is another way to get the current path &lt;br&gt;   &lt;br&gt;  Function ScriptPath &lt;br&gt;  &amp;nbsp;&amp;nbsp;&amp;nbsp; ScriptPath = Replace(WScript.ScriptFullName, _ &lt;br&gt;  &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WScript.ScriptName, "") &lt;br&gt;  End Function  &lt;br&gt;   &lt;br&gt;  I mentioned to &lt;b&gt;itismike&lt;/b&gt; in another post and you that I would use &lt;a href="http://www.autoitscript.com/" target="_blank" rel="nofollow"&gt;AutoIT&lt;/a&gt; for the RALaunch Sub because it is more powerful when waiting for a window and setting focus to it. &lt;br&gt;   &lt;br&gt;  I took a script similar to this and converted it to an .exe using the editor that comes with AutoIT so that it can run on any machine.&amp;nbsp; The script then executes this .exe passing the computer name as a parameter before this line:&amp;nbsp; objShell.run "hcp://CN=Microsoft%20CorpoRAtion,L=Redmond,S=Washington,C=US/Remote%20Assistance/Escalation/Unsolicited/Unsolicitedrcui.htm"  &lt;br&gt;   &lt;br&gt;  AutoIT code &lt;br&gt;  &lt;pre class="prettyprint"&gt;
 WinWait("Help and Support Center")
 Sleep(2000)
 WinActivate("Help and Support Center")
 Sleep(2000)
 Send($CmdLine[1])
 Send("{enter}")
 &lt;/pre&gt; &lt;br&gt;   &lt;br&gt;  i.e. &lt;br&gt;  objShell.Run "C:\scripts\RAHelper.exe " &amp;amp; strComputer &lt;br&gt;  WScript.Sleep 2000 &lt;br&gt;  objShell.run "hcp://CN=Microsoft%20CorpoRAtion,L=Redmond,S=Washington,C=US/Remote%20Assistance/Escalation/Unsolicited/Unsolicitedrcui.htm"  &lt;br&gt;   </description><link>http://www.visualbasicscript.com/fb.ashx?m=50694</link><pubDate>Mon, 13 Aug 2007 21:06:08 GMT</pubDate></item><item><title> RE: Remote Assistance w/o Permission (Meg)</title><description>  Thanks dm_4ever,  &lt;br&gt;  &amp;nbsp; &lt;br&gt;  That's heaps better. I tried it and after adding the scriptpath function back in because the copy function was failing, it works better than mine.  &lt;br&gt;  &amp;nbsp; &lt;br&gt;  Here is your version with that fix,  &lt;br&gt;  &amp;nbsp; &lt;br&gt;  &lt;pre class="prettyprint"&gt;
 Option Explicit
 Const OverWriteFiles = True
 RemoteAssistance()
 Sub RemoteAssistance
 &amp;nbsp;&amp;nbsp; Dim strComputer : strComputer = UCase(WScript.Arguments.Named("computer"))
 &amp;nbsp;&amp;nbsp; If strComputer = "" Then strComputer = UCase(InputBox("Enter PC Name:"))
 &amp;nbsp;&amp;nbsp; 
 &amp;nbsp;&amp;nbsp; If Not Reachable(strComputer) Then 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox strComputer &amp;amp; " is unreachable or offline. This script will now end.", vbOKOnly + vbInformation, "OFFLINE"
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WScript.Quit
 &amp;nbsp;&amp;nbsp; End If
 &amp;nbsp;&amp;nbsp; 
 &amp;nbsp;&amp;nbsp; Dim strRANormal : strRANormal = UCase(WScript.Arguments.Named("RANormal"))
 &amp;nbsp;&amp;nbsp; Select Case strRANormal
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Case "YES", "TRUE"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strRANormal = vbYes
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Case "NO"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strRANormal = vbNo
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Case Else&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strRANormal = ""
 &amp;nbsp;&amp;nbsp; End Select
 &amp;nbsp;&amp;nbsp; If strRANormal = "" Then strRANormal = MsgBox("Click YES for Remote Assistance to opeRAte normally", vbYesNo, "Ask Permission?")
 &amp;nbsp;&amp;nbsp; 
 &amp;nbsp;&amp;nbsp; If strRANormal = vbYes Then
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RALaunch strComputer
 &amp;nbsp;&amp;nbsp; Else
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim objFSO : Set objFSO = CreateObject("Scripting.FileSystemObject")
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objFSO.CopyFolder ScriptPath&amp;amp;"\NO\Remote Assistance" , "\\"&amp;amp;strComputer&amp;amp;"\c$\WINDOWS\PCHealth\HelpCtr\System\" , OverWriteFiles
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RALaunch strComputer
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WScript.Sleep 60000
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objFSO.CopyFolder ScriptPath&amp;amp;"\YES\Remote Assistance" , "\\"&amp;amp;strComputer&amp;amp;"\c$\WINDOWS\PCHealth\HelpCtr\System\" , OverWriteFiles
 &amp;nbsp;&amp;nbsp; End If
 End Sub
 Function Reachable(strComputer)
 &amp;nbsp;&amp;nbsp; Dim wmiQuery : wmiQuery = "Select * From Win32_PingStatus Where Address = '" &amp;amp; _
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strComputer &amp;amp; "'"
 &amp;nbsp;&amp;nbsp; Dim objWMIService : Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
 &amp;nbsp;&amp;nbsp; Dim objPing : Set objPing = objWMIService.ExecQuery(wmiQuery)
 &amp;nbsp;&amp;nbsp; Dim objStatus
 &amp;nbsp;&amp;nbsp; For Each objStatus in objPing
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If IsNull(objStatus.StatusCode) Or objStatus.Statuscode&amp;lt;&amp;gt;0 Then
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Reachable = False
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Reachable = True
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If
 &amp;nbsp;&amp;nbsp; Next
 End Function
 Sub RALaunch(strComputer)
 &amp;nbsp;&amp;nbsp; Dim objShell : Set objShell = CreateObject("WScript.Shell")
 &amp;nbsp;&amp;nbsp; 
 &amp;nbsp;&amp;nbsp; objShell.run "hcp://CN=Microsoft%20CorpoRAtion,L=Redmond,S=Washington,C=US/Remote%20Assistance/Escalation/Unsolicited/Unsolicitedrcui.htm" 
 &amp;nbsp;&amp;nbsp; 
 &amp;nbsp;&amp;nbsp; Do until objShell.AppActivate ("Help and Support Center") 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Wscript.Sleep 500
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objShell.AppActivate ("Help and Support Center") 
 &amp;nbsp;&amp;nbsp; Loop 
 &amp;nbsp;&amp;nbsp; 
 &amp;nbsp;&amp;nbsp; wscript.sleep 2000
 &amp;nbsp;&amp;nbsp; Do Until objShell.AppActivate ("Help and Support Center") 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Wscript.Sleep 500
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objShell.AppActivate ("Help and Support Center") 
 &amp;nbsp;&amp;nbsp; Loop 
 &amp;nbsp;&amp;nbsp; 
 &amp;nbsp;&amp;nbsp; objShell.sendkeys strComputer
 &amp;nbsp;&amp;nbsp; wscript.sleep 500
 &amp;nbsp;&amp;nbsp; Do until objShell.AppActivate ("Help and Support Center") 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Wscript.Sleep 5
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objShell.AppActivate ("Help and Support Center") 
 &amp;nbsp;&amp;nbsp; Loop 
 &amp;nbsp;&amp;nbsp; 
 &amp;nbsp;&amp;nbsp; objShell.sendkeys "%c" 
 &amp;nbsp;&amp;nbsp; wscript.sleep 500
 &amp;nbsp;&amp;nbsp; Do until objShell.AppActivate ("Help and Support Center") 
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Wscript.Sleep 5
 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objShell.AppActivate ("Help and Support Center") 
 &amp;nbsp;&amp;nbsp; loop&amp;nbsp; 
 &amp;nbsp;&amp;nbsp; 
 &amp;nbsp;&amp;nbsp; objShell.sendkeys "%s" 
 End Sub
 
 'Determine path script is running from
 Function ScriptPath()
 &amp;nbsp; ScriptPath = Left(WScript.ScriptFullName, _
 &amp;nbsp;&amp;nbsp;&amp;nbsp; Len(WScript.ScriptFullName) - Len(WScript.ScriptName))
 End Function&amp;nbsp;
 &lt;/pre&gt; &lt;br&gt;  &amp;nbsp; &lt;br&gt;  It connects more reliably and is easier to understand. &lt;img src="http://www.visualbasicscript.com/upfiles/smiley/s13.gif" alt="" /&gt; &lt;br&gt;   </description><link>http://www.visualbasicscript.com/fb.ashx?m=50691</link><pubDate>Mon, 13 Aug 2007 20:16:55 GMT</pubDate></item><item><title> RE: Remote Assistance w/o Permission (dm_4ever)</title><description>  I would use something else like AutoIT to replace the RALaunch Sub, but besides that, this is a slightly cleaned up version. (untested) &lt;br&gt;   &lt;br&gt;  command line: &lt;br&gt;  RAScript.vbs /computer:Computer1 /ranormal:yes &lt;br&gt;  or &lt;br&gt;  RAScript.vbs /computer:Computer1 /ranormal:no &lt;br&gt;   &lt;br&gt;  &lt;pre class="prettyprint"&gt;
 Option Explicit
 
 Const OverWriteFiles = True
 
 RemoteAssistance()
 
 Sub RemoteAssistance
 &amp;nbsp;&amp;nbsp;&amp;nbsp; Dim strComputer : strComputer = UCase(WScript.Arguments.Named("computer"))
 &amp;nbsp;&amp;nbsp;&amp;nbsp; If strComputer = "" Then strComputer = UCase(InputBox("Enter PC Name:"))
 &amp;nbsp;&amp;nbsp;&amp;nbsp; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp; If Not Reachable(strComputer) Then 
 &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox strComputer &amp;amp; " is unreachable or offline. This script will now end.", vbOKOnly + vbInformation, "OFFLINE"
 &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; WScript.Quit
 &amp;nbsp;&amp;nbsp;&amp;nbsp; End If
 &amp;nbsp;&amp;nbsp;&amp;nbsp; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp; Dim strRANormal : strRANormal = UCase(WScript.Arguments.Named("RANormal"))
 &amp;nbsp;&amp;nbsp;&amp;nbsp; Select Case strRANormal
 &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Case "YES", "TRUE" &amp;nbsp;&amp;nbsp;&amp;nbsp; strRANormal = vbYes
 &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Case "NO" &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strRANormal = vbNo
 &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Case Else &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strRANormal = ""
 &amp;nbsp;&amp;nbsp;&amp;nbsp; End Select
 &amp;nbsp;&amp;nbsp;&amp;nbsp; If strRANormal = "" Then strRANormal = MsgBox("Click YES for Remote Assistance to opeRAte normally", vbYesNo, "Ask Permission?")
 &amp;nbsp;&amp;nbsp;&amp;nbsp; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp; If strRANormal = vbYes Then
 &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; RALaunch strComputer
 &amp;nbsp;&amp;nbsp;&amp;nbsp; Else
 &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Dim objFSO : Set objFSO = CreateObject("Scripting.FileSystemObject")
 &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; objFSO.CopyFolder ".\NO\Remote Assistance", "\\" &amp;amp; strComputer &amp;amp; "\c$\WINDOWS\PCHealth\HelpCtr\System", OverWriteFiles
 &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; RALaunch strComputer
 &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; WScript.Sleep 60000
 &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; objFSO.CopyFolder ".\YES\Remote Assistance", "\\" &amp;amp; strComputer &amp;amp; "\c$\WINDOWS\PCHealth\HelpCtr\System", OverWriteFiles
 &amp;nbsp;&amp;nbsp;&amp;nbsp; End If
 End Sub
 
 Function Reachable(strComputer)
 &amp;nbsp;&amp;nbsp;&amp;nbsp; Dim wmiQuery : wmiQuery = "Select * From Win32_PingStatus Where Address = '" &amp;amp; _
 &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; strComputer &amp;amp; "'"
 &amp;nbsp;&amp;nbsp;&amp;nbsp; Dim objWMIService : Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
 &amp;nbsp;&amp;nbsp;&amp;nbsp; Dim objPing : Set objPing = objWMIService.ExecQuery(wmiQuery)
 &amp;nbsp;&amp;nbsp;&amp;nbsp; Dim objStatus
 &amp;nbsp;&amp;nbsp;&amp;nbsp; For Each objStatus in objPing
 &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; If IsNull(objStatus.StatusCode) Or objStatus.Statuscode&amp;lt;&amp;gt;0 Then
 &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Reachable = False
 &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Else
 &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Reachable = True
 &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; End If
 &amp;nbsp;&amp;nbsp;&amp;nbsp; Next
 End Function
 
 Sub RALaunch(strComputer)
 &amp;nbsp;&amp;nbsp;&amp;nbsp; Dim objShell : Set objShell = CreateObject("WScript.Shell")
 &amp;nbsp;&amp;nbsp;&amp;nbsp; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp; objShell.run "hcp://CN=Microsoft%20CorpoRAtion,L=Redmond,S=Washington,C=US/Remote%20Assistance/Escalation/Unsolicited/Unsolicitedrcui.htm" 
 &amp;nbsp;&amp;nbsp;&amp;nbsp; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp; Do until objShell.AppActivate ("Help and Support Center") 
 &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Wscript.Sleep 500
 &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; objShell.AppActivate ("Help and Support Center") 
 &amp;nbsp;&amp;nbsp;&amp;nbsp; Loop 
 &amp;nbsp;&amp;nbsp;&amp;nbsp; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp; wscript.sleep 2000
 &amp;nbsp;&amp;nbsp;&amp;nbsp; Do Until objShell.AppActivate ("Help and Support Center") 
 &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Wscript.Sleep 500
 &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; objShell.AppActivate ("Help and Support Center") 
 &amp;nbsp;&amp;nbsp;&amp;nbsp; Loop 
 &amp;nbsp;&amp;nbsp;&amp;nbsp; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp; objShell.sendkeys strComputer
 &amp;nbsp;&amp;nbsp;&amp;nbsp; wscript.sleep 500
 &amp;nbsp;&amp;nbsp;&amp;nbsp; Do until objShell.AppActivate ("Help and Support Center") 
 &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Wscript.Sleep 5
 &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; objShell.AppActivate ("Help and Support Center") 
 &amp;nbsp;&amp;nbsp;&amp;nbsp; Loop 
 &amp;nbsp;&amp;nbsp;&amp;nbsp; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp; objShell.sendkeys "%c" 
 &amp;nbsp;&amp;nbsp;&amp;nbsp; wscript.sleep 500
 &amp;nbsp;&amp;nbsp;&amp;nbsp; Do until objShell.AppActivate ("Help and Support Center") 
 &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Wscript.Sleep 5
 &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; objShell.AppActivate ("Help and Support Center") 
 &amp;nbsp;&amp;nbsp;&amp;nbsp; loop&amp;nbsp; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp; 
 &amp;nbsp;&amp;nbsp;&amp;nbsp; objShell.sendkeys "%s" 
 End Sub
 &lt;/pre&gt; &lt;br&gt;   </description><link>http://www.visualbasicscript.com/fb.ashx?m=50690</link><pubDate>Mon, 13 Aug 2007 18:54:12 GMT</pubDate></item><item><title> RE: Remote Assistance w/o Permission (Meg)</title><description>  &lt;font size="1"&gt;Sorry that part of the script is a bit messy where the command line variable passed is yes or no, what I have done is converted it to 6 or 7 which is the same as the output from the msgbox and then apply logic to it.  &lt;br&gt;  &lt;/font&gt;&lt;font size="1"&gt;You could trim this part of the script down by not even asking the question, i.e. running a normal RA session or the special one always.  &lt;br&gt;  &lt;/font&gt;&lt;font size="1"&gt;The command line variable passing part of the script can be removed completely to make it simpler to follow.&lt;/font&gt; &lt;br&gt;   &lt;br&gt;  &lt;font size="1"&gt;My logic &lt;br&gt;  &lt;/font&gt;&lt;font size="1"&gt;1. Check if 1st cmd line variable is passed to script (computer name).  &lt;br&gt;  &lt;/font&gt;&lt;font size="1"&gt;2. If "" (nothing is passed) then prompt for a computer name &lt;br&gt;  &lt;/font&gt;&lt;font size="1"&gt;3. Check if a file on the remote computer specified is there &lt;br&gt;  &lt;/font&gt;&lt;font size="1"&gt;4. No file found - report target computer is off - quit &lt;br&gt;  &lt;/font&gt;&lt;font size="1"&gt;5. Yes file found - check if 2nd cmd line variable was passed to script (connection method) &lt;br&gt;  &lt;/font&gt;&lt;font size="1"&gt;6. If "" (nothing is passed) then prompt for connection method YES or NO  &lt;br&gt;  &lt;/font&gt;&lt;font size="1"&gt;7. connection method normal - "YES" specified - launch Remote assistance without copying SZY's files. &lt;br&gt;  &lt;/font&gt;&lt;font size="1"&gt;8. Connection method new -No permission required - "NO" specified - &lt;br&gt;  &lt;/font&gt;&lt;font size="1"&gt;9. Copy SZY's files to client  &lt;br&gt;  &lt;/font&gt;&lt;font size="1"&gt;10.Launch Remote assistance  &lt;br&gt;  &lt;/font&gt;&lt;font size="1"&gt;11.60 seconds later copy MJP's copy of the original files back. &lt;br&gt;  &lt;/font&gt;&lt;font size="1"&gt;12.quit&lt;/font&gt; &lt;br&gt;   </description><link>http://www.visualbasicscript.com/fb.ashx?m=50628</link><pubDate>Sun, 12 Aug 2007 19:51:13 GMT</pubDate></item><item><title> RE: Remote Assistance w/o Permission (itismike)</title><description>  Hi Meg, &lt;br&gt;   &lt;br&gt;  Yes, I find this very interesting indeed!  I will probably incorporate this into my script after I get my script to run a bit more reliably. &lt;br&gt;   &lt;br&gt;  I had an earlier version that I wrote before I learned how to use subroutines and functions, and for some reason it works more consistently than the script I posted here.   Still have some debugging to do! &lt;br&gt;   &lt;br&gt;  I have to admit that I got a little confused reading the nested if-then statements so I took the liberty of adding indentation and was wondering if I interpreted it correctly: &lt;br&gt;   &lt;br&gt;  &lt;pre class="prettyprint"&gt;
 '[...snip]
 'Check if a cmd line variable was passed to script for method
 On Error Resume next
 answer=WScript.Arguments.Item(1)
 On Error Goto 0
 Set shell = createobject("wscript.shell") 
 If answer="" Then 
     'Ask for RA permission or go straight in
     answer=MsgBox("Click YES for Remote Assistance to operate normally",36,"Ask Permission?")
 Else
     If answer="yes" Then
         answer=6
     End if
     If answer="no" Then
         answer=7
     End If
     If answer=7 Or answer=6 Then
         '
     Else
     answer=MsgBox("Click YES for Remote Assistance to operate normally",36,"Ask Permission?")
     End if
 End If
 If answer=7 Then
     'answer=7 NO
     'copy SZY's modified RA files to remote client
     '[...snip]
    WScript.Quit
 End If
 If answer=6 Then
     'answer=6 YES
     RALaunch
     WScript.Quit
 End if
 &lt;/pre&gt; &lt;br&gt;   &lt;br&gt;  I just had trouble following the logic of the above.  Would this satisfy what the above intended? &lt;br&gt;  &lt;pre class="prettyprint"&gt;
 '[...snip]
 'Check if a cmd line variable was passed to script for method
 On Error Resume next
 answer=WScript.Arguments.Item(1)
 On Error Goto 0
 Set shell = createobject("wscript.shell") 
 If answer="" Then 
     DO UNTIL answer&amp;lt;&amp;gt;""
         'Ask for RA permission or go straight in
         answer=MsgBox("Click YES for Remote Assistance to operate normally",36,"Ask Permission?")
     LOOP
 End If
 IF answer="yes" THEN
     answer=6
 ELSEIF answer="no" Then
     answer=7
 End If
 If answer=7 Then
     'answer=7 NO
     'copy SZY's modified RA files to remote client
     '[...snip]
    WScript.Quit
 End If
 If answer=6 Then
     'answer=6 YES
     RALaunch
     WScript.Quit
 End if
 &lt;/pre&gt; </description><link>http://www.visualbasicscript.com/fb.ashx?m=50616</link><pubDate>Sun, 12 Aug 2007 06:05:06 GMT</pubDate></item></channel></rss>
