PSConfig commands after CU installation

Elevated command prompt\POSH =>

cd “C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\BIN” =>

PSConfig.exe -cmd upgrade -inplace b2b -force -cmd applicationcontent -install -cmd installfeatures

After CU install on all (!) servers in farm, run SP product config wizrd immediately

First on CA server, second – on others

http://blogs.technet.com/b/sowmyaa/archive/2012/03/20/sharepoint-2010-psconfig-basic-guidelines.aspx

Why we recommend / require to run the Configuration Wizard also for Security fixes

You Must Manually Run PSCONFIG after Installing SharePoint 2010 Patches

Psconfig reference
https://technet.microsoft.com/en-us/library/cc263093(v=office.14).aspx

http://sp-vinod.blogspot.ru/2013/03/sharepoint-2010-october-2012-cumulative.html

PSConfig commands after CU installation

PS script for bat-file (setting input variables)

Param([string]$SiteUrl, [string]$LiteralPath)
if ($SiteUrl -eq "") { Write-Host "Specify -SiteUrl param"; return; }
$snapin = Get-PSSnapin | Where-Object {$_.Name -eq 'Microsoft.SharePoint.Powershell'}
if ($snapin -eq $null) {
Write-Host "Loading SharePoint Powershell Snapin"
Add-PSSnapin "Microsoft.SharePoint.Powershell"
}
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint");
#В данной переменой укажите узел форума
$url = $SiteUrl;
PS script for bat-file (setting input variables)

Add user to group

$group = $spweb.SiteGroups
$grpN = $web.SiteGroups[“Разработчики”]
$userS = $web.Site.RootWeb.EnsureUser(“test\deus”)
$grpN.AddUser($userS)
$grpn.Users

#list all group and count of users inside

foreach ($grp in $group) {$grp.Name + ‘ ‘ + $grp.ID}

Add user to group