Making Registry Changes for All Users with PowerShell

I recently had to throw together a quick script to modify the registry of each current user on a set of given laptops, as well as any future users. While a GPO is normally the way to go for something like this, it wasn’t an option for me here. This builds a little more on my May 2017 post where I just needed to get the

Feel free to steal, use, and abuse – but like all samples found online, please run through a test environment first, and use at your own risk!



  1. Just the Best, I used to remove the Microsoft Teams from starting at user logon, pushed to 501 users and it even got the logged in users, just the best, thanks for posring

    • Hey there,
      I’m a real newbie with PowerShell and have a couple of questions
      Will this also include adding to the the default profile, so all future users will key these reg keys?
      Where in the script do I put the keys that I want added to every user, and in what format?
      an example key is below (is this the correct syntax to use)
      New-Item -Path ‘HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies’ – Name ‘Network’
      New-ItemProperty –Path ‘HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Network’ -Name ‘NoEntireNetwork’ -Value ‘1’ -PropertyType ‘DWord’


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.