Change Settings for New Icon in SharePoint 2010 using PowerShell

Image

March 1, 2023

The amount of time the New icon is shown in SharePoint 2010 can be changed at the Web Application level using PowerShell. Below are examples to get or change settings for the icon:

Get the Current Duration to Display the New Icon

$webApp= Get-SPWebApplication "http://webAppURL/"$webApp.DaysToShowNewIndicator

Change the Duration to Display the New Icon

# Set to 1 Day$webApp= Get-SPWebApplication "http://webAppURL/"$webApp.DaysToShowNewIndicator
=1$webApp.Update()

Prevent the New Icon from Displaying

# Essentially, just set the display duration to 0 days.$webApp= Get-SPWebApplication
"http://webAppURL/"$webApp.DaysToShowNewIndicator =0$webApp.Update()