MSFN Forums: FAQ: What is the UAC? - Part2 - MSFN Forums

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

FAQ: What is the UAC? - Part2 How do I disable UAC Prompt for an application Rate Topic: -----

#1 User is offline   MagicAndre1981 

  • after Windows 7 GA still Vista lover :)
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,702
  • Joined: 28-August 05
  • Gender:Male
  • OS:Vista Ultimate x86
  • Location:Germany
  • Country: Country Flag

Post icon  Posted 28 June 2009 - 11:59 AM

Hi, this is my second part of the series "What is the UAC".

People always disable the UAC because there is no way to disable the UAC for a specific program. is this really true?
No, it is not true. There is an build in way to do this!

Q: How can I do this?
A: Use the taskscheduler.

1. Start the computer management MMC snap-in

Attached File  00_Start_ComputerManagement.png (23.39K)
Number of downloads: 37

2. This step is optional: go to Task scheduler Library and make a right click and click "New Folder" (see picture 2)
and type in "myTasks" to create a new folder (see picute 3)

Attached File  01_TaskScheduler_NewFolder.png (29.99K)
Number of downloads: 24
Attached File  02_TaskScheduler_NewFolder_1.png (23.46K)
Number of downloads: 12

3. Make a right click on the folder myTasks and select "Create Task"

Attached File  03_TaskScheduler_CreateTask.png (16.15K)
Number of downloads: 8

and type in a name: I always name them "autoElevatePROGRAMNAME". Here for my expample "autoElevateProcessExplorer" and mark the checkbox "Run with highest priviligies".

Attached File  04_TaskScheduler_CreateTask_Config.png (24.53K)
Number of downloads: 25

4. go to the tab "Actions" and select the program you want to execute

Attached File  05_TaskScheduler_Action.png (24.38K)
Number of downloads: 25

and click ok, to create the Task.

5. create a new shortcut on your desktop and type in the following command:

C:\Windows\System32\schtasks.exe /RUN /TN "myTasks\autoElevateProcessExplorer"


Q: Do I have to do this for all programs I want to start?
A: Yes

Q: How Do I backup my tasks?
A: make a right click on the task and select "Export" and save it into a XML file and after a reinstall of your Windows
Vista / 7 select "Import Task" and import the XML file again.
Q: How do I start applications with administrator rights at startup?
A: You can copy the shortcut into the startup folder ( C:\Users\USERNAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup ) or run the task with a trigger (in the task creation window to to "triggers" and select "create Trigger" and choose "Begin the task" - "At logon". If you create such an trigger you don't have to put the shortcut into the startup folder.

So I hope I was able to show you how to start applications with elevated rights, without disabling the UAC and without being "annoyed" to accept the UAC prompt. I'm using this technique for 3 years (starting with Vista Beta2 Milestone Builds) now.

Ad Bot #1 User is online   Sponsor Icon

  • Advert Bot
  • Group: Ad Bots
  • Posts: 0
  • Joined: --

Warn Status

Warning level: 0%

0
  • +
  • -

#2 User is offline   Tedology 

  • Group: Members
  • Posts: 2
  • Joined: 20-December 09

Posted 20 December 2009 - 11:36 PM

I appreciate your efforts to help us out. :)

I've tried your instructions, and yet still when I double-click the shortcut, the UAC prompt still appears. I have even tried right-clicking the shortcut and choose "Run as Administrator" and it still is prompting. :(

#3 User is offline   MagicAndre1981 

  • after Windows 7 GA still Vista lover :)
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,702
  • Joined: 28-August 05
  • Gender:Male
  • OS:Vista Ultimate x86
  • Location:Germany
  • Country: Country Flag

Posted 21 December 2009 - 04:53 AM

Hi,

don't choose "Run as Administrator"! Have you selected the checkbox "Run with highest priviligies"?

André

#4 User is offline   Tedology 

  • Group: Members
  • Posts: 2
  • Joined: 20-December 09

Posted 21 December 2009 - 09:09 AM

View PostMagicAndre1981, on Dec 21 2009, 02:53 AM, said:

Hi,

don't choose "Run as Administrator"! Have you selected the checkbox "Run with highest priviligies"?

André


Aha! I must not have checked that box. Thanks so much, Andre! (sorry, don't know how to make the accent over the 'e' on a PC) :)

#5 User is offline   MagicAndre1981 

  • after Windows 7 GA still Vista lover :)
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,702
  • Joined: 28-August 05
  • Gender:Male
  • OS:Vista Ultimate x86
  • Location:Germany
  • Country: Country Flag

Posted 22 December 2009 - 04:42 PM

Ok, great that it works now :)

#6 User is offline   Bonusforum.se 

  • Group: Members
  • Posts: 1
  • Joined: 28-December 09

Posted 29 December 2009 - 10:26 AM

View PostMagicAndre1981, on Jun 28 2009, 12:59 PM, said:

Hi, this is my second part of the series "What is the UAC".

People always disable the UAC because there is no way to disable the UAC for a specific program. is this really true?
No, it is not true. There is an build in way to do this!

Q: How can I do this?
A: Use the taskscheduler.

1. Start the computer management MMC snap-in

Attachment 00_Start...nagement.png

2. This step is optional: go to Task scheduler Library and make a right click and click "New Folder" (see picture 2)
and type in "myTasks" to create a new folder (see picute 3)

Attachment 01_TaskS...ewFolder.png
Attachment 02_TaskS...Folder_1.png

3. Make a right click on the folder myTasks and select "Create Task"

Attachment 03_TaskS...eateTask.png

and type in a name: I always name them "autoElevatePROGRAMNAME". Here for my expample "autoElevateProcessExplorer" and mark the checkbox "Run with highest priviligies".

Attachment 04_TaskS...k_Config.png

4. go to the tab "Actions" and select the program you want to execute

Attachment 05_TaskS...r_Action.png

and click ok, to create the Task.

5. create a new shortcut on your desktop and type in the following command:

C:\Windows\System32\schtasks.exe /RUN /TN "myTasks\autoElevateProcessExplorer"


Q: Do I have to do this for all programs I want to start?
A: Yes

Q: How Do I backup my tasks?
A: make a right click on the task and select "Export" and save it into a XML file and after a reinstall of your Windows
Vista / 7 select "Import Task" and import the XML file again.
Q: How do I start applications with administrator rights at startup?
A: You can copy the shortcut into the startup folder ( C:\Users\USERNAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup ) or run the task with a trigger (in the task creation window to to "triggers" and select "create Trigger" and choose "Begin the task" - "At logon". If you create such an trigger you don't have to put the shortcut into the startup folder.

So I hope I was able to show you how to start applications with elevated rights, without disabling the UAC and without being "annoyed" to accept the UAC prompt. I'm using this technique for 3 years (starting with Vista Beta2 Milestone Builds) now.


This doesnt work for me (or shall I restart windows or something?)
I have added the tasks and created the shortcut and run it but still it still says "Do you want to open this program" :S?

Or do you mean that we always should use this shortcut when we want to open (not the orginal exe-file?)

#7 User is offline   MagicAndre1981 

  • after Windows 7 GA still Vista lover :)
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,702
  • Joined: 28-August 05
  • Gender:Male
  • OS:Vista Ultimate x86
  • Location:Germany
  • Country: Country Flag

Posted 29 December 2009 - 06:00 PM

yes, always run the shortcut!

#8 User is offline   CompletelyLost 

  • Group: Members
  • Posts: 1
  • Joined: 24-February 10
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 25 February 2010 - 06:11 AM

I followed your instructions and applies it to Windows 7, Everything worked out fine. And then, when I tried to make a short cut, the command line was incorrect. With a little inventigation, I discovered window 7 uses "tasksch" instead "schtask" as used in step 5. However, changing that part of the line didn't work either. So, a little more investigation, i found this "%Windir% preceeding the command for task scheduler. Can you look into Step 5 for Windows 7? I like to use this for my other programs.

#9 User is offline   MagicAndre1981 

  • after Windows 7 GA still Vista lover :)
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,702
  • Joined: 28-August 05
  • Gender:Male
  • OS:Vista Ultimate x86
  • Location:Germany
  • Country: Country Flag

Posted 25 February 2010 - 08:15 AM

Hi,

my guide works under Windows 7! Windows 7 still uses the schtask.exe and nothing else.

Post your steps and post which program you're trying to start and which error did you see!

André

#10 User is offline   drosalion 

  • Group: Members
  • Posts: 1
  • Joined: 13-March 10
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 13 March 2010 - 01:06 AM

Thanks alot for this, been searching the web for a solution to this frustrating problem - yours worked perfectly, thanks.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


2 User(s) are reading this topic
1 members, 1 guests, 0 anonymous users

  1. csh22cr