Archive for the ‘Powershell’ Category

Deploy dll to GAC using Powershell

Deploy dll to GAC Following snippet will help to add dll to GAC using powershell. The above snippet will add TestApp.dll to GAC. To remove dll from GAC, use $publish.GacRemove Enterprise Services Class Email this page

February 9, 2016 · Adi · No Comments
Posted in: Asp.Net, Powershell, Sharepoint 2010, SharePoint 2013, SharePoint 2016, Tips and Tricks

Powershell – SharePoint document library files report filtered by created date

Introduction Give the date range and this powershell script will generate csv report with total number of files created in all the document libraries. Script will get all the document libraries of sites and its subsites. This can be used as reporting tool to get overview of the total number of documents that were created […]

October 4, 2015 · Adi · No Comments
Tags: , , ,  · Posted in: Powershell, Sharepoint 2010, SharePoint 2013, Tools

IIS – Get password of application pool identity

Introduction If we want to view password of application pool identity user, use the below command. Just give the application pool name and it will show you the password of the identity user Email this page

April 3, 2015 · Adi · No Comments
Tags:  · Posted in: Powershell, Sharepoint 2010, SharePoint 2013

Powershell – Update All Application Pool Identity User Password

Introduction If Application Pools identity credentails should be changed due to any inbuilt policy, then we have to go to all application pools to change new password. This is a bit tedious if many application pools are there. If application pools are run by managed accounts, SharePoint will handle password change by itself. In reality […]

April 3, 2015 · Adi · No Comments
Tags: , , ,  · Posted in: Powershell, Sharepoint 2010, SharePoint 2013

Powershell Script – Recycle Specific Application Pool

Introduction The following script will restart application pool of IIS based on user input. User will just select the number which application pool to restart. Very good on demand usage script Email this page

March 17, 2015 · Adi · No Comments
Tags: , ,  · Posted in: Powershell, Sharepoint 2010, SharePoint 2013

Powershell Script – Recycle All Application Pools

Introduction The following script will restart all application pools of IIS. It’s well known fact that IISReset should only be used when necessary but not to restart app pools. Email this page

March 17, 2015 · Adi · No Comments
Tags: , ,  · Posted in: Powershell, Sharepoint 2010, SharePoint 2013

SharePoint Online – OneDrive cmdlets

Introduction Windows PowerShell cmdlets that let you enable the OneDrive for Business sync client from only the domains present in the safe recipients list. So this now gives administrators the ability to decide what domains sync clients originating from are allowed. This is a great step for Micosoft and OneDrive for Business (OD4B) in regards […]

March 12, 2015 · Adi · No Comments
Tags: , , , ,  · Posted in: OneDrive, Powershell, SharePoint 2013, SharePoint Online

Error details from SharePoint correlation ID

Introduction Got the correlation id in SharePoint and want to get what is the information/error details related to the correlation id, then this is quick way Skill Level – Medium Email this page

September 13, 2014 · Adi · No Comments
Tags:  · Posted in: Debugging and Testing, Powershell, Sharepoint 2010, SharePoint 2013, Uncategorized

PowerShell Script – Create New Web Application with Claims-Based Authentication

Introduction The following script will create a new web application and use claims-based authentication. It’s really good and fast Email this page

May 14, 2014 · Adi · No Comments
Tags:  · Posted in: Powershell, Sharepoint 2010, SharePoint 2013

PowerShell Script – Create SharePoint Search Service Application

Introduction When Search service application is created from Central Admin, all created Search databases have GUIDs at the end. Many like to create Database with the name rather than creating with GUID. If we create the Search service with PowerShell, we can specify the database names SharePoint should use. The following script will do that […]

May 13, 2014 · Adi · No Comments
Tags: , ,  · Posted in: Powershell, Sharepoint 2010, SharePoint 2013