Skip to main content

Posts

Missing SharePoint update when adding a new server to the farm

Hello, So this came up to me recently where I had an existing server farm and I wanted to add a new server to it. The farm had only 1 server (2008 R2) patched to July 2019 CU and I wanted to add a new server (2012R2). I installed the patches and when I run the configuration wizard it detected that 1 patch was missing on the new server: KB2883068. I went to Microsoft page to download it but, surprise surprise that KB is no longer support and they remove it from the site. What you can do to bring the server to the same patch level as the existing one in the farm: 1. Download OPUtil.vbs from https://github.com/cyc4/OPUtil 2. Open command prompt as administrator and run the following command: CSCRIPT.exe .\oputil.vbs /ApplyPatch /SUpdateLocation="\\SourceServer\c$\Windows\Installer" 3. Run the configuration wizard one more time after step 2 is completed.
Recent posts

SharePoint Help Site not working

When trying to access Help using the ? button in any SharePoint 2013 sites you receive an error: "Sorry, this site hasn't been shared with you." In order to solve this follow the below steps: 1. Go to  central administration site /sites/help   (ex.: https://CA/sites/help) 2. Click on "Site Contents" then on "Product Help" 3. Library settings -> Permissions for this document library -> click on "Help Group" and add the "NT Authority\Authenticated Users" group. 4. Refresh the page and it should work.

How to add Local Farm to permissions on Search Service Application

If the Local Farm (account) is not on the permissions of Search Service Application and users try to perform a search on any SharePoint site they will get an error and a correlation ID - something like below: In ULS logs you'll notice the below error: " SearchServiceApplicationProxy::GetUserPreferenceSerializeHelperForTenant–Error occured: System.ServiceModel.Security.SecurityAccessDeniedException: Access is denied. " There is a fix on this blog but it doesn't fix the issue (at least not in my case). So the solution is to run the following powershell commands: $farmID = Get-SPFarm | select id $farmID Copy the GUID returned from $farmID and go to Search Service Application click on Permissions and paste the GUID and grant Full Permissions. And that will fix the issue.

How to view all users in PeoplePicker

If you try to add permissions to a user by using PeoplePicker control, sometimes users won't appear in that dialog box. To solve this first you need to check what is the directory path for that webapplication then to set it to include all users in your domain. You can do this only by using stsadm utility. To use stsadm you need to open cmd and change the working directory to "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN" To check the current path: stsadm -o getsiteuseraccountdirectorypath -url http://webapp To change this to include all users in your domain use this: stsadm -o setsiteuseraccountdirectorypath -path "" -url http://webapp    

70-331 Question related to custom display template

Recently i've come across below question for 70-331 SharePoint exam and I want to share some explanations. Q: You deploy a SharePoint Server 2013 server farm.      You receive a custom display temaplte.      You need to ensure that the custom display template is available in a site collection.      What should you use to upload the template? A. Design Manager B. Composed Looks C. Result types D. The Style Library Why? Dispaly templates consist of an HTML file and a corresponding JavaScript file. All dispaly templates can be found in the master page gallery in the Display Templates folder. So navigate to your site collection go to Site Settings -> Design Manager -> Upload Design Files     You can read here too.