Fix for SharePoint UserProfileApplicationNotAvailableException_Logging Exception

I was trying to write a PowerShell script to retrieve user profile properties in SharePoint 2013, and ended up with the below error: “UserProfileApplicationNotAvailableException_Logging :: UserProfileApplicationProxy.ApplicationProperties ProfilePropertyCache does not have c4a5371c-01c2-4281-b91b-ca335982f994” Solution: After verifying user profile service application and SharePoint timer jobs are up and running, arrived at the right destination: User…

Read more

SharePoint Site Collection Storage Size – Quota Usage Report using PowerShell

Requirement: Wanted to get a quick storage quota report on SharePoint sites on their allocation vs used space metrics to find out underutilized sites. PowerShell script to get SharePoint site quota report If you want to get used storage space for a particular site collection, use: To get storage data for all…

Read more

Run SharePoint 2010 Timer Jobs On-Demand with PowerShell

We may have to run SharePoint timer jobs on-demand in some situations. Say for e.g. To update Rating values, I had to run the timer jobs: User Profile Service Application – Social Rating Synchronization Job and User Profile Service Application – Social Data Maintenance Job. Read more at SharePoint 2010 Rating Feature…

Read more

Activate a SharePoint Feature on All Site Collections using PowerShell

Ever wanted to enable a feature on all site collections in a SharePoint environment? Well, To activate a site collection feature in SharePoint, navigate to Site settings >> Site Collection Features >> Click on “Activate” next to the relevant feature. How to Activate a Feature using PowerShell? To activate a SharePoint feature…

Read more

How to Create/Delete SharePoint Groups Programmatically with PowerShell?

Requirement: Create or Delete SharePoint User Groups using PowerShell These PowerShell code snippets helps to Create or Delete SharePoint Groups programmatically using PowerShell: Create SharePoint Group using PowerShell: Use this function to create a SharePoint group using PowerShell. Delete SharePoint Group Programmatically with PowerShell: And to delete an existing SharePoint group programmatically,…

Read more

“Internet Explorer cannot display the webpage” on Accessing SharePoint Central Admin

Problem: SharePoint 2010 central administration site stopped working after a reboot and gave “Internet Explorer cannot display the webpage” on trying to access! Troubleshooting: SharePoint central admin page cannot display the webpage error could be caused since Central Administration service is in the disabled state! Let’s troubleshoot by checking Central Administration service…

Read more

PowerShell Scripts to Manage Choice Field in SharePoint

PowerShell is a handy way to perform tedious and repetitive tasks in SharePoint. Say, we want to add or remove a choice value in a specific choice column for number of sites, etc. Here are some nifty PowerShell scripts to manage choice field in SharePoint. How to Add New Choice Field to…

Read more

Apply SharePoint Quota Template Changes to Existing Sites

Problem Scenario:  End-users actively started using their “My Sites” and most of their My sites reached the site collection storage quota limit of 100MB! Gradually started receiving many requests to increase storage limits. Initially, My site web application assigned with a “Personal” quota template which offers 100MB of disk space. After a…

Read more

Recover SharePoint 2007 / 2010 / 2013 Product Key using PowerShell

Ever wanted to recover your SharePoint 2007 or SharePoint 2010 Product key from an existing SharePoint Farm? Sure! It’s encoded and stored in the system registry, and we can recover the license key with PowerShell. Here is the code: PowerShell Script to Recover SharePoint 2007 Product key: PowerShell Script to Recover SharePoint…

Read more

Update All Items in a SharePoint List using PowerShell

Use these PowerShell scripts to update all items in SharePoint lists: SharePoint PowerShell script to update all items in a list: Requirement is to update all items in a SharePoint list using PowerShell script: Filter and Update all documents in a SharePoint Library: This PowerShell script selectively updates all document’s metadata, residing…

Read more