Remote control runs on local PC

Antworten
Feonik
Beiträge: 3
Registriert: 29 Mai 2012, 12:46

Remote control runs on local PC

Beitrag 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.
Benutzeravatar
d.oertel
uib-Team
Beiträge: 3327
Registriert: 04 Jun 2008, 14:27

Re: Remote control runs on local PC

Beitrag 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


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


Feonik
Beiträge: 3
Registriert: 29 Mai 2012, 12:46

Re: Remote control runs on local PC

Beitrag 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.
Benutzeravatar
d.oertel
uib-Team
Beiträge: 3327
Registriert: 04 Jun 2008, 14:27

Re: Remote control runs on local PC

Beitrag 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


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


Feonik
Beiträge: 3
Registriert: 29 Mai 2012, 12:46

Re: Remote control runs on local PC

Beitrag 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?
Antworten