Jump to content
saeghe3000

run administrative command remotely [moved]

Recommended Posts

hi

i have ksc 10.5 and clients with kes11.0.9 (win7) and kes 10.2.6 (winxp).

i want to run some administrative commands such as "net time" on my clients.

i create a batch file with this command:

net time \\myServerName /set /y

 

this file run on my client manually correctly. in ksc i create a package and create a task for deploy this package. but doesn't work whether with network agent or with administrator account.

 

please help me

Share this post


Link to post
16 hours ago, Nikolay Arinchev said:

Hi,

Please notice, that your script starts with local system account privileges.

Thank you!

thanks for your reply

I am administrator of that network and i have administrator's password of all clients.

when i create a task for deploy that batch file , i select with account and enter username and password of admin account of that client. but not works

Share this post


Link to post

Hello!

Please clarify if you start the batch using the Network agent or not. 

The network agent uses local system account to start and also starts everything under this account.

Thanks!

Share this post


Link to post

hello

1. can that local system account run administrative commands? such as "net time".

2. can i use admin account of client (without network agent) for running this command?

Share this post


Link to post

Hello!

Local System account does not have enough privileges to run the administrative commands. 

You can disable using the Network Agent in the task properties. 

Thanks!

Share this post


Link to post
4 hours ago, Ivan.Ponomarev said:

Hello!

Local System account does not have enough privileges to run the administrative commands. 

You can disable using the Network Agent in the task properties. 

Thanks!

my problem is although i disable network agent and use admin account , but my script doesn't run!!

Share this post


Link to post
6 часов назад, saeghe3000 сказал:

my problem is although i disable network agent and use admin account , but my script doesn't run!!

Hello!

Does it have a positive result if you run it manually on this machine?

Thank you!

Share this post


Link to post
3 hours ago, Dmitry Parshutin said:

Hello!

Does it have a positive result if you run it manually on this machine?

Thank you!

yes, it runs successfully

Share this post


Link to post
В 24.03.2019 в 17:13, saeghe3000 сказал:

i want to run some administrative commands such as "net time" on my clients.

Why do you use bat scripts for that, is it possible to use GPO for that? Describe what do you want in more details.

Thank you!

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

We use cookies to make your experience of our websites better. By using and further navigating this website you accept this. Detailed information about the use of cookies on this website is available by clicking on more information.