Changing Windows Time and Date Format

powershell

Solution

I believe the settings you are looking for are located in:

HKEY_CURRENT_USER\Control Panel\International\sLongDate
HKEY_CURRENT_USER\Control Panel\International\sShortDate
HKEY_CURRENT_USER\Control Panel\International\sTimeFormat
HKEY_CURRENT_USER\Control Panel\International\sYearMonth

So,

Set-ItemProperty -Path "HKCU:\Control Panel\International" 
                 -name sLongDate -value "<Whatever format you'd like>"

Problem

I'd like to automate preferences on a Windows machine for the date and time formats used throughout the OS. What PowerShell commands can I use to automate this task of changing values? - short date format - short and long time format These options are buried deep in Control Panel.

Original source