RSS

Monthly Archives: August 2012

Export and/or Import All Farm Solutions in SharePoint 2010/2013 Farm using PowerShell


Sometimes you may need to export all SharePoint 2010/2013 farm solutions as a backup process or to deploy them from staging environment to production environment.

Export Farm Solutions

  1. Create a backup folder on “C” and give it a meaningful name like “SP2010 Farm Solutions Backup”.image
  2. Open SharePoint 2010 Management Shell
     image
  3. Change directory or navigate to backup folder
     image
  4. Enter the following Script to extract all farm solution to current location directory

    (Get-SPFarm).Solutions | ForEach-Object{$var = (Get-Location).Path + “\” + $_.Name; $_.SolutionFile.SaveAs($var)}
     


    image

    image

  5. Go and open the target folder to see all exported solutions Smile

Import Farm Solutions

After copy the folder that contains exported solution on production or target farm server.

  1. Open SharePoint 2010 Management Shell
  2. Change directory or navigate to folder that contains all solutions to be deployed
  3. Enter the following Script to extract all farm solution to current location directoryGet-ChildItem | ForEach-Object{Add-SPSolution -LiteralPath $_.Fullname}

     image
  4. So all solutions are added to the target farm.

For more information about adding and deploying SP2010 Farm solution, please to open and read Adding and Deploying SharePoint 2010 .WSP Solutions

Same scripts can be used for SharePoint 2013 Farm Solution

I Hope this useful for you,

Thanks.

 

Tags: , , , , , , , , ,

OOB: How to Add YouTube or Embed Video to SharePoint 2010 Page Content


Many of SharePoint 2010 users like to add YouTube video or embedded videos to their content pages, and it is easy and fast to do that by using OOB Content Editor Web Part.

The following is the fast steps to do that:

  1. Go to YouTube video page and click on SHARE button, then click on Embed button. Click on “Use old embed code” checkbox and select the preferred width and height for your video.

    youtubeEmbed

  2. Copy the code in the text area and go to your SharePoint page, and click on Edit Page button.

    image

  3. From the Ribbon, Insert a Content Editor Web Part

    image

  4. Click on Edit Web Part to add the content
    image
  5. From the Format Text Tab in Ribbon, Select and Click on Edit HTML Source,  and Paste the Embedded Code on Text Dialog
    image

    image

  6.  Click on OK button and Save and Publish the page to see you’re YouTube Video Smile

    image

 

I Hope this useful for you,

Thanks.

 
Leave a comment

Posted by on August 10, 2012 in General, SharePoint 2010

 

Tags: , , , , ,