Video Screencast Help
Search Video Help Close Back
to help
Not able to make it to Vision this year? Get a sampling in the Best of Vision on Demand group.

How to populate Hkcu entries for all the logged on users

Created: 28 Apr 2010 | 1 comment
WiseUser's picture
0 0 Votes
Login to vote

Say if we need to set a HKCU reg key for all the logged on users then we may write a batch file to include

In the batch file we can write it as

for /f %%a in ('reg query hku') do (for /f "tokens=3*" %%b in ('reg query "%%a\Control Panel\PowerCfg" /v CurrentPowerPolicy 2^> nul') do reg add "%%a\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v Start_NotifyNewApps /t REG_DWORD /d 0 /f)

Comments

dfnkt_'s picture
30
Apr
2010
0 Votes 0
Login to vote

Thanks.

"FOR" is probably the single toughest DOS command for me to use. I can get along well with everything else but "FOR" always gives me fits. I will have to give this a try.