Lansweeper logo
Home Download Features Demo Buy now Help Support forum
 
    Most requested support articles:
  Lansweeper troubleshooting guide.
  The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
  WMI Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
  How to configure the windows firewall using group policies.
  Support:  
 support@lansweeper.com  
Skype: Lansweeper  
  Mo-Fri 9h-17h CET  
Welcome Guest Search | Active Topics | Log In | Register

Untag as favorite
Windows Remote Assitance
sseal
#1 Posted : Tuesday, December 08, 2009 1:25:49 PM

Rank: Premium user

Groups: Premium Users
Posts: 59
Location: Franklin, IN
I use added a "Remote Assistance" link in my custom actions, this allows us to use the built-in windows remote assitance to offer help to remote computers. Here is the syntax to use on vista and Windows 7 Hosts:

Code:
msra.exe /offerra {computer}


and for WIndows XP hosts (you will have to type the computer name):

Code:
"%ProgramFiles%\Internet Explorer\iexplore" hcp://CN=Microsoft%20Corporation,L=Redmond,S=Washington,C=US/Remote%20Assistance/Escalation/Unsolicited/Unsolicitedrcui.htm


Please note that you must run the correct command depending on what OS YOU are running, not the client.
Lansweeper
#2 Posted : Wednesday, December 09, 2009 8:52:31 AM

Rank: Administration

Groups: Administration, Premium Users
Posts: 10,369
Maybe you can wrap it in one vbs script and detect the computer version before launching the command.
sseal
#3 Posted : Wednesday, December 09, 2009 3:38:09 PM

Rank: Premium user

Groups: Premium Users
Posts: 59
Location: Franklin, IN
Good idea! I probably won't write that as all of our support staff have Vista our higher and I have allot of other stuff going on at work right now.
sseal
#4 Posted : Wednesday, December 09, 2009 3:56:39 PM

Rank: Premium user

Groups: Premium Users
Posts: 59
Location: Franklin, IN
So I had a bit of time anyway:

Code:
ComputerName = Wscript.Arguments(0)
strComputer = "."
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colOperatingSystems = objWMIService.ExecQuery ("Select * from Win32_OperatingSystem")

For Each objOperatingSystem in colOperatingSystems
strOS = objOperatingSystem.Caption
If strOS = "Microsoft Windows XP Professional" Then
Set WshShell = WScript.CreateObject("WScript.Shell")
Return = WshShell.Run("iexplore.exe hcp://CN=Microsoft%20Corporation,L=Redmond,S=Washington,C=US/Remote%20Assistance/Escalation/Unsolicited/Unsolicitedrcui.htm", 1)
Else
Set WshShell = WScript.CreateObject("WScript.Shell")
Return = WshShell.Run("msra.exe /offerra "& ComputerName, 1)
End If
Next


Just save this as OfferRemote.vbs and put it in your lansweeper tools share. the command to call it would be:
Code:
cscript.exe \\SERVER\lstools$\OfferRemote.vbs {computer}
FWBB
#5 Posted : Wednesday, March 17, 2010 9:26:26 PM

Rank: Premium user

Groups: Member, Premium Users
Posts: 20
Location: USA
thanks, this works great.

as we still run a lot of XP, i ended up combining the scripts from : http://www.lansweeper.co...-for-Custom-Action.aspx

and launching the bat file from the other post in your vbs script.
instead of the native ORA htm file, it just calls
Code:
Return = WshShell.Run("\\servername\lstools\offerra\ralaunch.bat "& ComputerName, 1)
Users browsing this topic
Guest
Untag as favorite
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Contact: E-mail Lansweeper - Skype : Lansweeper
Copyright 2004 - 2011 © Hemoco bvba