How do you modify existing SharePoint sites?

I often get a client’s request to change properties, for example, the version history parameter in all document libraries on all existing farm sites.

So far, the best solution I could think of is a Powershell script, test the script before I run it, and then pray that I don't forget something critical. Is there a better and safer way?

+3
source share
3 answers

My personal “setup workflow” is as follows:

  • A prototype solution in PowerShell. Dirty
  • Export my messy PowerShell command history.
  • Visual Studio, # ( , ).
  • , SharePoint Solution ( WSPBuilder Extensions); , "script" Feature Receiver. , , .
  • dev, QA. 5b. script , QA db; QA script . WSSv2/2003; , 2007 . , , .
  • / .

, " script prod-", "" , SharePoint. SharePoint Feature Solution .

, PowerShell / .

EDIT: , , . , , . , DR, SSP , config db, - .config IIS.

+3

, - , PowerShell . , , ( , - , ).

, PowerShell script, , -WhatIf -Confirm , ( , ..).

-WhatIf : , , , . , .

-Confirm: , : " , xyz".

-WhatIf, , Start-Transcript , , , , , , , .

+1

First take a backup of the content, then run the script.

Backup through stsadm or database.

Not working for any central admin changes.

0
source

Source: https://habr.com/ru/post/1702558/


All Articles