How to Control UAC Using Application Properties
If the application does not run automatically with administrator credentials, you can rightclick the application and then click Run As Administrator. If you deploy an application to users, however, you should configure the application to prompt the user automatically if it does not run automatically with administrator credentials. To mark an application to always run with administrator credentials, follow these steps:
- Log on using administrator credentials but do not use the built-in Administrator account.
- Right-click the application and then click Properties.
- Click the Compatibility tab. If you want other users on the same computer to run the application with administrative privileges, click Change Settings For All Users.
- Under Privilege Level, select the Run This Program As An Administrator check box. Click OK. If the check box is not available, it means that the application is blocked from always running elevated, the application does not require administrator credentials to run, the application is part of the current version of Windows 7, or you are not logged on to the computer as an administrator.
You need to mark only applications that require administrator credentials but do not cause UAC to automatically prompt the user. You cannot set a privilege level for Windows features, such as the command prompt. Instead, you should always right-click them and then click Run As Administrator. Alternatively, you can create a new shortcut to the application. Then, view the properties of the shortcut, click the Shortcut tab, click the Advanced button, and then select the Run As Administrator check box.
In this tutorial:
- Windows 7 Client Protection
- Understanding the Risk of Malware
- User Account Control in Windows 7
- UAC for Standard Users
- UAC for Administrators
- UAC User Interface
- Secure Desktop
- How Windows Determines Whether an Application Needs Administrative Privileges
- How to Control UAC Using Application Properties
- How UAC Examines the Application Manifest
- UAC Heuristics
- UAC Virtualization
- UAC and Startup Programs
- Compatibility Problems with UAC
- How to Configure UAC
- Group Policy Settings
- Control Panel
- Msconfig.exe
- How to Configure Auditing for Privilege Elevation
- Other UAC Event Logs
- Best Practices for Using UAC
- AppLocker
- AppLocker Rule Types
- Auditing AppLocker Rules
- DLL Rules
- Custom Error Messages
- Using AppLocker with Windows PowerShell
- Using Windows 7 Defender
- Understanding Windows Defender
- Automatic Scanning
- Real-Time Protection
- Windows Defender Alert Levels
- Understanding Microsoft SpyNet
- Configuring Windows Defender Group Policy
- Configuring Windows Defender on a Single Computer
- How to Determine Whether a Computer Is Infected with Spyware
- Best Practices for Using Windows Defender
- How to Troubleshoot Problems with Unwanted Software
- Network Access Protection
- Forefront