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
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SpecopsSoft\uReset\Client\Urls]
"Enroll"="https://login.specopssoft.com/Authentication/Enroll?
"Reset"="https://login.specopssoft.com/Authentication/Password/Reset?
"ResetExternal"="https://login.specopssoft.com/Authentication/Password/Reset?
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 "https://login.specopssoft.com/Authentication/Enroll?" -PropertyType String -Force
New-ItemProperty -Path $registrypath -Name "Reset" -Value "https://login.specopssoft.com/Authentication/Password/Reset?" -PropertyType String -Force
New-ItemProperty -Path $registrypath -Name "ResetExternal" -Value "https://login.specopssoft.com/Authentication/Password/Reset?" -PropertyType String -Force

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of serialband
serialband
Flag of Ukraine image

Link to home
membership
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: https://theitbros.com/add-modify-and-delete-registry-keys-using-group-policy/

Steve
Avatar of Lee Culwell

ASKER

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