Remove Read-Only lock from SharePoint 2013/2016 site collection

Set/Remove Read-Only lock from SharePoint 2013/2016 site collection using PowerShell:   $siteUrl = “http://mysiteurl” #mark site as not locked $s = get-spsite $siteUrl $s.WriteLocked = $false set-spsite $siteUrl -LockState Unlock $s.Archived = $false   #mark site as read-only set-spsite $siteUrl -LockState ReadOnly

0

AccessKey too long, cannot be more than one character – SharePoint 2013 with March 2018 update

After installing March 2018 update for SharePoint 2013 you may get this error when trying to configure sync in User Profile Service Application:   Application error when access /_layouts/15/ProfileSynchronizationServiceProvisionPage.aspx, Error=AccessKey too long, cannot be more than one character. Parameter name: value at System.Web.UI.WebControls.WebControl.set_AccessKey(String value) at Microsoft.SharePoint.Portal.WebControls.InputFormButtonAtBottom.set_AccessKeyLocId(LocStringId value) at ASP._layouts_15_profilesynchronizationserviceprovisionpage_aspx.__BuildControl__control11() at ASP._layouts_15_profilesynchronizationserviceprovisionpage_aspx.__BuildControlProfileSyncProvisionSettingsForm() at ASP._layouts_15_profilesynchronizationserviceprovisionpage_aspx.__BuildControl__control4(Control __ctrl) at…

0

SharePoint – create MMS column from PowerShell

Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue #Variables $WebURL=”http://site1.sp.com/” $ListName=”DL” $FieldName=”TempMMSField” #taxonomy related variables $termStoreName = “Managed Metadata Service” $termStoreGroup = “Global Terms” $termSetName = “Topic” #Get the web and List $Web = Get-SPWeb $WebURL $List = $Web.Lists[$ListName] #Check if the column with same name exists in the list if(!($List.Fields.ContainsField($FieldName))) { #Get the Termset from Term store $TaxonomySession…

0

SharePoint – add all wsps from a folder

foreach ($item in (Get-Childitem -path c:\temp\wsp)) { $location = “c:\temp\wsp\” + $item.Name add-spsolution -literalpath $location }

1