Kā jūs automātiski palaižat programmu ar administratora privilēģijām pēc lietotāja pieteikšanās sistēmā Windows?

Satura rādītājs:

Kā jūs automātiski palaižat programmu ar administratora privilēģijām pēc lietotāja pieteikšanās sistēmā Windows?
Kā jūs automātiski palaižat programmu ar administratora privilēģijām pēc lietotāja pieteikšanās sistēmā Windows?

Video: Kā jūs automātiski palaižat programmu ar administratora privilēģijām pēc lietotāja pieteikšanās sistēmā Windows?

Video: Kā jūs automātiski palaižat programmu ar administratora privilēģijām pēc lietotāja pieteikšanās sistēmā Windows?
Video: WRC 10: My FIRST impressions (Xbox Series X) - YouTube 2024, Aprīlis
Anonim
Dažreiz jūs vēlaties vai jums ir nepieciešama programma, lai automātiski palaistu paaugstinātas privilēģijas, tiklīdz jūs pierakstīsieties sistēmā Windows, bet kā jūs iestatāt kaut kā līdzīgu? Šodienas SuperUser Q & A ziņai ir daži noderīgi padomi neapmierinātam lasītājam.
Dažreiz jūs vēlaties vai jums ir nepieciešama programma, lai automātiski palaistu paaugstinātas privilēģijas, tiklīdz jūs pierakstīsieties sistēmā Windows, bet kā jūs iestatāt kaut kā līdzīgu? Šodienas SuperUser Q & A ziņai ir daži noderīgi padomi neapmierinātam lasītājam.

Šodienas jautājumu un atbilžu sesija mums priecājas par SuperUser - Stack Exchange dalību, kas ir kopienas vadīta Q & A tīmekļa vietņu grupa.

Ekrānuzņēmums pieklājīgs no Acid Pix (Flickr).

Jautājums

SuperUser lasītājs Frederiks Žans vēlas zināt, kā automātiski palaist programmu ar administratora privilēģijām pēc lietotāja pieteikšanās:

I am using Windows 8.1 (64-bit) and I would like to automatically run a program with administrator privileges upon user login.

I tried to make a shortcut of the program and ticked the run as administrator check box in the properties of the program shortcut itself, then tried placing the shortcut in the two locations shown below, but ticking the box just made it invalid.

  • C:UsersMyUserAppDataRoamingMicrosoftWindowsStart MenuProgramsStartup
  • C:ProgramDataMicrosoftWindowsStart MenuProgramsStartUp

Then I edited the program using Resource Hacker to modify its manifest so that administrator privileges were required to run this program. This also made shortcuts under start up directories invalid. After that, I tried to add the program to the following location as well, but it did not work, either.

HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun

How can I automatically run a program with administrator privileges on user login?

Kā jūs automātiski palaižat programmu ar administratora privilēģijām pēc lietotāja pieteikšanās?

Atbilde

SuperUser atbalstītājs Syberdoor ir atbilde mums:

The best way to do this (and the only simple way if you not only want this to run with administrator privileges, but also without UAC prompts) is by creating a scheduled task. With a scheduled task, you can specify which user you want to run it under and that it should run with the highest privileges.

This is probably what you really want because the check box button run as administrator in shortcut properties does trigger UAC prompts rather than really using an administrative user. If you also specify a trigger as on user logon, it should have the same effect as using the startup or run key.

Alternatively, you can use run as with the save credentials option to store the password of another user once and have it cached forever, but it does not work around UAC prompts as far as I know.

Vai kaut ko pievienot paskaidrojumam? Skatieties komentāros. Vēlaties lasīt citas atbildes no citiem tehnoloģiju savvy Stack Exchange lietotājiem? Šeit skatiet pilnu diskusiju pavedienu.

Ieteicams: