How to disable Admin Aproval mode, Programatically- to stop UAC Prompts

anantwakode

New Member
Hi,

How to disable Admin Aproval mode, Programatically- to stop UAC Prompts.
i.e asking the permission while elevating to admin privileges. I need to disable this programatically. another way which is using secpol.msc and mannually disable Admin Aproval Mode.

Thanks with Regards,
Anant
 

My Computer

Hi,

How to disable Admin Aproval mode, Programatically- to stop UAC Prompts.
i.e asking the permission while elevating to admin privileges. I need to disable this programatically. another way which is using secpol.msc and mannually disable Admin Aproval Mode.

Thanks with Regards,
Anant

you can simply do it by going to Start menu and click on the user icon on top of the menu.

Click on Turn off user account control on or off.

Select that click continue in UAC and remove the tick in the next window and click ok and reboot.
 

My Computer

System One

  • Manufacturer/Model
    HTPC/Desktop PC/Gateway LT2104u
    CPU
    Intel Pentium 4 2.8Ghz with HT/3.0Ghz with HT/Atom N450
    Motherboard
    GIGABYTE GA-81915ME-C/Intel D865GBF/Acer LT21
    Memory
    2x1GB DDR 400Mhz/512x2GB DDR 400Mhz/1GB DDR2-800Mhz
    Graphics Card(s)
    ECS 9800GT 512 DDR3/ Sapphire HD3650 AGP 8x 512MB/Intel 3150
    Sound Card
    Turtle Beach RIVERIA 5.1 SPDIF Out/SoundMAX AD1985/Realtek H
    Monitor(s) Displays
    SONY BRAVIA KLV-32V300A V-Series/ KLV-19T400A/ Built-in
    Screen Resolution
    1920x1080/1980x1080/1024x600
    Hard Drives
    MAXTOR 40GB
    WD ESSENTIAL EDITION 1TB USB

    Hitachi HDT721010SLA360 1TB SATA 150/ 250GB Toshiba
    PSU
    OCZ Fatal1ty 550W/
    Case
    Lian-Li v351, Lancool K-62 DragonLord
    Keyboard
    Logitech Combo
    Mouse
    Logitech Combo
    Internet Speed
    512 Kbps
Hello,

You cannot easily do it programmatically (ie there is no API because that would defeat the point of it)

Here are some ways of doing this: Ways to Disable or Turn Off User Account (Access) Control (UAC) in Windows Vista Tip and Trick

Probably the best way would be to utilise an installers elevation or place a requestedElevationLevel tag in the program's Manifest file, though this is very much frowned upon in Vista and 7. I don't know why you want to completely disable it like this, far better to just get permission for that one program execution. Also, running those methods in the link above will require UAC consent, for example reg.exe will not run without UAC consent and there is nothing you can do about that. Basically, don't try to disable the UAC, let it stay there and just request elevation permission.

Richard
 

My Computer

System One

  • Manufacturer/Model
    Dell XPS 420
    CPU
    Intel Core 2 Quad Q9300 2.50GHz
    Motherboard
    Stock Dell 0TP406
    Memory
    4 gb (DDR2 800) 400MHz
    Graphics Card(s)
    ATI Radeon HD 3870 (512 MBytes)
    Sound Card
    Onboard
    Monitor(s) Displays
    1 x Dell 2007FP and 1 x (old) Sonic flat screen
    Screen Resolution
    1600 x 1200 and 1280 x 1204
    Hard Drives
    1 x 640Gb (SATA 300)
    Western Digital: WDC WD6400AAKS-75A7B0

    1 x 1Tb (SATA 600)
    Western Digital: Caviar Black, SATA 6GB/S, 64Mb cache, 8ms
    Western Digital: WDC WD1002FAEX-00Z3A0 ATA Device
    PSU
    Stock PSU - 375W
    Case
    Dell XPS 420
    Cooling
    Stock Fan
    Keyboard
    Dell Bluetooth
    Mouse
    Advent Optical ADE-WG01 (colour change light up)
    Internet Speed
    120 kb/s
    Other Info
    ASUS USB 3.0 5Gbps/SATA 6Gbps - PCI-Express Combo Controller Card (U3S6)
Command prompt: 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

turn it into a batch file

but with that, the uac might ask you to let the batchfile open.

Lol, its so complicated to turn it off through a program, which is THE exact reason why microsoft made UAC (viruses cant disable uac that easily either).

But there is a way.
 

My Computer

System One

  • Manufacturer/Model
    Hp pavillion a6110n
    CPU
    amd athlon 64 x2 live! 4400+
    Memory
    4 gigs 3.3 useable
    Graphics Card(s)
    Finally! SAPPHIRE 100283L Radeon HD 5770 (Juniper XT) 1GB 12
    Monitor(s) Displays
    generic pnp monitor
    Screen Resolution
    1280x1024
    Hard Drives
    7.2k rpm
    1 linux ubuntu partition
    1 vista partition
    1recovery partition
    1 windows 7 partition
    1linux swap partition
    PSU
    500W, antc earthwatts EA500
    Case
    normal black case
    Cooling
    fans
    Keyboard
    saitek cyborg gaming keyboard
    Mouse
    logitech mouse (small to fit hand perfectly)
    Internet Speed
    dsl
    Other Info
    2.3 ghz amd
Hello,

That method is outlined in the link I sent, reg.exe will require UAC acceptance, and doing this through a program (mainly a C language) is actually very easy. Go to a SubKey and SetValue giving Name (EnableLUA), Type (DWORD) and Value (0). However, any program writing into HKLM instantly requires admin privileges (which writing into HKCU does not) and if it does not get these admin privileges and there is no proper exception handling, it will crash (stopped working) with a System.Security.SecurityException.

Richard
 

My Computer

System One

  • Manufacturer/Model
    Dell XPS 420
    CPU
    Intel Core 2 Quad Q9300 2.50GHz
    Motherboard
    Stock Dell 0TP406
    Memory
    4 gb (DDR2 800) 400MHz
    Graphics Card(s)
    ATI Radeon HD 3870 (512 MBytes)
    Sound Card
    Onboard
    Monitor(s) Displays
    1 x Dell 2007FP and 1 x (old) Sonic flat screen
    Screen Resolution
    1600 x 1200 and 1280 x 1204
    Hard Drives
    1 x 640Gb (SATA 300)
    Western Digital: WDC WD6400AAKS-75A7B0

    1 x 1Tb (SATA 600)
    Western Digital: Caviar Black, SATA 6GB/S, 64Mb cache, 8ms
    Western Digital: WDC WD1002FAEX-00Z3A0 ATA Device
    PSU
    Stock PSU - 375W
    Case
    Dell XPS 420
    Cooling
    Stock Fan
    Keyboard
    Dell Bluetooth
    Mouse
    Advent Optical ADE-WG01 (colour change light up)
    Internet Speed
    120 kb/s
    Other Info
    ASUS USB 3.0 5Gbps/SATA 6Gbps - PCI-Express Combo Controller Card (U3S6)
Thanks Guy's !

I really appreciate your help and suggestions. thanks for your efforts.

I will go through the suggested way's. and let you know if there is any diffculty with these.

Thanks again
Anant Wakode
 

My Computer

Back
Top