launching UAC by command

Page 1 of 2 12 LastLast

  1. Posts : 38
    XP
       #1

    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 Computer


  2. Posts : 6,668
    Windows 7 x64
       #2

    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 Computer


  3. Posts : 38
    XP
    Thread Starter
       #3

    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 Computer


  4. Posts : 6,668
    Windows 7 x64
       #4

    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 Computer


  5. Posts : 38
    XP
    Thread Starter
       #5

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

    jvuz
      My Computer


  6. Posts : 6,668
    Windows 7 x64
       #6

    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 Computer


  7. Posts : 38
    XP
    Thread Starter
       #7

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

    jvuz
      My Computer


  8. Posts : 6,668
    Windows 7 x64
       #8

    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 Computer


  9. Posts : 38
    XP
    Thread Starter
       #9

    Yes,

    found it!

    User Account Control Settings Shortcut - Create

    UserAccountControlSettings.exe

    thanks for helping me out here.

    jvuz
    Last edited by Brink; 30 May 2011 at 12:30. Reason: added link
      My Computer


  10. Posts : 6,668
    Windows 7 x64
       #10

    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 Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About 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 09:32.
Find Us