/build/static/layout/Breadcrumb_cap_w.png

Need vbscript to run in user mode

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

Answers (6)

Posted by: anonymous_9363 13 years ago
Red Belt
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.
Posted by: mazessj 13 years ago
Blue Belt
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.
Posted by: sanhivi 13 years ago
Third Degree Green Belt
0
Thank you for your replies...

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


Regards,
Sanhivi
Posted by: janoon 12 years ago
Senior Yellow Belt
0
Would you mind sharing that script please?
Posted by: itolutions 12 years ago
Purple Belt
0
if you want to request administator rights from user you can set "RunAsAdmin flag for shortcut. See shortcut advance settings.
Posted by: rich0864 12 years ago
Orange Belt
0
Hi Sanhivi,
Sounds like a really useful script... Post the code please?

Cheers
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ