Skip to content

Instantly share code, notes, and snippets.

View ShauneDonohue's full-sized avatar

Shaune Donohue ShauneDonohue

View GitHub Profile
@ShauneDonohue
ShauneDonohue / SP-UpgradeFarmZDP.ps1
Last active May 7, 2021 06:44
SharePoint 2016 on-Prem ZDP script
[CmdletBinding()]
Param(
[Parameter(Mandatory=$false, HelpMessage="The Farm account to connect to SharePoint"))] [string] $farmaccount = "test\test-farm",
[Parameter(Mandatory=$false, HelpMessage="Web application URL to the use for upgrading")][string] $weburl = "https://test-partner.example.com/",
[Parameter(HelpMessage="Name of the first Web Front End")][string] $wfeSvr01 = "TESTWFE01",
[Parameter(HelpMessage="Name of the Second Web Front End")][string] $wfeSvr02 = "TESTWFE02",
[Parameter(HelpMessage="Other servers in your HA farm all 01")]$otherSvrs01 = @( "TESTAPP01", "TESTSRCH01", "TESTDCS01"),
[Parameter(HelpMessage="Other servers in your HA farm all 02")]$otherSvrs02 = @( "TESTAPP02", "TESTSRCH02", "TESTDCS02"),
[parameter(HelpMessage="UNC to copy the upgrade files from")][string] $patchFolderUNC = "\\$($env:computername)\d$\installs\Patches\SharePoint\Sept12_PU",
[Parameter(HelpMessage="The folder to place the upgrade files in on remote servers")][string] $patchInstallFolder = "D:\installs\Patches\Sha