Posts

Showing posts from January, 2018

Export/Import SharePoint farm solutions using PowerShell

Image
In My environment we lost SharePoint updated code. We want migrate SharePoint from SP 2010 to SP2013. Simply I did Export all .WSP using following Script. Steps: -------- Export SharePoint 2010/2013 Farm Solutions: 1). Open SharePoint 2010/2013 Management Shell as administrator. 2).  Create new folder in any drive (In my case create new folder in D drive with ExportWSP name ) 3). Type D: and type "cd ExportWSP" 4). Copy and run the following script.         (Get-SPFarm).Solutions | ForEach-Object{$var = (Get-Location).Path + “\” + $_.Name; $_.SolutionFile.SaveAs($var)} 5). Go back to ExportWSP Folder, Here All SharePoint wsp export from SharePoint Farm. Import SharePoint 2010/2013 Farm Solutions: 1). Open SharePoint 2010/2013 Management Shell as administrator. 3). Type D: and type "cd ExportWSP" 4). Copy and run the following script. Get-ChildItem | ForEach-Object{Add-SPSolution -LiteralPath $_.Fullname} ...

Install SharePoint 2010/2013 patch (CU) using command prompt

Image
While Am running SharePoint Patch or CU from UI. It's Showing "the expected version of the product was not found on this system". 1. Open the Command prompt with Admin. 2. Go to CU location from Command prompt. 3. Run the particular CU .exe name with PACKAGE.BYPASS.DETECTION.CHECK=1    Ex: wssloc2010-kb3114890-fullfile-x64-glb.exe PACKAGE.BYPASS.DETECTION.CHECK=1   Note:  PACKAGE.BYPASS.DETECTION.CHECK=1 should be Case sensitive.