Link to home
Start Free TrialLog in
Avatar of Lee Culwell
Lee CulwellFlag for United States of America

asked on

i need to update three registry keys in using powershell

All the pcs have these keys in the registry but the value needs to be adjusted. Intune would be the easiest way since all pcs are in it

the three keys are under and it adds on to the three keys
Avatar of Michael Pfister
Michael Pfister
Flag of Germany image

Can be done like this:
$registrypath = "HKLM:\SOFTWARE\Policies\SpecopsSoft\uReset\Client\Urls"
if(!(Test-Path $registrypath)) {
    New-Item -Path $registrypath -Force
New-ItemProperty -Path $registrypath -Name "Enroll" -Value "" -PropertyType String -Force
New-ItemProperty -Path $registrypath -Name "Reset" -Value "" -PropertyType String -Force
New-ItemProperty -Path $registrypath -Name "ResetExternal" -Value "" -PropertyType String -Force

Open in new window

Avatar of serialband
Flag of Ukraine image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Or you can just push it out with group policy without a script.  I won't re-invent the wheel by typing it out here but process is really easy, 2 seconds on google will give you a walk through, here is good one from top few:

Avatar of Lee Culwell


I am pushing out through Intune because 80% do not logon to local AD. If GPO i already have it done. I will test it later today. thanks