maddada

Untitled

Feb 26th, 2020
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. $propName = 'D32142CB-E7FE-44E6-8C8D-097C4C97749E'
  2. $farm = Get-SPFarm
  3. if ($farm.Properties.ContainsKey($propName))
  4. {
  5. Write-Host -foregroundcolor yellow 'Removing user settings'
  6. $farm.Properties.Remove($propName)
  7. $farm.Update()
  8. }
  9. else
  10. {
  11. Write-Host -foregroundcolor green "Setting is already removed"
  12. }
Advertisement
Add Comment
Please, Sign In to add comment