$webAppUrl = "https://portal.sites.com";
Get-SPSite -Limit All -CompatibilityLevel 14 -WebApplication $webAppUrl | % { $_.AllowSelfServiceUpgrade = $true; $_.AllowSelfServiceUpgradeEvaluation = $false; }
To disable the pink color ribbon, below is the code as follows:
Get-SPWebApplication $webAppUrl | % { $_.UpgradeReminderDelay = 70; $_.Update() }
LGet-SPSite -Limit All -Compatibilityevel 14 -WebApplication $webAppUrl | % { $_.ExtendUpgradeReminderDate() }
After executing the above code, the pink color ribbon is seen no more: