Posts

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 ...

SharePoint Designer 2010 workflow on the specific folder of library

Image
SharePoint Workflow could not be associated with folder, but you could create a List Workflow and specify the following condition to verify if item is located under a folder named  Test/ Orders : CurrentItem:Path   ends with   Test

SharePoint 2013 Interview Questions and Answers

Q1: Can you deploy .wsp Solutions from SharePoint 2010 in SharePoint 2013? Ans:  Yes. SharePoint 2013 provides Support for both 14 Hive and 15 Hive. Solutions from SharePoint 2010 can be deployed in SharePoint 2013 either in 14 Hive,15 Hive or both. This can be done using the new “CompatabilityLevel” parameter of Install-SPSolution cmdlet with which you can now Deploy your wsp Solutions to 14 hive, 15 hive or both. For more Info see  DEPLOY SHAREPOINT 2010 SOLUTIONS IN SHAREPOINT 2013  Q2:  Can you Create & Deploy Sandbox Solutions in SharePoint 2013? Ans:  Sandbox Solutions are depreciated in SharePoint 2013.You can still Create them and deploy them but they are not supported by Microsoft (not 100% sure about this though). Q3: What is the new JS Link Property on SPField? Ans:  New “SPField.JSLink” property has been added to help specify any external JavaScript file Containing any Rendering logic for Out-of-Box or Custom field type.With JSLink developer...

SharePoint Server 2016 Installation step by step

Image
Captured from the below URL http://mstechtalk.com/sharepoint-server-2016-installation-step-by-step/ http://mosshowto.blogspot.com/2015/10/sharepoint-2016-installation.html ________________________________________________________________________________ SharePoint Server 2016  Preview has been released earlier today, check my  previous post for Download and Product Key details , installation media is available for a trial period of 180 days. I have completed a Single-Server installation of SharePoint Server 2016 with Database server on a separate machine. I am sharing the installation details here which can be helpful for many who are new to SharePoint. The installation is similar to the older versions of SharePoint except MinRoleTopolgy which is introduced for the first time in SharePoint 2016. System Requirement I have used the below hardware and software configuration form my current installation. Hardware Requirement Scenario Processor RAM Hard dis...