I decided to put these down somewhere as I always keep losing them.
Basically part of .NET Framework, you can retrieve config values from registry.

Great for BTSNTSvc.exe.config etc. There you have the best of both worlds –
keys that are accessible via the AppSettings, but the values are stored away from
prying eyes……

Here’s the go

<appSettings>
    <add key=”InternalApprovalUrl’ value=”registry:HKLM\Software\SomeKey,someValue”
/>
….
</appSettings>

Also for .NET 1.x there is a hotfix KB329250 that allows entities like ProcessModel
username/pass to be stored in the Registry – encrypted!

Enjoy Mick.