• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1215
  • Last Modified:

Run VBS or ObjShell.run as a different user

I have a script that installs a program with some options.  I then have the VBS run in AD as a logon script.

The issue I am having is that it runs as the current user, who is not a local admin, thus cannot install a program.

Is there a way to run that as a different user?
0
BEI_INC
Asked:
BEI_INC
  • 2
  • 2
1 Solution
 
pritamduttCommented:
You could use runas but that would not be safe as it would require you to embed privileged logon credentials.

It is therefore suggested to use Group Policy to deploy application which require elevated privileges,

Following link provides information on the same.

http://support.microsoft.com/kb/816102
0
 
BEI_INCAuthor Commented:
It's not an MSI, it's an EXE.

Do you meanObjShell.runas?
0
 
pritamduttCommented:
hi RUNAS is a windows command that permits a user to run an application using alternate privileges

following link provides reference on runas command

http://technet.microsoft.com/en-us/library/cc771525(WS.10).aspx

As regards to deploying non-MSI applications there is alternate method
visit the following link for information on how to publish non-MSI files using Group Policy.

http://support.microsoft.com/kb/231747/en-us

Hope this helps
0
 
BEI_INCAuthor Commented:
Thanks!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now