How to populate Hkcu entries for all the logged on users
Created: 28 Apr 2010 | 1 comment
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)
Blog Entry Filed Under:
The Endpoint Management Community Blog is the perfect place to share short, timely insights including product tips, news and other information relevant to the Endpoint Management community. Any authenticated Connect member can contribute to this blog.
Comments
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.
Would you like to reply?
Login or Register to post your comment.