Posts

Showing posts from 2017

Unlocked -Checked-In files in sharepoint

Image
Good article: https://www.codeproject.com/Articles/93965/Force-SharePoint-Document-Unlocked-Checked-In OR Using POWERSHELL You can unlock it programmatically! There is no UI to unlock the locked files - as we do have for Check-in Checked-out files. So, Here is my solution to unlock the locked files using PowerShell. Add - PSSnapin microsoft . sharepoint . powershell - ErrorAction SilentlyContinue #Variables for Web and File URLs $WebURL = "http://intranet.crescent.com/support/" $FileURL = "http://intranet.crescent.com/support/T1Support/Reports/ServiceTickets.xlsx" #Get Web and File Objects $web = Get - SPWeb $WebURL $File = $web . GetFile ( $FileURL ) #Check if File is locked if ( $File . LockId - ne $null ) { Write - host "File is Loked out by:" $File . LockedByUser . LoginName Write - host "File Lock Type: " $file . LockType Write - host "File Locked On: " $file . LockedDate Wr...

Step by Step - Always On feature in SQL Server 2012

http://www.sqlhammer.com/how-to-configure-sql-server-2012-alwayson-part-1-of-7/ https://www.mssqltips.com/sqlservertip/2519/sql-server-alwayson-availability-groups--part-1-configuration/ http://www.sqlservercentral.com/blogs/forrards-group-database-blog/2015/08/06/step-by-step-guide-to-setting-up-ms-sql-server-alwayson/

Restore IIS website on WFE

If you accidentally deleted the IIS site in any front-end server or you want to repair WFE IIS. Please use the below steps When you have multiserver environment, your web application provisioning can go wrong due to many reasons (app pool timeout etc.) and as a result you can get one WFE works while the other does not. In my case, Deleted IIS folder in my on of WFE and want to restore and I don't want to recreate my web application from scratch. SharePoint provides Provision() and ProvisionGlobally() method. We ran Provision() on the Deleted WFE and it fixed all our IIS sites (default and internet zone) in one go. To do this just open power shell on the WFE: ? $webApp = Get-SPWebApplication https://sharepointsiteURL.com/  $webApp.Provision() $webApp = Get-SPWebApplication  https://sharepointsiteURL.com/   $webApp.ProvisionGlobally() If you want you can remove the IIS site completely in WFE IIS manager and Provision() will recreate the IIS site After ...