Avatar of WellingtonIS
WellingtonIS
 asked on

Adding A registry key

I'm trying to add a reg_sz called ScreensaverGracePeriod with a 900 seconds entered.  I tried this but it's adding the entire key and I just want to add the screensavergraceperiod

REG ADD "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogin" /v REG_SZ/ScreenSaverGraceperiod /d 900
Windows XP

Avatar of undefined
Last Comment
motnahp00

8/22/2022 - Mon
motnahp00

Try this instead:

REG ADD "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogin" /v ScreenSaverGraceperiod /t REG_SZ /d 900 /f
WellingtonIS

ASKER
That's adding the key again.  here's a picture. What I'm trying to do is add ScreenSaverGraceperiod /t Reg_SZ /d 900 /f to the existing Winlogin. not create an addtional one.
value.bmp
ASKER CERTIFIED SOLUTION
motnahp00

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
WellingtonIS

ASKER
Will try this but I'm not looking to add an extra Winlogin  key only want to add the screensavergraceperiod /t REG_SZ /d 900 /f to the existing key.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
WellingtonIS

ASKER
thanks so much.  That did the trick.
motnahp00

This will replace the existing value if one exists.
motnahp00

No problem.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.