Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to turn off UAC using c#?

How to turn off UAC using c#?

Scheduled Pinned Locked Moved C#
questioncsharptutorial
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lovnin
    wrote on last edited by
    #1

    I want to turn off vista UAC(User Account Control) using c#. How can i do that? Thanks a lot.

    C D P 3 Replies Last reply
    0
    • L lovnin

      I want to turn off vista UAC(User Account Control) using c#. How can i do that? Thanks a lot.

      C Offline
      C Offline
      c2423
      wrote on last edited by
      #2

      Not that I can say for sure, but I would imagine that its close to impossible - the point of UAC is to stop programs doing things they shouldn't. If C# could turn it off easily I'd be very worried about UACs value as a security measure... Chris

      1 Reply Last reply
      0
      • L lovnin

        I want to turn off vista UAC(User Account Control) using c#. How can i do that? Thanks a lot.

        D Offline
        D Offline
        DaveyM69
        wrote on last edited by
        #3

        You probably shouldn't, but, all the UAC stuff is saved in the registry. You can alter those keys (you'll need to invoke UAC via app.mainifest first to be able to access them) from C#. Google for Registry UAC Vista and you should be able to find out which keys they are.

        Dave
        BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
        Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)

        1 Reply Last reply
        0
        • L lovnin

          I want to turn off vista UAC(User Account Control) using c#. How can i do that? Thanks a lot.

          P Offline
          P Offline
          Paul Conrad
          wrote on last edited by
          #4

          Not sure if from a security standpoint that this is a good idea. Any reason why you must do this?

          "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups