I noticed an awkwardness on my IIS6 server installation today.
All my sites were running with a US locale, thus invalidating the currency/date time/decimal calculations by an order of magnitude.
The problem was that the server was installed using the default settings, and also applied those to the Network Service account under which most of my sites work.
How do you fix this?
- Login (RDP is OK)
- Change the locale to your preference on the logged in account, use Control Panel's Regional Settings UI, you may need to reboot
- Go to HKEY_CURRENT_USER\Control Panel\International
- Right click, choose Export
- Open the file in Notepad, replace "HKEY_CURRENT_USER" with "HKEY_USERS\S-1-5-20", this is the Network Service account
- Save the .reg file
- Double click the .reg file and import the settings
- Restart IIS
You should have your locale set.
Oh, on the other side, while investigating this, here's a scoop on how to get to clear text passwords of IUSR_MACHINENAME and IWAM_MACHINENAME accounts:
- Go to C:\InetPub\AdminScripts and open adsutil.vbs script in Notepad
- Change the only occurrence of "IsSecureProperty = True" to "IsSecureProperty = False". Save.
- Run "cscript adsutil.vbs get w3svc/anonymoususerpass" in command prompt
- Run "cscript adsutil.vbs get w3svc/wamuserpass" in command prompt
- Don't forget to revert to "IsSecureProperty = True" in adsutil.vbs
- Don't forget to save the file again
You should have both passwords now. This comes handy when you need to fine tune the settings of both built-in accounts.