C
C
Cyril2017-07-12 13:52:03
cmd/bat
Cyril, 2017-07-12 13:52:03

How to execute logon script with administrator privileges?

There is a BAT file that contains the commands for installing the program using the Windows Installer (msiexec). There was a need to install the program on a large number of computers. I decided to do it using the Logon script.
When I restart the computer, I see that the program has not been installed. How to make the Logon script run as administrator? For example, local (which is on the user's machine). As far as I understand, Logon-script is launched only on behalf of a regular user.
If the Logon script is run as an admin, then the installer will also receive the same privileges. Help, please, to understand.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vadim Choporov, 2017-07-12
@tolstyiii

Good afternoon.
Run a script for the computer through the logon (Comp conf - Policies - Win Sett - Scripts - startup) - then the installation will go on behalf of the system account. One caveat - in the perimeters on the folder with the installer and the batch file, Domain Computers must be enabled for reading, otherwise there will be no access to the installer machine)

A
Alexander, 2017-07-12
@NeiroNx

Why don't you use the standard method? https://support.microsoft.com/en-us/help/816102/ho...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question