1) Create a link to you Program on your Desktop in Windows 2) Right click and go to properties and set to 'Run as Administrator' 3) Open Finder on your Mac and browse to your Boot Camp partition to your Desktop where you created the link I browsed to - C My Boot Camp - Users - username -Desktop. Right-click the Battle.net desktop application icon and select Properties. Select the Compatibility tab. Click Change settings for all users. Under Privilege Level, check Run this program as administrator. Note: If you’d like to set program permissions temporarily, select Run as Administrator from the Application's context menu. Part 2: If you want to start as admin on logon without the UAC elevation prompt, use the Task Scheduler. The important options you need: 'Change User' to your own. Select 'Run only when user is logged on'. Check 'Run with highest privileges'. Uncheck everything on the Settings tab except maybe 'Allow task to be run on demand' (to allow you to. Use the command below but replace the example name with the actual name of the script that you want to give permission to run to. Chmod +x testscript.sh. After granting the script permission to run, use the command below to run it. Remember to change the name of the script before you run the command. Sh testscript.sh.
Learning has never been so easy!
This How-to will show you the proper method to run the MMC with an elevated administrator account, prompting for a password every time.
Edit: Just to make this clear; this creates a shortcut so you only have to enter your admin password. You do not have to right-click an .exe every time and put in your credentials and password.
4 Steps totalStep 1: Open MMC manually with admin account
At the cmd line, open MMC with elevated privileges using the RunAs cmd;
C:WindowsSystem32runas.exe /user:domainusername 'mmc'
Use your own admin domainusername. You will be prompted for your password.
Step 2: Load snap-ins to MMC
Go to File>Add/Remove Snap-in..or hit CRTL+M.
Add all that you need to fill this 'toolbox'.
Once finished, got to File>Options..and rename the Console to something more descriptive.
Then change the Console mode to User mode - full access. Hit OK, then go to File>Exit to save this as a .msc file.
Save/move this .msc file to a known location on your C: drive. Something like C:toolbox.
Step 3: Create shortcut to .msc file
On your desktop (or wherever you will launch this from), create a new shortcut and point to any file. It doesn't matter which one as we will be changing this shortly.
Open the properties of the shortcut, and change the Target to use the RunAs cmd like this;
C:WindowsSystem32runas.exe /user:domainusername 'mmc C:path_to_Admin_ToolsAdmin_Tools.msc'
Change the Start in field to wherever the .msc directory is;
C:path_to_Admin_Tools
You can change the icon here as well by clicking Change Icon..and selecting the %SystemRoot%System32mmc.exe file to get the MMC icon.
Step 4: Launch MMC with admin credentials
Double-clicking the shortcut will bring up a cmdline prompt, asking for your admin password. Enter it and you are running the MMC with the .msc file loaded, as an admin.
To make any changes to the .msc file, find it and right-click the file, selecting Author.
All being well, you should have a new shortcut which will load your MMC in the proper context.
Published: Nov 09, 2017 · Last Updated: Nov 14, 2017
14 CommentsHow To Run An App As Administrator Mac
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |