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
Avatar of motnahp00
motnahp00
Flag of United States of America image

Try this instead:

REG ADD "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogin" /v ScreenSaverGraceperiod /t REG_SZ /d 900 /f
Avatar of WellingtonIS
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
Avatar of motnahp00
motnahp00
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of WellingtonIS
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.
Avatar of WellingtonIS
WellingtonIS

ASKER

thanks so much.  That did the trick.
Avatar of motnahp00
motnahp00
Flag of United States of America image

This will replace the existing value if one exists.
Avatar of motnahp00
motnahp00
Flag of United States of America image

No problem.
Windows XP
Windows XP

Microsoft Windows XP is the sixth release of the NT series of operating systems, and was the first to be marketed in a variety of editions: XP Home and XP Professional, designed for business and power users. The advanced features in XP Professional are generally disabled in Home Edition, but are there and can be activated. There were two 64-bit editions, an embedded edition and a tablet edition.

119K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo