Administering Microsoft SharePoint Products and Technologies 2007 Using STSADM

20

description

OFC 312. Administering Microsoft SharePoint Products and Technologies 2007 Using STSADM. Todd Klindt. Session Objectives and Agenda. Introduction to STSADM and how to use it. Common STSADM operations. Backup and restore with STSADM. Advanced operations with STSADM. - PowerPoint PPT Presentation

Transcript of Administering Microsoft SharePoint Products and Technologies 2007 Using STSADM

OFC 312

Administering Microsoft SharePoint Products and Technologies 2007

Using STSADMTodd Klindt

Introduction to STSADM and how to use it

Common STSADM operations

Backup and restore with STSADM

Advanced operations with STSADM

Things that can only be done with STSADM

Session Objectives and Agenda

An Introduction to STSADM

Command line tool on Web front endsMust be run locally by a local administratorNot interactive, makes it a perfect candidate for scriptingHidden in the 12 Hive

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN

Several ways to make it easier to accessAdd to pathCreate cmd.exe shortcutBatch fileEnvironment variable

Common STSADM Operations

There are 184 operations in Microsoft Office SharePoint Server To find an operation, pipe STSADM through findCan be used for some common daily tasks

Site maintenanceCreatesite/ Deletesite/ Enumsites/ Createsiteinnewdb/ Enumsubwebs

Web maintenanceCreateweb/ Deleteweb/ Renameweb

User maintenanceAdduser/ Deleteuser/ Enumusers/ Migrateuser

DEMOSetting Up Your Environment and Common Tasks

Backup and Recovery with STSADM

Can be used to back SharePoint Server at many levels

Backup operation works at the farm levelCompatible with backups made in Central Admin

Backup operation can also back up at the Site Collection levelExport and Import replace smigrate.exe and work at the Web level

More granular than backup and restoreImport does not overwrite destination

Choose the level that is appropriate for the issue you are trying to address, catastrophic recovery or site and document backup

Aaron Finklelstein
SPEAKER: Verify OK?bullet 1: "used to back SharePoint Server"(not "back up"?, and OK addition of "Server" ?)

Scheduling a Backup with STSADM

Since it’s CLI, it’s great for scriptingUse AT.EXE or Task Scheduler to schedule your batch fileSame flexibility, backup farm or individual site collections

Scheduled Task

DEMOBackup and Restore

Can Manipulate Other Objects with STSADM

Use addtemplate and enumtemplate to manipulate templates

Enumtemplate will only show user added templates

Web Parts – Addwppack/ deploywppack/ enumwppacks/ retractwppackFeatures – Activatefeature/ deactivatefeature/ installfeature/ scanforfeatures/ uninstallfeatureSolutions – Addsolution/ deploysolution/ displaysolution/ enumsolutions/ retractsolution/ upgradesolutionContent Databases – Addconentdb/ deletecontentdb/ enumcontentdbs

More Administrative Objects

Managed paths – Addpath/ DeletepathOnly need to add paths, exclusions are gone

Web applications – Extendvs/ unextendvsZones and alternate access mappings – Enumzoneurls/ addzoneurl/ deletezoneurl /geturlzoneManage timer jobs with deletessptimerjobManage web application policies with Managepolicypermissionlevel

Things You Can Only Do with STSADM

A lot of power lies in the Setproperty and Getproperty operations

days-to-show-new-icon sets length of time the New! Icon shows upjob-immediate-alerts sets the polling time for immediate timer jobsmax-template-document-size sets maximum size for site and list templateslarge-file-chunk-size sets the chunk size of blobs between the WFE and the SQL server

execadmsvcjobs to force the Time Job Service to execute your job immediatelycreatesiteinnewdb to create a new Site Collection in its own DB

Mastered STSADM. Now What?

STSADM operations can be added via custom code

Consists of two partsCreate XML file to define new operations in 12\ConfigCreate assembly and place in Global Assembly Cache

Can be deployed as SolutionCouple STSADM with Windows PowerShell

Use PowerShell to parse XML outputUse to loop through STSADM operationsExamples on CodePlex

DEMO

Q&A

ResourcesTechnical Communities, Webcasts, Blogs, Chats & User Groupshttp://www.microsoft.com/communities/default.mspx

Microsoft Developer Network (MSDN) & TechNet http://microsoft.com/msdn http://microsoft.com/technet

Trial Software and Virtual Labshttp://www.microsoft.com/technet/downloads/trials/default.mspx

Microsoft Learning and Certificationhttp://www.microsoft.com/learning/default.mspx

The Microsoft Office SharePoint Conference 2008

March 3rd – 6th 2008 at the Washington State Convention and Trade Center, Seattle, USA

Sign up for more information and registration notification at http://www.mssharepointconference.com

Announcing!

Complete an evaluation on

CommNet and enter to win!

© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market

conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.