Windows 10: Change Registry-Key with Powershell

Discus and support Change Registry-Key with Powershell in Windows 10 Support to solve the problem; Hi Forum I have a Problem with changing Registry-Keys with PowerShell. I use the following entry: $path... Discussion in 'Windows 10 Support' started by emmapeel6490, Mar 10, 2019.

  1. Change Registry-Key with Powershell

    Hi Forum
    I have a Problem with changing Registry-Keys with PowerShell. I use the following entry:

    $path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\UserChosenExecuteHandlers \StorageOnArrival"
    Set-ItemProperty -Path $path -Name Default -Value "MSPromptEachTime"

    The entry works but it doesn't Change the registry key, it creates a new one.
    As a result the Windows Settings aren't changed because the (Standard) Key is still the "leader". I can't Change the this "(Standard)" key. I also tried to write it exactly as described but the I got the same result.
    Any idea?

    Thank you very much.

    emmapeel6490, Mar 10, 2019
  2. Roohi_Taj Win User

    PowerShell 1 Execution policy is bad in registry

    Hi SusanHout1,

    Thank you for writing to Microsoft Community Forums.

    Could you please help me with the below questions:

    • What is the make and model of the computer?
    • What is the version of Windows installed on your computer?
    • Have you logged into the computer with the admin account?
    • When do you get this error message?

    I have reviewed the information provided by you and I appreciate the time you have taken to resolve this issue, I realize how frustrating these things can be. We at Microsoft prioritize our customer’s satisfaction. Keeping that
    in mind, I will suggest you the steps which might take care of this issue.

    I would suggest you to run the scan on the computer using Windows defender. To do so, follow the Microsoft article on
    Help protect my PC with Windows Defender Offline.
    Once the scan is done, check if the issue is fixed or help us with the error message.

    To turn off controlled access on Windows 10, follow the steps mentioned in the article
    Allow a blocked app in Windows Security.

    To fix the
    PowerShell 1 ExecutionPolicy, I suggest you to follow these steps.

    Note: Serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry
    before you modify it. Then, you can restore the registry if a problem occurs. To backup and restore registry key, refer Microsoft article on How to back up and restore the registry in Windows.

    1. Press Windows andR
      key together on your Keyboard.
    2. Type Regedit and hit enter.
    3. Navigate to: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell
    4. In the right pane, right click on the empty area and select New > select DWORD (32-BIT VALUE).
    5. Type: ExecutionPolicy
    6. Set the string value ExecutionPolicy to one of the following values:
      Restricted, AllSigned, RemoteSigned, Unrestricted, Undefined.

    Change Registry-Key with Powershell 75b60ff9-d483-4190-8962-efd4e86269ba?upload=true.png

    If you would like me to provide additional advice, simply respond to this thread. I will get notified and I’ll reply to you as soon as I can.

    Hope it helps.

    Roohi Taj S

    Microsoft Community - Moderator
    Roohi_Taj, Mar 10, 2019
  3. asyntax Win User
    ATITool registry key


    During ATITool installation, the following registry key was added to my registry:


    After uninstalling the program, this key remained. I tried to delete it through the registry editor but it returned the following error:

    "Cannot delete {85b5ddd0-e090-4b15-bdf2-a443a3ca0b66}: Error while deleting key."

    I'm running Vista Home Premium 32-bit by the way. I also tried to change permissions for the key and deleting in safe mode, but neither of those worked either.

    Any ideas on how i can remove this key? Any help is appreciated, thanks.
    asyntax, Mar 10, 2019
  4. Frogger Win User

    Change Registry-Key with Powershell

    Modded Registry. Want Old Back....

    did you try this

    To restore the registry
    Open Registry Editor.
    Click Options, and then click Print to print these instructions. (If you are using the Help and Support Center, click Print above the topic area.) They will not be available after you shut down your computer in step 2.
    Click Start, and then click Shut Down.
    In the list, click Restart, and then click OK.
    When you see the message Please select the operating system to start, press F8.
    Use the arrow keys to highlight Last Known Good Configuration, and then press ENTER.
    NUM LOCK must be off before the arrow keys on the numeric keypad will function.

    Use the arrow keys to highlight an operating system, and then press ENTER.

    Incorrectly editing the registry may severely damage your system. Before making changes to the registry, you should back up any valued data on your computer.

    To open Registry Editor, click Start, click Run, type regedit, and then click OK.
    Choosing Last Known Good Configuration provides a way to recover from problems such as a newly added driver that may be incorrect for your hardware. It does not solve problems caused by corrupted or missing drivers or files.
    When you choose Last Known Good Configuration, Windows restores information in registry key HKLM\System\CurrentControlSet only. Any changes you have made in other registry keys remain.
    Frogger, Mar 10, 2019

Change Registry-Key with Powershell

  1. Change Registry-Key with Powershell - Similar Threads - Change Registry Key

  2. Change Registry-Key with Powershell

    in Windows 10 Performance & Maintenance
    Change Registry-Key with Powershell: Hi Forum I have a Problem with changing Registry-Keys with PowerShell. I use the following entry: $path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\UserChosenExecuteHandlers \StorageOnArrival" Set-ItemProperty -Path $path -Name Default -Value...
  3. Windows in restart loop after changing a registry key

    in Windows 10 BSOD Crashes and Debugging
    Windows in restart loop after changing a registry key: Hi, I was looking to change the display font for some applications in windows 10, I changed the key for MS Shell dlg2 in HKLM/Software/Microsoft/Windows NT/CurrentVersion/FontSubstitues/ from "Tahoma" to "Segoe UI" after restart I, windows wont start. the boot dots...
  4. PowerShell 1 Execution policy is bad in registry

    in Windows 10 BSOD Crashes and Debugging
    PowerShell 1 Execution policy is bad in registry: it was detected as bad by dell who used Norton power eraser to locate the issues in my computer, Norton says they can not fix it, that Microsoft needs to fix it , I came to micorosoft to get help a tech, tried to reinstall Microsoft windows, after the computer restarted a...
  5. Corrupted PowerShell registry file in Windows 10

    in AntiVirus, Firewalls and System Security
    Corrupted PowerShell registry file in Windows 10: My anti-virus program finds a corrupted PowerShell registry file and fixes it. But when I turn my computer off and back on it is corrupted again. Does anyone have a fix for this, or do I have to re-load the operating system?...
  6. Remapping key FROM REGISTRY

    in Windows 10 Customization
    Remapping key FROM REGISTRY: My 'delete' key doesn't work anymore. I'd like to remap it to the 'insert' key. I've tried EVERY. SINGLE. Third party program. I've tried Microsoft's program for remapping. None have worked. I want to go straight through the registry so I can do ctrl-alt-del. I haven't...
  7. Registry Key Customisation

    in Windows 10 Customization
    Registry Key Customisation: Hi Guys, 1. Is there any way to find the registry key for the default icon of an application in Windows 10? Dell has installed a FreeFall Data Protection application in my machine, which appears in the control panel and I'd like to change the icon for it. However, I do not...
  8. Administrator can change owner of registry key but not permissions...

    in User Accounts and Family Safety
    Administrator can change owner of registry key but not permissions...: I'm running 64-bit Windows Pro on an Asus P5Q-EM MB with an Intel E8600 processor with 8 GB of PC2-6400 Ram. I've had a couple of unexpected shutdowns and restarts lately. I've got several different error types in my event log. The only one showing to be "critical" is the...
  9. How to change registry keys to increase USB power to 500mA?

    in Windows 10 Drivers and Hardware
    How to change registry keys to increase USB power to 500mA?: I ran into this problem while on Win7 & found a fix (YouTube - ‪Apple Keyboard Hack - Fully-powered USB ports on a PC!‬‏) . Unfortunately, the YouTube video has been removed. I use an Apple keyboard that has 2-USB ports, one on each side of the keyboard. The power...
  10. Powershell GUI Change

    in Windows 10 Support
    Powershell GUI Change: Hi everyone! I recently notice that my powershell change his skin and i don't why. I try to run sfc command but nothing has been found. try to uncheck powershell 2.0 from turn windows features off or on but no luck. The powershell work perfect on cmd terminal but not for...