SharePoint Tips

  • Importing & Exporting sites in SharePoint 2010 using Powershell

    Niklas Goude -Expert in Residence In SharePoint 2010 you can import and export sites, lists, document libraries and items using Export-SPWeb and Import-SPWeb. Here’s how you export a site in SharePoint 2010: Export-SPWeb http: // SP / TeamSite –Path C:\Backup\ website.bak If you only want to export a list in a site you can use –ItemUrl parameter as shown below: Export-SPWeb http: // SP / TeamSite -ItemUrl “Lists / Announcements”...
  • Using backups and exports to copy site collections

    Sean McDonough -Expert in Residence SharePoint offers two approaches to generating a site collection copy. The first approach, a site collection backup, is commonly carried out using either STSADM.exe –o backup –url <urL> or through the Backup-SPSite cmdlet in SharePoint 2010. The other approach, a site collection export, is invoked through either STSADM.exe –o export or the Export-SPWeb cmdlet in SharePoint 2010. Though both...
  • Managing Users in SharePoint 2010 using Powershell

    Niklas Goude -Expert in Residence SharePoint 2010 includes three cmdlets that you can use to manage users in SharePoint 2010. Here’s an example on adding a new user: New-SPUser "XYZ\david" -Web http: // SP -PermissionLevel "Contribute" The example above adds the user “david” to the specified site and sets the user permissions to contribute. You can retrieve an existing user through the Get-SPUser cmdlet: Get-SPUser...
  • Display The Left Navigation Menu

    Anjali Sharma -Expert in Residence The left navigation menu is available out of the box and can also be customized by the navigation settings in the site settings menu. By default, the left navigation does not appear in a web part page. To show the left navigation, customize the page in SharePoint Designer via these simple steps – Delete or comment out these tags : <SharePoint:UIVersionedContent ID="WebPartPageHideQLStyles" UIVersion...
  • Take control over checked-out documents in SharePoint 2007

    Mattias Karlsson -Expert in Residence A popular and useful feature in SharePoint is the check-in and check-out feature. However, there are situations where documents never get checked-in again that could cause problems for end-users. As a user with Full Control, you are able to view and take control over checked- out documents. Go to Settings and Document library settings in the document library where you have the checked-out document or documents...
  • SharePoint 2010 Remote using PowerShell

    Niklas Goude -Expert in Residence Windows PowerShell v2 includes remote functionality through the Windows Remote Management. The Windows Remote Management is Microsoft’s implementation of the WS-Management console protocol, which is a SOAP based protocol. In order to run Windows PowerShell remote you have to enable Windows Remote Management on the Server running SharePoint 2010 and the client that you want to run the commands from. Enable-PSRemoting...
  • Quick Way to the SharePoint Root Folder

    Niklas Goude -Expert in Residence If you use SharePoint on a daily basis, you are probably familiar with the SharePoint hive. In SharePoint 2010, the hive is called the SharePoint root. The SharePoint root is used by SharePoint to store features, logs, binary files, templates and much more. It’s commonly used when performing administrative tasks in SharePoint. Changing location to the path is fun, the first time, but after typing the path 100...
  • Adding Content Type Fields Using PowerShell

    Niklas Goude -Expert in Residence You can use Windows PowerShell to add Content Type Fields to a Content Type in SharePoint 2010. You can start by retrieving a specific Web site: PS > $spWeb = Get-SPWeb http : // SP01.powershell.nu Next, you can store the Web site Field Collection in a variable: PS > $fields = $spWeb . Fields Now, you can add a New Content Type Field to your Web site using the Add() method. Note that when you specify the Field’s...
  • Remove the header and navigation areas from a printed SharePoint page

    Anjali Sharma -Expert in Residence By default, when you print a SharePoint page, the header and navigation areas print as well, which is typically undesired. This can be overcome by adding a few CSS statements to the master page or to the CSS file used by the website. @media print { /* for SharePoint 2010 environment */ #s4-titlerow, #s4-statusbarcontainer, #s4-topheader2 { display:none; visibility: hidden; } #s4-leftpanel { display:none; visibility...
  • Mapping Drives to Document Libraries

    Kenneth Lo -Expert in Residence Certain applications, including Microsoft Visual Studio, require the files to be saved to a disk drive. How delighted would you be if I revealed how to use SharePoint document libraries as mapped drives? Let’s find out! 1. Open Windows Explorer 2. Right-click on My Computer 3. Click on Map network drive 4. Pick a drive letter 5. In the Folder field, fill in the URL of your document library 6. You are done and...
  • Backup & Restore Site Collections in SharePoint 2010 using Powershell

    Niklas Goude -Expert in Residence In SharePoint 2010 you can take a backup of a site collection using the Backup-SPSite cmdlet: Backup-SPSite http: // SP –Path C:\Backup\ siteCollection.bak Restoring a site collection in SharePoint 2010 is just as simple: Restore-SPSite http: // SP –Path C:\Backup\ siteCollection.bak ReTweet this Tip!
  • Export a list in SharePoint 2010 using PowerShell

    Mattias Karlsson -Expert in Residence If you want to export a list in SharePoint 2010 using PowerShell, you can use the PowerShell cmdlet Export-SPWeb. In this example, we export the document library “Documents” located in our root site, including all versions and permissions. Export-SPWeb http: // youSPSite / -path "D:\backup\Documents.cmp" ` -ItemUrl / Documents -IncludeVersions All –IncludeUserSecurity ReTweet this Tip...
  • Managing Content Databases in SharePoint 2010 using cmdlets

    Niklas Goude -Expert in Residence In SharePoint 2010 you can manage content databases through Windows PowerShell. You can create new content database using the New-SPContentDatabse cmdlet: New-SPContentDatabase -Name "MyContentDB" ` -WebApplication http: // SP The example above creates a new content database named “MyContentDB” and attaches it to the specified web application. You can retrieve an existing content database the...
  • Updating Web Parts Using PowerShell

    Niklas Goude -Expert in Residence You can use Windows PowerShell when updating Web Parts on a SharePoint 2010 Web site. First, you can retrieve a specific Web site: PS > $spWeb = Get-SPWeb http : // SP01.powershell.nu Next, retrieve the Site page that contains the Web Part and check it out: PS > $sitePages = $spWeb . GetFolder ( "SitePages" ) PS > $homeASPX = $sitePages . Files | >> Where-Object { $_ . Name -eq "Home...
  • Adding Content Types using PowerShell

    Niklas Goude -Expert in Residence You can use Windows PowerShell to add Content Types to a Web site in SharePoint 2010. You can start by retrieving a specific Web site: PS > $spWeb = Get-SPWeb http : // SP01.powershell.nu You can use the Available Content Types property to see which Content Types are available on your Web site. You’ll also need to retrieve a Content Type from which the one you are creating will be derived: PS > $spWeb...
1 2 3 4 5 Next > ... Last »
Idera SharePoint Reviews SMBology, Inc. Rackspace Hosting Sponsored by Idera and SharePoint Reviews and SMBology and EPCGroup.net
Copyright 2011 SecretsOfSharePoint.com. All rights reserved.