Date post: | 28-Dec-2015 |
Category: |
Documents |
Upload: | regina-mckenzie |
View: | 214 times |
Download: | 0 times |
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
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 restore
Import 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
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
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 up
job-immediate-alerts sets the polling time for immediate timer jobs
max-template-document-size sets maximum size for site and list templates
large-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\Config
Create assembly and place in Global Assembly Cache
Can be deployed as Solution
Couple STSADM with Windows PowerShellUse PowerShell to parse XML outputUse to loop through STSADM operationsExamples on CodePlex
Resources
Technical 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!
© 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.