administering microsoft sharepoint products and technologies 2007 using stsadm todd klindt windows...

19

Upload: winfred-oneal

Post on 28-Dec-2015

234 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Administering Microsoft SharePoint Products and Technologies 2007 Using STSADM Todd Klindt Windows SharePoint Services MVP Solanite Consulting, Inc. todd@solanite.com
Page 2: Administering Microsoft SharePoint Products and Technologies 2007 Using STSADM Todd Klindt Windows SharePoint Services MVP Solanite Consulting, Inc. todd@solanite.com

Administering Microsoft SharePoint Products and Technologies 2007 Using STSADMTodd KlindtWindows SharePoint Services MVPSolanite Consulting, [email protected]

Page 3: Administering Microsoft SharePoint Products and Technologies 2007 Using STSADM Todd Klindt Windows SharePoint Services MVP Solanite Consulting, Inc. todd@solanite.com

WSS MVP since 2006Speaker, writer, consultant, aquariusPersonal Blogwww.toddklindt.com/blogCompany web [email protected]

Stayed up too late last night.

Who is this Todd guy?

Page 4: Administering Microsoft SharePoint Products and Technologies 2007 Using STSADM Todd Klindt Windows SharePoint Services MVP Solanite Consulting, Inc. todd@solanite.com

Introduction to STSADM and how to use itCommon STSADM operationsBackup and restore with STSADMAdvanced operations with STSADMThings that can only be done with STSADMWhat to do when you have mastered STSADMTalk about how incredibly tall the Burj Dubai is

Session Objectives And Agenda

Page 5: Administering Microsoft SharePoint Products and Technologies 2007 Using STSADM Todd Klindt Windows SharePoint Services MVP Solanite Consulting, Inc. todd@solanite.com

Command line tool on SharePoint serversMust 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

An Introduction to STSADM

Page 6: Administering Microsoft SharePoint Products and Technologies 2007 Using STSADM Todd Klindt Windows SharePoint Services MVP Solanite Consulting, Inc. todd@solanite.com

There are 184 operations in MOSSTo find an operation, pipe STSADM through findCan be used for some common daily tasksSite maintenance

Createsite/ Deletesite/ Enumsites/ Createsiteinnewdb/ Enumsubwebs

Web maintenanceCreateweb/ Deleteweb/ Renameweb

User maintenanceAdduser/ Deleteuser/ Enumusers/ Migrateuser

Common STSADM Operations

Page 7: Administering Microsoft SharePoint Products and Technologies 2007 Using STSADM Todd Klindt Windows SharePoint Services MVP Solanite Consulting, Inc. todd@solanite.com

Setting up your environment and common tasks

demo

Page 8: Administering Microsoft SharePoint Products and Technologies 2007 Using STSADM Todd Klindt Windows SharePoint Services MVP Solanite Consulting, Inc. todd@solanite.com

Can be used to backup SharePoint at many levelsBackup operation works at the farm level

Compatible 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

Backup and recovery with STSADM

Page 9: Administering Microsoft SharePoint Products and Technologies 2007 Using STSADM Todd Klindt Windows SharePoint Services MVP Solanite Consulting, Inc. todd@solanite.com

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

Scheduling a backup with STSADM

Page 10: Administering Microsoft SharePoint Products and Technologies 2007 Using STSADM Todd Klindt Windows SharePoint Services MVP Solanite Consulting, Inc. todd@solanite.com

Scheduled Task

Page 11: Administering Microsoft SharePoint Products and Technologies 2007 Using STSADM Todd Klindt Windows SharePoint Services MVP Solanite Consulting, Inc. todd@solanite.com

Backup and Restore

demo

Page 12: Administering Microsoft SharePoint Products and Technologies 2007 Using STSADM Todd Klindt Windows SharePoint Services MVP Solanite Consulting, Inc. todd@solanite.com

Use addtemplate and enumtemplate to manipulate templatesEnumtemplate will only show user added templatesWeb Parts – Addwppack/ deploywppack/ enumwppacks/ retractwppackFeatures – Activatefeature/ deactivatefeature/ installfeature/ scanforfeatures/ uninstallfeatureSolutions – Addsolution/ deploysolution/ displaysolution/ enumsolutions/ retractsolution/ upgradesolutionContent Databases – Addconentdb/ deletecontentdb/ enumcontentdbs

Can Manipulate other objects with STSADM

Page 13: Administering Microsoft SharePoint Products and Technologies 2007 Using STSADM Todd Klindt Windows SharePoint Services MVP Solanite Consulting, Inc. todd@solanite.com

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

More administrative objects

Page 14: Administering Microsoft SharePoint Products and Technologies 2007 Using STSADM Todd Klindt Windows SharePoint Services MVP Solanite Consulting, Inc. todd@solanite.com

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

Things you can only do with STSADM

Page 15: Administering Microsoft SharePoint Products and Technologies 2007 Using STSADM Todd Klindt Windows SharePoint Services MVP Solanite Consulting, Inc. todd@solanite.com

execadmsvcjobs to force the Time Job Service to execute your job immediatelycreatesiteinnewdb to create a new Site Collection in its own DBMergecontentdbs to move Site Collections aroundSetadminport to change Central Admin portDatabaserepair to clean out orphaned objects

More things you can only do with STSADM

Page 16: Administering Microsoft SharePoint Products and Technologies 2007 Using STSADM Todd Klindt Windows SharePoint Services MVP Solanite Consulting, Inc. todd@solanite.com

STSADM operations can be added via custom code

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

Can be deployed as SolutionCouple STSADM with PowerShell

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

Mastered STSADM. Now What?

Page 17: Administering Microsoft SharePoint Products and Technologies 2007 Using STSADM Todd Klindt Windows SharePoint Services MVP Solanite Consulting, Inc. todd@solanite.com

My Bloghttp://www.toddklindt.com/blog

Real World SharePointhttp://www.wrox.com/WileyCDA/WroxTitle/productCd-0470168358.html

STSADM article in TechNet Magazinehttp://www.microsoft.com/technet/technetmag/issues/2007/01/CommandPrompt/

Gary LaPointe’s STSADM extensionshttp://stsadm.blogspot.com

STSADM Extension projecthttp://www.codeplex.com

STSADM White Paper http://www.mindsharp.com

Resources

Page 18: Administering Microsoft SharePoint Products and Technologies 2007 Using STSADM Todd Klindt Windows SharePoint Services MVP Solanite Consulting, Inc. todd@solanite.com

Questions?

Page 19: Administering Microsoft SharePoint Products and Technologies 2007 Using STSADM Todd Klindt Windows SharePoint Services MVP Solanite Consulting, Inc. todd@solanite.com

© 2008 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.