.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

SharePoint PowerShell

Posted By:      Posted Date: October 27, 2010    Points: 0   Category :SharePoint

Hello Guyz

I am totally new to SharePoint 2010.Could somebody please send me  some  link(webcast) for SharePoint PowerShell.

Thanks in advance.




View Complete Post

More Related Resource Links

Video: SharePoint 2010 Integration with PowerShell

Learn about the new PowerShell integration in SharePoint 2010, which brings SharePoint administration in line with other server products such as Exchange. Understanding PowerShell is a must-have skill for SharePoint 2010 developers. (Length: 19:52)

PowerShell script to add/edit ContentEditor webpart on SharePoint 2010

Hi all, I'm new to PowerShell scripting with SharePoint. Following are the requirements that were given to me. Can any one direct me in the right direction interms of writing the script and how to save and execute the script? I am aware of Cmdlets. 1. Cycle through all sites in site collection 2. For each site, retrieve all document libraries 3. Look for specific CMV document library name (ie value communication, key business drivers, etc)          o add content editor web part if doesn't exist          o add/update appropriate description based on the document library name Thanks in advance...

adding a SharePoint content source using powershell

Hi I'm trying to create a content source using powershell and (I'm not a programmer) I've got this far -   [System.Reflection.Assembly]::Load("Microsoft.Office.Server.Search, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c") [System.Reflection.Assembly]::Load("Microsoft.Sharepoint, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c") [System.Reflection.Assembly]::Load("Microsoft.Office.Server, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c") $site = new-object Microsoft.SharePoint.SPSite("http://breakfast/ssp/admin") $searchContext = [Microsoft.Office.Server.Search.Administration.SearchContext]::GetContext($site)  $content = new-object Microsoft.Office.Server.Search.Administration.Content($searchContext) $Content.ContentSources; --> and now I'm stuck! I think I can use the Create method with type and name parameters but I can't work out how to translate this into powershell This is the code I'm looking at: ContentSource contentSource_com = content.ContentSources.Create(typeof(WebContentSource), "www.someurl.com"); WebContentSource webContentSource_com = (WebContentSource)contentSource_com; webContentSource_com.StartAddresses.Add(new Uri("http://www.someurl.com/index.html)); webContentSource_com.Update(); and $contentsource = $content.ContentSources.

Cannot install Sharepoint 2010 from powershell

I have been given the task of installing Sharepoint 2010 onto a Windows Server 2008 fresh OS. I am attempting to do this using Powershell as we will likely have to rebuild this machine later so i want the rebuild to be as quick as possible. I have setup the SPModules in powershell and add the path to to the PSModule variable. When i run the following command: PS C:\Windows\system32> Install-SharePoint -SetupExePath "location of software\setup.exe" -ConfigXML "location of software\Files\SetupFarm\config.xml" -PIDKey "my key" i get the error: Property 'Value' cannot be found on this object; make sure it exists and is settable. At D:\SPModule\spmodule.setup\Install-SharePoint.ps1:373 char:52 +             $CurrentConfigXml.Configuration.PIDKEY. <<<< Value = $PIDKey     + CategoryInfo          : InvalidOperation: (Value:String) [], ParentContainsErrorRecordException     + FullyQualifiedErrorId : PropertyNotFound even though the key is an argument. I then added the key to a copy of the config file and ran following: PS C:\Windows\system32> Install-SharePoint -SetupExePath "location of software\setup.exe" -ConfigXML "location of software\Files\SetupFarm\configpidkey.xml"

Adding SharePoint PowerShell snapins

Hello All, I am new to both working with PowerShell and Servers originally performing more frontend development. That said, I am now working with SharePoint Srever 2010 of which is installed on Server 2008 (non-R2 version). I have PowerShell installed however every time I want to run Backup, Restore commands I am alwasy having to add: Add-PSSnapin Microsoft.SharePoint.PowerShell. Is there a way to permanantly add this snap in so I don't have to add it every single time? is there a way to permanantly add any and all sanpins so I don't experience any unrecognizable cmdlets? Don't want to make others angry but I amnot seing what all the praise is about in PowerShell at the moment.

Programmatically Upload Pictures to SharePoint Profile Picture Store using Powershell


I'm trying to create a powershell script that will bulk upload pictures to the SharePoint Profile Picture Store located in a "http://sp2010/my/User Photos/Profile Pictures".  I found Chris Johnson's blog post ( http://blogs.msdn.com/b/cjohnson/archive/2010/05/08/sharepoint-2010-office-2010-and-profile-pictures.aspx )  extremely useful.  However, the SPUtils.ps1 that is referenced on his site doesn't seem to support uploading to the "Profile Pictures" folder within the "User Photos" picture library at "http://sp2010/my/User Photos".  My account has full control of the "User Photos" picture library and the "Profile Pictures" folder, and I can upload to the "User Photos", root directory with no problems.  The file fails to upload to the "Profile Pictures" folder.

Currently my Powershell script processes a folder of pictures.  First, it pulls the file name and does some manipulations to retrieve the employee number of the employee.  Second, it performs an active directory search to get the employee's user name.  Third, it resizes the photo to match the small, medium, and large thumbnails generated by a traditional manual upload of a photo from the user's edit profile page.  After each creation of the resized picture it uploads the picture t

Powershell installation of SharePoint Foundation 2010



I am attempting to do a silent farm installation of SharePoint 2010 via powershell using the SPModule commandlets and am running into the following error when attempting to run the Install-SharePoint command (passing the path to .exe and path to config.xml):

PS C:\Users\administrator.INETTEST2K3N> Install-SharePoint -SetupExePath "c:\install\setup.exe" -ConfigXml "c:\install\files\setupfarmsilent\config.xml"

The variable cannot be validated because the value C:\Users\ADMINI~1.INE\AppData\Local\Temp\2\config_2010_Jul_09_16_41_
28.xml is not a valid value for the ConfigXmlPath variable.
At C:\SPModule\spmodule.setup\Install-SharePoint.ps1:412 char:19
+     $ConfigXmlPath <<<<  = Join-Path $env:temp $ConfigXmlName
    + CategoryInfo          : MetadataError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : ValidateSetFailure

I have tried this on both 2008 and 2008 R2 (x64) and keep getting this same error.

Any insight would be greatly appreciated!



Backup/Restore Sharepoint 2010 using Powershell.


Hello all!

I can't say, that i'm new in Sharepoint and particularly in Sharepoint 2010, but i've never used for Backup powershell, so i've got a question.

When i perform Backup using powershell i get as a result folder with a lot of .bak files within. To get know what .bak file to use for Restore of some DB i need to open that XML file, to find by the name needed DB and to restore. The problem is, that when i find needed DB in this XML file i see three .bak files for this DB like these:

1.<SPParameter Key="Features.xml">

- <![CDATA[00000047.bak  ]]>

Changing the graphics on the home page of a SharePoint site

When you create a site in Microsoft Windows SharePoint Services by using the default Team Site template, the home page includes two default graphics. A Windows SharePoint Services graphic appears in the body of the page, and a picture of a house in a circle appears near the site title. You can change these graphics to customize your site. Changing the smaller graphic requires a Windows SharePoint Services compatible Web page editor

Displaying SharePoint lists in Web Parts

When you create a built-in or custom list in Microsoft Windows SharePoint Services, Windows SharePoint Services creates a Web Part, a basic building block of a SharePoint site, to display that list. These Web Parts are called List View Web Parts. Windows SharePoint Services stores List View Web Parts in the site collection Web Part gallery. (The site collection Web Part gallery is the most central gallery of Web Parts for a work group. By default, the gallery name is the name of the site, such as "Our Team Site Web Part Gallery." )

Take a tour of your SharePoint site

What is a SharePoint site for?
A SharePoint site is a Web site that provides a central storage and collaboration space for documents, information, and ideas. A SharePoint site is a tool for collaboration, just like a telephone is a tool for communication, or a meeting is a tool for decision making. A SharePoint site helps groups of people (whether work teams or social groups) share information and work together. For example, a SharePoint site can help you:

Coordinate projects, calendars, and schedules.
Discuss ideas and review documents or proposals.
Share information and keep in touch with other people.

Six easy ways to customize your site using Web Parts in SharePoint

Becoming familiar with Web Part customization techniques gives you a range of page-customization choices. For example, you can customize your site's home page so that it displays the specific information that your team needs. You can rearrange the list items on the home page, add lists, and even change the images on the home page. As you become more familiar with Web Part Page customization techniques, you can build interactive Web Part Pages that makes the data in lists more dynamic and useful, and you can add new Web Parts that provide access to external data and Web services.

Working with SharePoint document libraries

Document libraries are collections of files that you can share with team members on a Web based on Microsoft Windows SharePoint Services. For example, you can create a library of common documents for a project, and team members can use their Web browsers to find the files, read them, and make comments. Users with Microsoft Office 2003 can check out and edit the files as if they resided on a local or network drive.

By default, your team Web site comes with a built-in document library named Shared Documents, which is listed on the Quick Launch bar as well as on the Documents and Lists page.

Out of the Depths of SharePoint's XML Hell

I described how a new open source tool called sporm significantly simplifies unit testing SharePoint. Making SharePoint unit testable is my absolute favorite feature of sporm because SharePoint is notoriously hard to unit test. But sporm provides other benefits as well and its ability to pull us out of the depths of verbose loosely typed XML hell and into LINQ excellence is next on my list of favorite features. So in this post I'll describe the pre-sporm technique of querying with CAML, how to query data using sporm, and finally how sporm supports SharePoint's unique architecture of allowing multiple content types per list and what that means to you.

Unit Testing SharePoint - Past, Present, and Sporm

As I described in SharePoint: The Wild West of Software Development there is a serious problem when you develop for SharePoint: ensuring quality through unit testing is really, really hard. And that's where a new open source tool just released today called sporm (SharePoint Object Relational Mapper) comes in. While sporm provides many benefits besides simplified unit testing I wanted to focus on this topic first, because sporm's approach, which models the entity framework in the way it supports POCO's, is a unique feature not available with other SharePoint tools like LINQ to SharePoint.

SharePoint Tutorial - Web Parts

A page in SharePoint is comprised of web parts the exist within zones. Web parts are available for just about everything. For example in the page below there are four web part highlighted by different colors. The purple web part displays a short list of the new announcements stored in the annoucements library. The pink web part displays events from a calendar within the site. The green web part displays an image from a location the user specifies. The gray web part displays a list of links from the links list on the site.

SharePoint Tutorial - Team Sites

Team sites are small web sites that are created to store everything about a particular thing. For example a site can be created for a department in an organization like human resources. I site can be created for a particular project. A site can even be created for a meeting. Everything about the thing (department, project, meeting) like documents, lists, calendars, etc. is stored in that site.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend