Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: launching UAC by command

30 May 2011   #1
jvuz

 
 
launching UAC by command

Hello,

I know you can launch UAC by typing uac in start - bottom field. But I was wondering if there is a way lo launch it via a dos prompt?

Jvuz


My System SpecsSystem Spec
.
30 May 2011   #2
Maguscreed

Microsoft Community Contributor Award Recipient

Windows 7 x64
 
 

disable UAC
Code:
C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD  HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v  EnableLUA /t REG_DWORD /d 0 /f

enable UAC
Code:
C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD  HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v  EnableLUA /t REG_DWORD /d 1 /f
Those are the only two UAC commands I know of from dos, and they are quite long winded. As you are actually invoking a single line registry edit and not a direct command to UAC.
I think it's blocked from DOS access for obvious security reasons. A simple 16 bit virus would easily be able to manipulate it if it were easily invoked directly from dos.
My System SpecsSystem Spec
30 May 2011   #3
jvuz

 
 

Maguscreed,

I'm aware of those commands. but my goal is not to have it changed by the registry, I just want to launch the same windows as when you do the following: start- type in the box at the bottom: uac. The actual change I want to do myself.

jvuz
My System SpecsSystem Spec
.

30 May 2011   #4
Maguscreed

Microsoft Community Contributor Award Recipient

Windows 7 x64
 
 

As I said I think that capacity is intentionally blocked.
You might be able to trigger it via command line using a task though.
My System SpecsSystem Spec
30 May 2011   #5
jvuz

 
 

But how come I launch that window through start -run?

jvuz
My System SpecsSystem Spec
30 May 2011   #6
Maguscreed

Microsoft Community Contributor Award Recipient

Windows 7 x64
 
 

it's a different thing entirely, what's happening there is typing UAC is making the search engine within windows track down the cpl from control panel. UAC is not actually a command, it's a search parameter.
My System SpecsSystem Spec
30 May 2011   #7
jvuz

 
 

So, the trick is to find out which command it's using to launch the control panel item.

jvuz
My System SpecsSystem Spec
30 May 2011   #8
Maguscreed

Microsoft Community Contributor Award Recipient

Windows 7 x64
 
 

yes, there has to be a .cpl related to it but I don't know what it is off the top of my head.
Though the first couple of paragraphs here, kind of reiterate what I've been trying to say.
User Account Control - Wikipedia, the free encyclopedia

To be followed by
http://en.wikipedia.org/wiki/User_In...lege_Isolation
My System SpecsSystem Spec
30 May 2011   #9
jvuz

 
 

Yes,

found it!

User Account Control Settings Shortcut - Create

UserAccountControlSettings.exe

thanks for helping me out here.

jvuz
My System SpecsSystem Spec
30 May 2011   #10
Maguscreed

Microsoft Community Contributor Award Recipient

Windows 7 x64
 
 

oh dammit you just wanted to open the window the whole time?
For some reason I had it in my head you wanted to adjust it from command.

lol yeah sorry had I properly understood you this would have happened a lot quicker.
suffering insomnia here.
My System SpecsSystem Spec
Reply

 launching UAC by command




Thread Tools




Similar help and support threads
Thread Forum
Command Prompt command <ipconfig> not working
when I open up my command prompt and type 'ipconfig' without the ' and press enter it returns the line: 'ipconfig' is nto recognized as an internal or external command, operable program, or batch file I am trying to find out the information I need in order to set up a static IP Address for port...
Network & Sharing
My Windows 7 64bit Home Premium does not have a COMMAND or COM command
When I am told to go to START/SEARCH and type in COMMAND, so I can RUN as Admin, it finds neither COM.exe or COMMAND.exe so I can "Run as Admin" in the DOS windows. It use to. I do have a RUN command that will bring up the DOS window but when executing some commands like CHKDSK it tells me I...
General Discussion
BSOD launching 3ds Max
First BSOD came when not running 3ds Max software. BSOD randomly occurred for a few days at start up. Decided to reinstall OS. Not much software is on the install. Seems to crash now when starting 3ds Max. Ran memtest86 on 24gb of ram with no issues. Just in case I decided to take a few 4...
BSOD Help and Support
No REG Command in "Open elevated command window here" DOS Box
I have used the @="cmd.exe /s /k pushd \"%V\"" type of Registry mod to obtain a context menu "Open elevated command window here" menu item, such as in the "Open elevated command window here" thread ( https://www.sevenforums.com/general-discussion/75069-open-elevated-command-window-here.html ). ...
General Discussion
Launching windows 7 dvd?
So i'm having a problem with my mothers Gateway, i unplugged it to plug my aunts new computer in and install quick books intuit software and when i plugged the gateway back in it brings the main "Gateway logo" up and that's it nothing else wont let me boot to the boot menu or bios or a CD or a USB...
Installation & Setup
apps not launching
Having problems with Photoshop Elements 8, iTunes, and Acronis backup software. They all (at times) refuse to launch. I keep trying and sooner or later they do launch. I have shortcut icons for them and all indicate the proper location on my C-drive. Anyone else having these 'quirks'. Running...
Software


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 18:41.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App