Re: Launching Calculator app on Remote PC, but GUI not visible
- From: "joseomjr@xxxxxxxxx" <joseomjr@xxxxxxxxx>
- Date: 8 Feb 2007 17:38:43 -0800
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>
.
- Prev by Date: script to change citrix value
- Next by Date: Re: Concatenation Limit?
- Previous by thread: script to change citrix value
- Next by thread: VBScript compilation error 800A03F6 "Expected End" line 966 char 1
- Index(es):
Relevant Pages
|