How to Hide a List or Library in SharePoint?

Requirement: Hide a SharePoint list or library from the browser But why? Because, My custom application uses some configurations which should be stored and retrieved from a SharePoint list, but it must not be visible to end-users to avoid any mess. So, we got to hide our configuration list from users. We…

Read more

Change “Save” or “OK” Button Text on SharePoint List Forms

Wouldn’t it be more meaningful to rename SharePoint List NewForm.aspx “Save” or “OK” button text to “Submit” in Request Tracking Lists? Yes! Sure, It’s possible to change the “Save” button’s text to something else which gives more meaning in the context. Using jQuery to Rename “Save” button Text: Place the below jQuery…

Read more

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