Hi All,

I need to create a vb script which will be executed through a shortcut. This shortcut will be executed under restricted account occasionally to stop a service by the end users to perform certain updates. While this service is running, they can't perform the update, that is why the service must be stopped by the end users. As the restricted accounts don't have the permission to stop a service.. I need to write a vb script which needs to Runas Administrator..

Can any one help one this...

Regards,
Sanhivi
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
For any scripted solution, you will need to devise a way to encrypt the admin account's password. It would be an order of magnitude easier if your package was built so that it stopped the service and restarted it after a successful install.
Answered 03/21/2011 by: VBScab
Red Belt

Please log in to comment
0
It might be better if you didn't let your users update their software at all and instead handled it via packaging & distribution. Your package could handle automatically stopping the service, replacing the files, and starting it back up again. If your updates are frequent, you'll probably want to implement a process where you apply patches or design the package so that you can easily recompile it with new versions of the files and rev it for distribution.
Answered 03/21/2011 by: mazessj
Blue Belt

Please log in to comment
0
Thank you for your replies...

I found one script to handle the above scenario....


Regards,
Sanhivi
Answered 03/22/2011 by: sanhivi
Second Degree Green Belt

Please log in to comment
0
Would you mind sharing that script please?
Answered 06/02/2011 by: janoon
Senior Yellow Belt

Please log in to comment
0
if you want to request administator rights from user you can set "RunAsAdmin flag for shortcut. See shortcut advance settings.
Answered 06/02/2011 by: itolutions
Orange Senior Belt

Please log in to comment
0
Hi Sanhivi,
Sounds like a really useful script... Post the code please?

Cheers
Answered 06/26/2011 by: rich0864
Orange Belt

Please log in to comment
Answer this question or Comment on this question for clarity