Jump to content

Push a registry setting to all devices


Recommended Posts

  • 5 months later...
  • 3 months later...
  • 2 years later...
  • 1 month later...
  • 2 weeks later...
  • 1 month later...

Hey @Martin Stevnhoved

I might be missing something however regarding the registry push, you can kind of do this now with Powershell, by creating script then a task and assigning it to a scope of machines.

Granted its not going to apply to HKCU but it could be a start.

Happy to try and help work out the issue if you want to create a new topic.

Cheers,
Quenten

Link to comment
Share on other sites

  • 3 months later...

Hi @Quenten Grasso

On ‎8‎/‎10‎/‎2018 at 7:19 AM, Quenten Grasso said:

I might be missing something however regarding the registry push, you can kind of do this now with Powershell, by creating script then a task and assigning it to a scope of machines. 

I think that you are missing, that the post was posted in 2015 :)
Today it is indeed possible with scripts and tasks.

Link to comment
Share on other sites

  • 4 months later...

Here is a script I use to implement a registry change to the HKCU hive:

@ECHO OFF

IF NOT EXIST C:\Support\WriteToHkcuFromSystem.ps1 (
	C:\ProgramData\chocolatey\bin\wget.exe -c -nc -nH -nv --no-check-certificate https://gallery.technet.microsoft.com/scriptcenter/Write-to-HKCU-from-the-3eac1692/file/199836/1/WriteToHkcuFromSystem.ps1 -O C:\Support\WriteToHkcuFromSystem.ps1
    )
IF NOT EXIST C:\Support\FoxitPDF.reg (
	C:\ProgramData\chocolatey\bin\wget.exe -c -nc -nH -nv --no-check-certificate https://www.dropbox.com/s/XXXXXXXXXXXXXXXXXXxxxxxxxxxxxx/FoxitPDF.reg?dl=1 -O C:\Support\FoxitPDF.reg
    )

Powershell.exe -ExecutionPolicy ByPass -File C:\Support\WriteToHkcuFromSystem.ps1 -RegFile C:\Support\FoxitPDF.reg -CurrentUser

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...