-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local policy edits not taking affect when using Set #14
Comments
Group Policy automatically refreshes on a schedule, but you can force it faster with the methods you mentioned.
… On Jan 23, 2019, at 8:20 AM, Donal ***@***.***> wrote:
Hi, thanks for the module. It's very good. The help text from about_RegistryValuesForAdminTemplates.Help.txt was very helpful.
I found that when I set a local policy group option, the machine didn't update it's policy until after a reboot or until I ran the command gpupdate /force
So for instance, I ran the command
Set-PolicyFileEntry $env:systemroot\system32\GroupPolicy\Machine\registry.pol -Key 'Software\Policies\Microsoft\Windows\Explorer' -ValueName 'NoNewAppAlert' -Data 1 -Type DWord
The affect didn't take place until after I ran gpupdate /force
I think this is fine but I didn't see anyway in the help information or documentation on set-PolicyFileEntry that you need to then call gpupdate/reboot.
Is this expected behaviour of the module?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
hmm I'm on windows10 20H2 and there is no such file (registry.pol). so it can't be traced to its registry key. Do you have idea whether things have changed or just my windows 10 installation is broken ? |
"Password must meet complexity requirements" does not belong to administrative templates. Registry.pol file is located in:
Note that |
Hi, thanks for the module. It's very good. The help text from about_RegistryValuesForAdminTemplates.Help.txt was very helpful.
I found that when I set a local policy group option, the machine didn't update it's policy until after a reboot or until I ran the command
gpupdate /force
So for instance, I ran the command
Set-PolicyFileEntry $env:systemroot\system32\GroupPolicy\Machine\registry.pol -Key 'Software\Policies\Microsoft\Windows\Explorer' -ValueName 'NoNewAppAlert' -Data 1 -Type DWord
The affect didn't take place until after I ran
gpupdate /force
I think this is fine but I didn't see anyway in the help information or documentation on set-PolicyFileEntry that you need to then call gpupdate/reboot.
Is this expected behaviour of the module?
The text was updated successfully, but these errors were encountered: