Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8325531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T00:28:09+00:00 2026-06-09T00:28:09+00:00

it should be this simple. this code looks good. it doesnt crash. so why

  • 0

it should be this simple. this code looks good. it doesnt crash. so why doesnt it do what it says to do? I cant change anything in the registry like this but all google searches say this is how it should be. any help is greatly appreciated.

    private void button2_Click(object sender, EventArgs e)
    {
        RegistryKey myKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\",true);
        myKey.SetValue("AutoAdminLogon", "1");   

    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T00:28:11+00:00Added an answer on June 9, 2026 at 12:28 am

    You may be dealing with Win7’s “shadow registry” issue wherein some registry changes are not made to the “actual” registry, but a “shadow” copy that protects the original in the event of malevolent access. Registry changes are redirected to a user-specific region of the registry, but are rendered to appear as though they are in HKLM (as in your example).

    Registry virtualization was introduced in Vista, I believe, but is at least a good candidate to explain your problem.

    http://msdn.microsoft.com/en-us/library/bb530198.aspx
    Failing this, you may be making changes against the Wow64 node of the registry. Check for your changes under HKLM\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Winlogon and see if your changes are being made there instead. On 64-bit versions of Windows, 32 bit code runs under the WOW subsystem, and registry calls from such apps are routed to the Wow6432 node in the registry – all unbeknownst to the calling 32-bit app.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This should be super simple. The first code block works, but when I wrap
Seems like this should be simple, but powershell is winning another battle with me.
This should be simple, but I'm getting confused. I have a parent/child tables -
This should be simple task but i am not been able to find the
This should be simple, but the answer is eluding me. If I've got a
This should seem simple enough, but can't figure it out. I was porting a
This should be simple, but I am still lost. There is a very similar
Hey guys this should be simple, I'm just not seeing it, I would like
This should be simple, yet I can't get it to work. I have a
This simple script should theoretically check the form for errors and then print any

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.