Windows 10: Not able to modify Local Group Policy with powershell commands

Discus and support Not able to modify Local Group Policy with powershell commands in Windows 10 Gaming to solve the problem; Hi,I'm trying to modify Local Group Policy on my windows machine using PowerShell commands but not able to do so in both windows 10 and windows server... Discussion in 'Windows 10 Gaming' started by Iman_Y, Aug 31, 2024.

  1. Iman_Y Win User

    Not able to modify Local Group Policy with powershell commands


    Hi,I'm trying to modify Local Group Policy on my windows machine using PowerShell commands but not able to do so in both windows 10 and windows server 2022.As an example, I set the automatic update as below in gpedit: Running PowerShell as Administrator, I am able to view the changes made in gpedit being reflected in local registryNot able to modify Local Group Policy with powershell commands :pS C:\Windows\system32> $registryPath = "HKLM:\Software\Policies\Microsoft\Windows\WindowsUpdate\AU"PS C:\Windows\system32> Get-ItemProperty -Path $registryPath -Name "AUOptions" , "ScheduledInstallDay", "ScheduledInstallTime" AUOptions : 3 Schedu

    :)
     
    Iman_Y, Aug 31, 2024
    #1

  2. Read local group policy using PowerShell commands

    I am unable to get Gpresult of local group policy using powershell I need help on this to get local the local gpo's on windows sever 2022.
     
    Bala Shankar Yarramsetti, Aug 31, 2024
    #2
  3. Windows Defender Group Policy Disabeled

    Hi,

    Thank you for contacting Microsoft community.

    As you have stated you want to disable the group policy so that you can run windows defender on the computer.

    I would like to suggest few troubleshooting steps:

    Method 1: Disable group policy from gpedit.msc


    • Press Windows key + R.

    • Type gpedit.msc and click Ok.(it will open Local Group policy editor)

    • Go to Computer Configuration/Administrative Templates/Windows Components/Windows Defender.

    • In the right pane of
      Windows Defender
      in Local Group Policy Editor, double click/tap on the
      Turn off Windows Defender
      policy to edit it.

    • Select (dot) Not Configured or
      Disabled, click/tap on OK,

    • When finished, you can close the Local Group Policy Editor if you like.
    If the issue still persist you can follow method 2.

    Method 2: Disable group policy from registry.

    Important: This section, method, or task contains steps that tell you how to modify the registry. However, 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. For more information about how to back up and restore the registry, click the following article number to view the
    article in the Microsoft Knowledge Base:

    How to back up and restore the registry in Windows

    How to back up and restore the registry in Windows - Microsoft Support


    • Press Window Key +R.

    • Type regedit and click. (it will open registry)

    • Go to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender

    • Right Click on Window Defender to create a new Dword.

    • Click on New and Select Dword.

    • Type DisableAntiSpyware.

    • Right click on DisableAntiSpyware and click on modify.

    • Set the value to 0 instead of 1.

    Hope this information is helpful. If the issue still persists, you can write back to us and we will be glad to assist you further.
     
    Morris Subba, Aug 31, 2024
    #3
  4. LamKen1 Win User

    Not able to modify Local Group Policy with powershell commands

    How to edit default existing Local Group Policy Editor with Powershell, instead of using the editor?

    Thanks for correcting the links. I want to confirm if it is possible to edit "Local Group Policy" with PowerShell, because I'm trying to only change the group policy on my own computer.

    Edit: Ok, I can. local group policy powershell - Google Suche
     
    LamKen1, Aug 31, 2024
    #4
Thema:

Not able to modify Local Group Policy with powershell commands

Loading...
  1. Not able to modify Local Group Policy with powershell commands - Similar Threads - able modify Local

  2. Not able to modify Local Group Policy with powershell commands

    in Windows 10 Software and Apps
    Not able to modify Local Group Policy with powershell commands: Hi,I'm trying to modify Local Group Policy on my windows machine using PowerShell commands but not able to do so in both windows 10 and windows server 2022.As an example, I set the automatic update as below in gpedit: Running PowerShell as Administrator, I am able to view the...
  3. Not able to modify Local Group Policy with powershell commands

    in Windows 10 Customization
    Not able to modify Local Group Policy with powershell commands: Hi,I'm trying to modify Local Group Policy on my windows machine using PowerShell commands but not able to do so in both windows 10 and windows server 2022.As an example, I set the automatic update as below in gpedit: Running PowerShell as Administrator, I am able to view the...
  4. Read local group policy using PowerShell commands

    in Windows 10 Gaming
    Read local group policy using PowerShell commands: I am unable to get Gpresult of local group policy using powershell I need help on this to get local the local gpo's on windows sever 2022. https://answers.microsoft.com/en-us/windows/forum/all/read-local-group-policy-using-powershell-commands/e3477740-5db5-44f9-986b-e599f2e7eedc
  5. Read local group policy using PowerShell commands

    in Windows 10 Software and Apps
    Read local group policy using PowerShell commands: I am unable to get Gpresult of local group policy using powershell I need help on this to get local the local gpo's on windows sever 2022. https://answers.microsoft.com/en-us/windows/forum/all/read-local-group-policy-using-powershell-commands/e3477740-5db5-44f9-986b-e599f2e7eedc
  6. Group Policy for Powershell Execution

    in Windows 10 Software and Apps
    Group Policy for Powershell Execution: I enabled "Turn on Script Execution" and only allow signed scripts previously.However, I would like to bypass policy for one specific powershell script without changing my group policy.Is there any way of doing so?I have tried to using the -executionpolicy bypass -file but it...
  7. Group Policy for Powershell Execution

    in Windows 10 Customization
    Group Policy for Powershell Execution: I enabled "Turn on Script Execution" and only allow signed scripts previously.However, I would like to bypass policy for one specific powershell script without changing my group policy.Is there any way of doing so?I have tried to using the -executionpolicy bypass -file but it...
  8. Local group policies

    in Windows 10 Customization
    Local group policies: Hello, I have issue with windows 10 home basic. There is no options for Administrative Templates inLocal Group Policies. Please resolve this issue...[ATTACH] https://answers.microsoft.com/en-us/windows/forum/all/local-group-policies/bdbb2977-adf0-4aed-a08d-4dd5601fffac
  9. Windows 10 - Local Group Policy (PowerShell)

    in Windows 10 Ask Insider
    Windows 10 - Local Group Policy (PowerShell): I been looking online and I cant find much on how to automate local group policies for a stand-alone workstation. Not connected to a domain controller or active directory. I wanted to use powershell to do this. Anyone got an idea or point me in the right direction to...
  10. local group policy

    in Windows 10 Customization
    local group policy: I have windows 10 home edition 1903 and I need to edited the local group policy but I can't seem to find it. https://answers.microsoft.com/en-us/windows/forum/all/local-group-policy/c696e164-1135-4b8b-b687-38f4b18d1f6f