How to Delete a Timer Job in SharePoint using PowerShell?

But wait! why do we delete a Timer Job in SharePoint? Well, because: Your custom timer job may be in stuck state You may have orphaned Timer jobs (Timer job without “Server” from Timer job status page in Central Admin) Your custom timer job may have created more than one instances (duplicate…

Read more

Get Form Field Values from DispForm.aspx, EditForm.aspx Pages in SharePoint

If you have a requirement to extract field values from Display Form or Edit Form pages in SharePoint lists, Use these jQuery scripts: Get Form field value in Display Form (DispForm.aspx): Get Form field value in Edit Form (EditForm.aspx): Use the control tags and attributes accordingly. E.g. For Drop-downs, Instead of “Input”…

Read more

Set Outgoing E-Mail Settings for SharePoint Central Admin using PowerShell

It’s a common task that every SharePoint administrator will have to perform is enabling SharePoint to send E-mails. Outgoing email settings can be configured within the Central Administration site by navigating to: Central Administration >> System Settings  Click on “Configure outgoing e-mail settings” Provide Outbound SMTP Server, From and To Addresses, and…

Read more

Delete Folders, Sub-Folders from SharePoint Library using PowerShell

I need to delete a Folder from SharePoint document library using PowerShell programmatically. PowerShell script to delete a folder in SharePoint: To delete a Sub-folder from SharePoint Document Library using PowerShell: PowerShell to Delete Folder in SharePoint by URL: Delete All Folders from a Library: Here is the PowerShell to delete all…

Read more

PowerGUI Error: Microsoft SharePoint is not supported with version 4.0.30319.1 of the Microsoft .Net Runtime

PowerGUI is my favorite IDE for creating PowerShell scripts. When I upgraded PowerGUI to a newer version 3.5, all my scripts stopped working and I started receiving below error: “Get-SPWeb : Microsoft SharePoint is not supported with version 4.0.30319.1 of the Microsoft .Net Runtime.” Root Cause: SharePoint cmdlets do not work with…

Read more

The web server process that was being debugged has been terminated by Internet Information Services (IIS)

While debugging a SharePoint object model code in Visual Studio, Got this error message: “The web server process that was being debugged has been terminated by Internet Information Services (IIS). This can be avoided by configuring Application Pool ping settings in IIS.  See help for further details.” Cause:  IIS performs health monitoring…

Read more

Find the Number of Users Currently Connected to SharePoint Site

Had to perform an unplanned IIS Reset to fix an issue in production SharePoint Farm. But executing IISReset breaks ongoing user sessions and give “Service Unavailable” error message, isn’t it? Wouldn’t it be a good idea to find the No. of users currently connected with the SharePoint site and do the IISReset…

Read more

Audience Targeting Missing in SharePoint 2010?

Audience Targeting feature in SharePoint 2010 targets content (pages, Web Parts, documents, list items and content) to audiences. Audiences may consists of SharePoint Groups, Security groups, distribution-lists or Global Audience groups which are compiled in Central Administration. Audience targeting missing in SharePoint 2010? Audience Targeting will not be enabled on lists &…

Read more