Friday, January 12, 2007

Just show me the damn clock!

One of the things that has always really annoyed me is the systray clock... so easy to turn on in the UI, oh so hard to do in an SOE! Well not anymore... this command will do it:

REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\
StuckRects2" /v Settings /t REG_BINARY /d
"28000000ffffffff02000000030000006b00000020000000feffffffe
20300000205000002040000" /F

*NOTE* All that should obviously be one line... just found a bug in the .css of this site that I'll need to take care of later!

Of course, if you want to make it stick for all users, mount the Default User's NTUSER.DAT and make the change there too. No, changing the .DEFAULT hive won't work - that is the "All Users" ntuser.dat... stupid naming I know, but the actual "Default User" registry hive isn't exposed by default. And since a new user profile gets whatever is in the "Default User" hive, you need to modify it (in any SOE I have had anything to do with, I always make user related reg entries in both All User and Default User, just to be sure)