Date post: | 28-Dec-2015 |
Category: |
Documents |
Upload: | winfred-oneal |
View: | 229 times |
Download: | 0 times |
Administering Microsoft SharePoint Products and Technologies 2007 Using STSADMTodd KlindtWindows SharePoint Services MVPSolanite Consulting, [email protected]
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?
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
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
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
Setting up your environment and common tasks
demo
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
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
Scheduled Task
Backup and Restore
demo
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
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
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
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
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?
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
Questions?
© 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.