Tricks and Tips about Systems/Network

December 18, 2009

How do I change the date format on IIS

Filed under: admins,IIS,Windows — Liju Mathew @ 9:47 am

Problem,

I need to displayed the date format on “dd/mm/yyyy” format. I have done regional setting change, restart IIS and reboot the server. Still it showing the same date format.

I used this aspx page to test whether it is working or not. File content is ” ” still showing the older format

Solution,
1. You can find a script named “AdminAcripts” on “C:/InetPub/AdminAcripts” and edit. Replace the string "IsSecureProperty =True" to ""IsSecureProperty = False".
2. Open the command window and change directory to “C:/InetPub/AdminAcripts”.
3. We need to get the password of IIS user account and change the date settings exclusive for that user.
4. To Retrieve the IUSR Password, enter this command:
>cscript adsutil.vbs get w3svc/anonymoususerpass
Should return something like:
cmd> anonymoususerpass : (STRING) "/FGde5hse7x"!5dI"
5. Copy the IUSR password and Open the control panel, select the Regional settings –> Press Shit key+ Right button while selecting the “Regional menu”. Then choose “Run as” option
6. Provide the IUSR name and password, then change the date format for that user profile.
USR name someting like “IUSR_Servername” ( You can get this from find users directory search or from the users list on Computer Management)

Retrive the IUSR passwords

Theme: Rubric. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.