Running SharePoint Server 2010 SP2 PowerShell Scripts in a Windows Server 2012 R2 OS

I was setting up a SharePoint Foundation Server 2010 SP2 site for a client which the OS it was running on was Windows Server 2012 R2. Now the installation, setting up the sites, and etc went fine. Until I started setting up Powershell scripts with a combination of BAT files and Task Scheduler tasks to run them (I’m a bit old school :P). At first the Task Scheduler task would run them but they would complete too quickly and there were no results from the Powershell scripts. I decided to open up a Powershell console and run the Powershell script themselves. When I tried running the PowerShell script, I got this nice error.

SharePoint PowerShell Error
Continue reading “Running SharePoint Server 2010 SP2 PowerShell Scripts in a Windows Server 2012 R2 OS”

Fixing Distributed Cache Service issues in SharePoint Server 2013

New to SharePoint Server 2013 is the Distributed Cache Service which helps in caching items in SharePoint so that your SharePoint site loads items more quickly. I had issues with a SharePoint Server 2013 test VM where the User Profile Services was not working correctly. From checking the ULS logs it turned out that the User Profile Services could not access the Distributed Cache and in the SharePoint Health Report, the Distributed Cache was not initializing properly. The following is what you can do to fix the Distributed Cache Service.
Continue reading “Fixing Distributed Cache Service issues in SharePoint Server 2013”