Need powershell commands for configuring

Fahrid F 201 Reputation points
2021-12-06T06:47:08.803+00:00

Hi All,

I want to update the below group policy setting in the user configuration using PowerShell. I aware of the registry path and we can update the commands using that but instead registry I want to change the values in Group Policy or Local Policy.

For ex: Using Net accounts command we are updating values for password policies.

Enable screen saver
Force specific screen saver: Screen saver executable name
Password protect the screen saver
Screen saver timeout
Turn off toast notifications on the lock screen
Turn off Help Experience Improvement Program
Do not preserve zone information in file attachments
Notify antivirus programs when opening attachments
Configure Windows spotlight on lock screen
Do not suggest third-party content in Windows spotlight
Do not use diagnostic data for tailored experiences
Turn off all Windows spotlight features
Prevent users from sharing files within their profile
Always install with elevated privileges
Prevent Codec Download

Thanks,
Fahrid

Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Server | User experience | Other
Windows for business | Windows Server | Devices and deployment | Configure application groups
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Andreas Baumgarten 123.6K Reputation points MVP Volunteer Moderator
    2021-12-06T06:53:57.573+00:00

    Hi @Fahrid F ,

    maybe this is helpful to get started:
    https://sid-500.com/2017/08/25/configuring-group-policies-by-using-windows-powershell/
    https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/ee461027(v=technet.10)?redirectedfrom=MSDN

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.