Re: Launching Calculator app on Remote PC, but GUI not visible

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



This is for security reasons. The only way to do something like this
is to use PSExec along with the -i switch.
On Feb 8, 3:59 pm, mr_ravi_pa...@xxxxxxxxx wrote:
Is it possible to execute an .exe (like calc.exe) visibly on a remote
PC?

When I run the following script. the "calc.exe" is listed on the
process list of the remote machine.
However, the calculator GUI is not displayed on the remote machine's
PC.

-------------------------------

' VBScript.

RemoteTest.WSF

-------------------------------

<package>

<job>

<script language="VBScript">

set oController = CreateObject("WSHController")

set oProcess = oController.CreateScript("c:\wsh5.6\RunCalc.wsf",
"remotePC")

oProcess.Execute

</script>

</job>

</package>

-------------------------------

' VBScript.

RunCalc.WSF

-------------------------------

<package>

<job>

<script language="VBScript">

Set objShell = CreateObject("WScript.Shell")
Set fso = CreateObject("Scripting.FileSystemObject")

objShell.Run "c:\wsh5.6\RunCalc.cmd",,True

</script>

</job>

</package>


.



Relevant Pages

  • Re: ActiveX - runs in step-by-step, not when trying to run whole package
    ... The step defines a Mainfunction in python: ... Assigns some global variables to local variables ... indicates completed successfully in the package execution details. ... code to equal MsgBox in VBScript. ...
    (microsoft.public.sqlserver.dts)
  • Re: Creating a share on remote machine
    ... > I am using VBScript to make a share on the remote machine and assign ... In a VBscript you can use WMI: ... StrUserName & chr ... StrLocalPath & StrRemark ...
    (microsoft.public.scripting.wsh)
  • [SLE] How to install a package remote?
    ... I need to install a package on a remote machine. ... This package would be on the DVD or on a suse server. ...
    (SuSE)
  • Re: Remotely activating DTS - ODBC client program fails to start?
    ... DTS packages execute on the client. ... LoadFromSQLServer then the package executes on machine which you run the ... VBScript on, and under the crededntials of the user who started the ...
    (microsoft.public.sqlserver.dts)
  • Re: new to VBScript
    ... Ok So if you are waiting for a file before running the package then you can ... You can also check within DTS - ... > about VBScript and how to use it or what it can do for me. ... >>> Im new to VBScript and need to learn how to use it in SQL DTS packages. ...
    (microsoft.public.sqlserver.dts)