SharePoint – Configure 24 hour format on all sites

Hello everyone. Today I got the request to change the default time format used on all SharePoint sites to the 24 hour format and I thought I should share how to do this.

Here is the script:

#Add SharePoint PowerShell SnapIn if not already added

if((Get-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue) -eq $null)
Add-PSSnapin Microsoft.SharePoint.PowerShell

$AllSPSites = Get-SPSite -Limit All

foreach($SPSite in $AllSPSites)
foreach($SPWeb in $SPSite.AllWebs)

All you have to do is to run this script on one of your SharePoint Farm servers as SharePoint Administrator and your work is done. That´s it.

As always you can download my script from here.


Tagged ,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: