WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: jimklein on September 19, 2014, 11:15:54 AM

Title: Running as the same user but with elevated privledges
Post by: jimklein on September 19, 2014, 11:15:54 AM
Running as the same user but with elevated privledges

1. Does Windows itself support this ?
2. How do I do this in Winbatch ?

I want to install a program while logged on as a standard user but with domain admin privledges.
I've used "runwithlogon" successfully but that would install as a different user and not the current user with admin/elevated privledges.

Is there a Winbatch command that would allow this ?

Thanks,
Jim
Title: Re: Running as the same user but with elevated privledges
Post by: td on September 21, 2014, 09:25:25 AM
By definition a standard user account cannot be given administrative privileges because if it were granted those privileges, it would no longer be 'standard.'  So you would have to make a standard user a member of the Administrators group or the equivalent before it could run with administrator privileges.

Generally, a software installation program that requires administrator privileges and also needs to modify standard user account setting can do so while running with full administrator privileges.  There are several ways for installation programs to accomplish this.