The Lazy SharePoint Admin

Automating SharePoint one script at a time!

Home

Prune System Log Files

Introduction Let's face it, logs are everywhere.  It seems like every piece of software creates log files these days.  Unfortunately, not every piece of software cleans up after itself or allows setting limits on the amount of logging to create and retain.  This can bring down a system if log file storage is not kept [...]

By |2020-05-20T11:31:08+04:30May 20th, 2020|PowerShell, Tips|Comments Off on Prune System Log Files

Find Failed On Start Workflows

Introduction You may come into work one day and find that your workflows are failing.  Examining the workflow details will reveal "Failed On Start" errors.  Most likely this is due to a patch.  The fix for the patch is to manually add several lines to  the web.config file of your SharePoint web application servers.  In [...]

By |2020-04-29T15:55:14+04:30April 29th, 2020|PowerShell, Tips, Workflow|Comments Off on Find Failed On Start Workflows

Determine Size of SharePoint Site Collection Recycle Bin

Curious how much data is in your SharePoint on premises site collection recycle bin?  SharePoint does not provide a way to determine this.  Fortunately, PowerShell can accomplish this with relative ease.  The following PowerShell script will process site collection first and second stage recycle bins and report back on storage space used.  Remember to modify [...]

By |2020-04-13T10:51:08+04:30April 13th, 2020|PowerShell|Comments Off on Determine Size of SharePoint Site Collection Recycle Bin

SharePoint 2010 Search Service Removal and Cleanup

Sometimes you just need to rebuild SharePoint 2010 search.  It happens.  Life happens.  SharePoint 2010 Search poops the bed.  This article will discuss how to remove a SharePoint 2010 search service application and clean up leftover search components. Search Service Application Removal So the first thing we need to do is remove the search service [...]

By |2020-04-07T16:52:34+04:30April 7th, 2020|Central Administration, PowerShell, Tips|Comments Off on SharePoint 2010 Search Service Removal and Cleanup

Configure and Verify NTP on ESXi 6.7

This article discusses how to configure an ESXi 6.7 host to synchronize time with an upstream NTP server and how to verify that it's actually working. NTP Configuration The first step is to configure time synchronization on the ESXi host(s).  This can be done using the VMware Host Client, the vSphere Web Client or the [...]

By |2019-11-01T11:28:02+04:30November 1st, 2019|Tips, VMware|Comments Off on Configure and Verify NTP on ESXi 6.7

Rename SharePoint Service Application or Proxy

If you would like to rename a service application or it's proxy, PowerShell can get it done! Let's say the Managed Metadata service is named "Managed Metadata" and the associated proxy is also named "Managed Metadata".  To change the service name to "Managed Metadata Service" and the proxy name to "Managed Metadata Service Proxy", the [...]

By |2019-10-14T16:17:55+04:30October 14th, 2019|Central Administration, PowerShell, Tips|Comments Off on Rename SharePoint Service Application or Proxy

List Site Collection Workflows

Would you like to know how many workflows are in a given site collection?  How many of those workflows are currently running?  How many old versions of workflows you have laying around?  The following PowerShell script will crawl a site collection and enumerate all lists/libraries for workflow associations and report back useful information such as [...]

By |2019-10-10T21:47:10+04:30October 10th, 2019|PowerShell, Tips|Comments Off on List Site Collection Workflows

VMware vAPI Endpoint Service Health Alarm

After installing or upgrading to vCenter Server 6.0 on Windows, you may notice the following issues: vAPI Endpoint Service Health Alarm keeps triggering in vCenter Server for Windows "You do not have permissions to view this object or this object does not exist" messages when using vSphere Web Client Review the %ProgramData%\VMware\vCenterServer\runtime\VMwareSTSService\logs\lookupserver.log for entries like: [...]

By |2019-10-03T14:51:09+04:30October 3rd, 2019|VMware|Comments Off on VMware vAPI Endpoint Service Health Alarm

Maintain SharePoint Workflow History Lists

Overview A daily Workflow Auto Cleanup job runs to permanently delete workflow instances and related task entries that still exist 60 days after a workflow is completed or canceled.  Workflow history items themselves are not deleted, but the entry point to view them on the status page for a particular instance of a workflow will [...]

By |2019-10-10T14:46:36+04:30March 1st, 2018|PowerShell, Tips|Comments Off on Maintain SharePoint Workflow History Lists
Go to Top