Seite 1 von 1

Remote control runs on local PC

Verfasst: 29 Mai 2012, 13:08
von Feonik
I run my browser (any - IE, Firefox, Opera) on my local PC and try run my command by "Remote Control" for selected remote PC. But my command runs on my local PC.

My config:
opsi 4.0.1
local PC: Windows XP or Windows 7, java 1.6.0_24-b07 or 1.6.0_25-b06, browser - any (IE, FF, Opera)
remote PC: Windows XP, opsi client agent 4.0.1

In "Remote Control call" window I select command "ping_windows" and change command string from
cmd.exe /c start ping %host%
to (for example)
cmd.exe /c net user
and run it.

In out part of "Remote Control call" window I view users of local PC. But I want view users of remote PC.

How can I run my command on remote PC?

P.S. Sorry for my English.

Re: Remote control runs on local PC

Verfasst: 29 Mai 2012, 14:27
von d.oertel
Hi,

the %host% part of the command will be substituted by the FQDN of the selected client.
If you omit %host%, no command knows where to go .......

Does this help ?

regards
d.oertel

Re: Remote control runs on local PC

Verfasst: 29 Mai 2012, 15:42
von Feonik
Thank you for your reply.

But I not understand :)

When I write
cmd.exe /c net user %host%
then I get
"User name not found" (translate from Russian).

%host% is parameter for "net user" in this case, is not parameter for "Remote Control".

Please explain to me by giving an example for my command.

Re: Remote control runs on local PC

Verfasst: 29 Mai 2012, 15:56
von d.oertel
Hi,

what do you try to do ?
net user is a command for user handling ....
What information or action do you try to get or activate ?

Code: Alles auswählen

cmd.exe /c start ping %host%
starts a cmd.exe on your local machine which makes a ping to %host%

regards

d.oertel

Re: Remote control runs on local PC

Verfasst: 29 Mai 2012, 16:15
von Feonik
Oh, sorry :)

I hoped to run any commands on remote PC by opsi client agent like ssh for all selected PC.

Then I will must do it only by opsi packet with script like this:

setup.ins

Code: Alles auswählen

[Actions]
DosBatch_cmd

[DosBatch_cmd]
net user Admin 123456
Or is it other way?