8/8/2019 STSADM Automating Admin Oleson
1/44
Important Deadlines and Dates for speakersMay 30 Submit speaker registration form with presentation title and synopsis.(OVERDUE)
July 15 Submit specs, handout material and VPCs for ILLJuly 31 Confirm final speaking schedule, additional engagements (pressinterviews & customer meetings MS internal speakers only)Aug 4 Upload PowerPoint to the SharepointAug 10 FINAL PowerPoint due at 3:00pm or 8.00pm (during PresentersBriefing)
Points of ContactContent Owner: [email protected], [email protected] Manager: [email protected] Owner: [email protected] Coordinator: [email protected]
Continued on next slide
Thank you for committing to speak at Microsofts premier event for ITProfessionals and Developers. Below is important information
regarding your participation as a speaker for TechEd SEA 2008.
mailto:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]8/8/2019 STSADM Automating Admin Oleson
2/44
8/8/2019 STSADM Automating Admin Oleson
3/44
STSADM AutomatingSharePoint
AdministrationJoel OlesonSr. Technical Product Manager/Sr.
ConsultantNintex
Session Code: 322
8/8/2019 STSADM Automating Admin Oleson
4/44
4
Who is Joel Oleson?
7+ Year SharePointVeteran
www.sharepointjoel.co
m
Be my friend:Facebook, Linked in
8/8/2019 STSADM Automating Admin Oleson
5/44
Introduction to Scripted Administration
Creating the Containment Hierarchy
STSADM demo extravaganza
Advanced operations with STSADM
Things that can only be done with STSADM
Session Objectives andAgenda
8/8/2019 STSADM Automating Admin Oleson
6/44
8/8/2019 STSADM Automating Admin Oleson
7/44
Scripted SharePointAdministration
8/8/2019 STSADM Automating Admin Oleson
8/44
PSConfig.exe -?Usage:
PSCONFIG.EXE -cmd [Parameters]PSCONFIG.EXE -help [Command]PSCONFIG.EXE -?
Commands:setup
standaloneconfigconfigdbhelpcollectionssecureresourcesservices
installfeaturesadminvsupgradeevalprovisionapplicationcontent
quiet
8/8/2019 STSADM Automating Admin Oleson
9/44
Setup.exe -?Usage:
SETUP.EXE -cmd [Parameters]SETUP.EXE -help [Command]SETUP.EXE -?
Commands:config [path and full path to file (config.xml)]repair [Product ID]modify [Product ID]uninstall [Product ID]
Example:
C:\MOSS\setup.exe /config C:\MOSS\config.xml
C:\MOSS\setup.exe /uninstall ID (use ID from config.xml)
8/8/2019 STSADM Automating Admin Oleson
10/44
STSADM.EXE -helpUsage:
stsadm.exe -o []
stsadm.exe -help []
Operations:activatefeatureactivateformtemplateaddalternatedomain
addcontentdbaddsolutionbackup...
8/8/2019 STSADM Automating Admin Oleson
11/44
STSADM Usage
8/8/2019 STSADM Automating Admin Oleson
12/44
Common SharePoint CommandLine Tools
8/8/2019 STSADM Automating Admin Oleson
13/44
An Introduction to STSADMCommand line tool on Web front ends
Must be run locally by a local administratorNot interactive, makes it a perfectcandidate for scripting
Hidden in the 12 HiveC:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BINSeveral ways to make it easier to access
Add to path
Create cmd.exe shortcutBatch file
Environment variable
8/8/2019 STSADM Automating Admin Oleson
14/44
Common STSADMOperations
There are 184 operations inMicrosoft Office SharePoint Server
To find an operation, pipe STSADM throughfind
Can be used for some common daily tasksSite maintenance
Createsite/ Deletesite/ Enumsites/ Createsiteinnewdb/ Enumsubwebs
Web maintenanceCreateweb/ Deleteweb/ Renameweb
User maintenanceAdduser/ Deleteuser/ Enumusers/ Migrateuser
8/8/2019 STSADM Automating Admin Oleson
15/44
Common OperationsCreate
DeleteEnum (Enumerate or Provide List in XML)
Rename
AddRetract
Set
Get
UpdateUpgrade
8/8/2019 STSADM Automating Admin Oleson
16/44
Create Web
Application
C t i t Hi h
8/8/2019 STSADM Automating Admin Oleson
17/44
Containment Hierarchy
STSAd C t /Add
8/8/2019 STSADM Automating Admin Oleson
18/44
STSAdm Create/AddOperations
STSAd M i t
8/8/2019 STSADM Automating Admin Oleson
19/44
STSAdm MaintenanceOperations
8/8/2019 STSADM Automating Admin Oleson
20/44
Backup and Recovery withSTSADM
Can be used to back up SharePoint Serverat 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 andwork at the Web level
More granular than backup and restore
Import does not overwrite destination
8/8/2019 STSADM Automating Admin Oleson
21/44
Scheduling a Backup withSTSADM
Use AT.EXE or Task Scheduler to scheduleyour batch file
Backup farm orindividual site collections
8/8/2019 STSADM Automating Admin Oleson
22/44
Scheduled Task
8/8/2019 STSADM Automating Admin Oleson
23/44
23
Understand the Scope
8/8/2019 STSADM Automating Admin Oleson
24/44
Can Manipulate OtherObjects with STSADM
Use addtemplate and enumtemplateto manipulate templates
Enumtemplate will only show user added templates
Web Parts Addwppack/ deploywppack/enumwppacks/ retractwppack
Features Activatefeature/ deactivatefeature/installfeature/ scanforfeatures/ uninstallfeature
Solutions Addsolution/ deploysolution/
displaysolution/ enumsolutions/retractsolution/ upgradesolution
Content Databases Addconentdb/deletecontentdb/ enumcontentdbs
8/8/2019 STSADM Automating Admin Oleson
25/44
More AdministrativeObjects
Managed paths Addpath/ DeletepathOnly need to add paths, exclusions are gone
Web applications Extendvs/ unextendvs
Zones and alternate access mappings
Enumzoneurls/ addzoneurl/deletezoneurl /geturlzone
Manage timer jobs with deletessptimerjob
Manage web application policies withManagepolicypermissionlevel
8/8/2019 STSADM Automating Admin Oleson
26/44
Things You Can Only Dowith STSADM
A lot of power lies in the Setproperty andGetproperty operationsdays-to-show-new-icon sets length oftime the New! Icon shows up
job-immediate-alerts sets the polling timefor immediate timer jobs
max-template-document-size sets maximumsize for site and list templates
large-file-chunk-size sets the chunk size of blobs betweenthe WFE and the SQL server
execadmsvcjobs to force the Time Job
Serviceto execute your job immediately
createsiteinnewdb to create a newSite Collection in its own DB
8/8/2019 STSADM Automating Admin Oleson
27/44
8/8/2019 STSADM Automating Admin Oleson
28/44
Mastered STSADM. NowWhat?
STSADM Extensions are the answerOperations can be added via solutiondeployments (.wsp)
Consists of two parts
Create XML file to define new operations in 12\ConfigCreate assembly and place in Global Assembly Cache
Couple STSADM with Windows PowerShellUse PowerShell to parse XML output
Use to loop through STSADM operations
Examples on CodePlex
8/8/2019 STSADM Automating Admin Oleson
29/44
Powershell with SharePointAdmin
Codeplex Powershell SharePoint ProviderCodeplex.com/PSSharePoint
IIS 7 cmdlets
Windows 2008 Admin cmdlets
Caution: All of the dispose rules apply to
powershell.
8/8/2019 STSADM Automating Admin Oleson
30/44
Resources
TechNet STSADM Reference and PosterMinsharp STSADM References (premiumcontent) Mindsharp.com
Todd Klindt MVP blog
Ben CurrysSharePoint AdminCompanion (MS Press Book)
Gary Lapoints STSADM extensions
http://technet.microsoft.com/en-us/library/cc261956.aspxhttp://go.microsoft.com/fwlink/?LinkId=120150&clcid=0x409http://www.toddklindt.com/bloghttp://mindsharpblogs.com/Benhttp://stsadm.blogspot.com/2007/08/stsadm-commands_09.htmlhttp://stsadm.blogspot.com/2007/08/stsadm-commands_09.htmlhttp://mindsharpblogs.com/Benhttp://www.toddklindt.com/bloghttp://go.microsoft.com/fwlink/?LinkId=120150&clcid=0x409http://technet.microsoft.com/en-us/library/cc261956.aspx8/8/2019 STSADM Automating Admin Oleson
31/44
8/8/2019 STSADM Automating Admin Oleson
32/44
Thank YOU!!!
8/8/2019 STSADM Automating Admin Oleson
33/44
33
Notes
In addition to the Walk-in and Title slides, thefollowing slides are required Please add to your content and include these in
your final presentation
NEXT:
8/8/2019 STSADM Automating Admin Oleson
34/44
Resources
www.techedsea.comEvent photos, presentation slides
http://www.microsoft.com/ malaysia/technet/Evaluation licenses, pre-released products, and MORE!
http://www.microsoft.com/malaDevelopers Kit, Licenses,and MORE!
http://blogs.msdn.com/malaysia
MSDN Malaysia Blog
http://blogs.msdn.com/tolongBlog about all things .NET
http://www.techedsea.com/http://www.microsoft.com/malaysia/technet/http://www.microsoft.com/malaysia/msdn/http://blogs.msdn.com/malaysiahttp://blogs.msdn.com/tolonghttp://blogs.msdn.com/tolonghttp://blogs.msdn.com/malaysiahttp://www.microsoft.com/malaysia/msdn/http://www.microsoft.com/malaysia/technet/http://www.techedsea.com/8/8/2019 STSADM Automating Admin Oleson
35/44
Participating Microsoft Certified Partners forLearning Solutions
VISIT the MS Learning Pavilion & MS Press booth for greatTraining & Certification offers
SIGN-UP for Training, MS Press & Certification offers and
enjoy the following Check-out the MS Learning Offer Pack in your event kit for
EXCLUSIVE offers FREE MeasureUp Practice Test worth US$50 each Daily lucky draws of prizes worth RM2,000
ATTEND Microsoft Learning sessions and win mysteryprizes : New Generation of Certification Track @ 2:15 3:00pm | 12 August
| Room 302-303 Light & Easy with Microsoft Learning on 11-13 August | TechEd
After Hours
8/8/2019 STSADM Automating Admin Oleson
36/44
Download presentationDownload presentationslidesslides
Presentation slides will bePresentation slides will beavailable for download atavailable for download at
the Techthe TechEd Internet Caf orEd Internet Caf orafter the event at:after the event at:
www.techedsea.comwww.techedsea.com
http://www.techedsea.com/http://www.techedsea.com/http://www.techedsea.com/http://www.techedsea.com/8/8/2019 STSADM Automating Admin Oleson
37/44
Did you like this session?Did you like this session?
Please complete the trackPlease complete the trackevaluation form and return it toevaluation form and return it to
the track managers on yourthe track managers on yourway outway out
You may be a lucky winner ofYou may be a lucky winner of
some cool prizes!some cool prizes!
l f db k
8/8/2019 STSADM Automating Admin Oleson
38/44
We value your feedback!We value your feedback!Please remember to completePlease remember to completethe overall conferencethe overall conference
evaluation form (in your bag)evaluation form (in your bag)and return it to the Handoutand return it to the HandoutCounter on the last day inCounter on the last day in
return for:return for:
Windows Server 2008Windows Server 2008
Evaluation kitEvaluation kit Visual Studio 2008 EvaluationVisual Studio 2008 Evaluationkitkit
** Evaluation kits will be given out on a first-come-first-serve basis,** Evaluation kits will be given out on a first-come-first-serve basis,while supplies lastwhile supplies last
8/8/2019 STSADM Automating Admin Oleson
39/44
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 respondto 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
8/8/2019 STSADM Automating Admin Oleson
40/44
Demo Title
NameTitle
Company
Slid f Sh i S f
8/8/2019 STSADM Automating Admin Oleson
41/44
Slide for Showing SoftwareCodeUse this layout to show software code
The font is Consolas, a monospace fontThe slide doesnt use bullets but levels can be indented usingthe Increase List Level icon on the Home menuTo use straight quotes " instead ofsmart quotes , do this:1.Click on the Office Button in the upper left corner2.At the bottom of the menu, choose PowerPoint Options3.From the left pane, select Proofing4.Click on the AutoCorrect Options button5.Select the AutoFormat As You Type tab,and deselect Straight quotes with smartquotes. Then Click OK.
T bl F t
8/8/2019 STSADM Automating Admin Oleson
42/44
Table FormatTable TitleTable Title
Column 1Column 1 Column 2Column 2 Column 3Column 3 Column 4Column 4 Column 5Column 5
B Ch t E l
8/8/2019 STSADM Automating Admin Oleson
43/44
Bar Chart Example
Pi Ch t E l
8/8/2019 STSADM Automating Admin Oleson
44/44
Pie Chart Example