13.07.2015 Views

Pro SharePoint 2013 Administration - EBook Free Download

Pro SharePoint 2013 Administration - EBook Free Download

Pro SharePoint 2013 Administration - EBook Free Download

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 3 ■ Working with PowerShellTable 3-3. List of Web Application CmdletsCmdletConvert-SPWebApplicationGet-SPWebApplicationNew-SPWebApplicationRemove-SPWebApplicationSet-SPWebApplicationDescriptionConverts the authentication mode of an existing web application from Classicto Claims-Based Authentication (CBA). <strong>SharePoint</strong> 2010 used to allow you tocreate Classic Mode web applications via Central <strong>Administration</strong>, and this Cmdletprovided conversion to CBA after creation. Since the default authentication modein <strong>SharePoint</strong> <strong>2013</strong> is CBA, this Cmdlet comes into play only if you create a ClassicMode web application via PowerShell and then decide to convert to CBA later.Gets an instance of a SPWebApplication object. Pipe the result of this commandto the Format-List Cmdlet to see the properties belonging to the object. Use thisCmdlet with other Cmdlets to make changes to or operate on an existing webapplication in your farm.Creates a new web application in the farm. This Cmdlet takes a number ofparameters, including the content database, application pool managed account, URL,port, etc. Cast back to Chapter 2 when I demonstrated creating a new web applicationvia Central <strong>Administration</strong>—the dialog for creating a new web application containedmany options, all of which are also available to this PowerShell Cmdlet.Deletes an existing web application for all zones or a particular zone. Using thiscommand preserves content databases and, depending on the –DeleteIISSiteparameter, will delete the IIS site entry.Takes in a SPWebApplication object and allows you to set properties on the webapplication. This Cmdlet provides behavior in PowerShell similar to how you canedit an existing web application’s settings via Central <strong>Administration</strong>.Now that I have covered web applications in PowerShell, I shall examine site collections next, followed by sitesand subsites.Site Collections (SPSite)A site collection represents the taxonomy of a web site, and hosts a hierarchy of sites. In Central <strong>Administration</strong>,you create, edit, and delete site collections under the Application Management section. Table 3-4 lists the availableCmdlets; you can see a list of these Cmdlets by executing the following command:Get-Command –Noun SPSiteTable 3-4. List of Site Collection CmdletsCmdletBackup-SPSiteCopy-SPSiteDescriptionPerforms a backup of a site collection to a file on disk. This Cmdlet locks the site collectionwhile the backup process completes. The –UseSqlSnapshot parameter ensures integrity whenbacking up the site collection while allowing users to read and write to the active site collection.Copies a site collection to a new URL and content database. This Cmdlet assumes the abilityto create SQL snapshots and effectively provides the same operation as using the Backup andRestore Cmdlets with SQL snapshot and content database parameters.When copying the site collection, the new site collection has a new unique identifier.(continued)69www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!