OneDrive for Business: Block Syncing of Specific File Types

Requirement: Block syncing of specific file types in OneDrive for Business. How to Block File Types in OneDrive for Business? By default, Users can upload all type of files in their OneDrive for Business folder. However for security, we can restrict users from syncing specific file types in OneDrive for Business. Login…

Read more

Get All SharePoint Online Administrators in Office 365 using PowerShell

Requirement: Get a list of All users with SharePoint Online Administrator Role. How to Get All SharePoint Online Administrators in Office 365? To view all existing SharePoint admins, do the following: Login to Microsoft Admin Center https://admin.microsoft.com Click on “Show All” in the left navigation >> Click on the “Roles” link Under…

Read more

Office 365: Find All SharePoint Online Administrators using PowerShell

Requirement: Get All SharePoint Online Administrators of the Office 365 tenant. How to Check If a User is SharePoint Online Administrator in Office 365? To find if a user is SharePoint Online Administrator, do the following: Login to Office 365 Admin Center: https://admin.microsoft.com Expand Users >> Active Users Use the Search and…

Read more

Archive ULS & IIS Log Files in SharePoint using PowerShell

Requirement: Archive Log files of IIS and ULS Log.  Log files in SharePoint (both IIS Log and ULS Log) could grow and fill-up the disk space based on your configurations and usage. There are many scripts available in various blogs and boards and Here is my own script to archive Log files…

Read more

Monitor SharePoint Web Sites Availability and Send Alert Email using PowerShell

Requirement: Script to monitor SharePoint web sites and trigger an Alert Email when something goes wrong! PowerShell script to Monitor SharePoint Sites: Here is the alert Email in action: Schedule this script in Windows task scheduler to run for every 10 minutes. Update: What if the site loaded with an error? E.g….

Read more

Monitor SharePoint Services (Such as Timer Service) – Send Alert Email When They Goes Down!

In continuation to my post: Monitor SharePoint App Pools using PowerShell Script,  If certain Services on SharePoint server goes down, that could cause outages or service interruptions to your SharePoint environment! Although monitoring solutions such as SCOM can monitor services, they can’t start the service automatically – when stopped. So, let’s address…

Read more

How to Stop and Start All SharePoint 2013 Farm Services using PowerShell?

Prior to SharePoint patching, its a best practice to Stop all SharePoint 2013 and its related services and then start once patching is completed. If you don’t do this, your service pack or patch installation will take longer than its expected. So what are all the services to be stopped? SharePoint 2013…

Read more

Clear Maintenance Mode to Unlock a Site Collection in SharePoint

Problem: Another fine morning, SharePoint 2013 sites started displaying a message: “We apologize for any inconvenience, but we’ve made the site read only while we’re making some improvements.”. Same time, noticed a backup failure E-mail from the backup software! Root Cause:Since the Backup failure occurred, SharePoint placed the site in read-only mode….

Read more

SharePoint 2013 Maintenance Window Notifications

In continuation to my earlier post: Site Under Maintenance Page for SharePoint, while the solution serves the purpose perfectly by displaying a typical “Site under maintenance” page during occasions like SharePoint patching, upgrade, etc. wouldn’t it be nice to intimate end-users about the planned maintenance window in advance? Well, SharePoint 2013 brings…

Read more

How to Change SharePoint Web Application Port?

While extending existing SharePoint web application to change its port is one option, there is an another workaround to change port of SharePoint web applications (Applies to both SharePoint 2010 / SharePoint 2007). How to change SharePoint web application port number? We can change the port of a SharePoint web application, by…

Read more