SlideShare a Scribd company logo
1 of 13
MONITORING AND MAINTAINING SHAREPOINT
SERVER
Course: SharePoint 2013 for Administrators and IT Pro's | Akrura Technologies
By : Isha Kapoor
SharePoint MVP, Author, Trainer and Founder
http://www.akruratechnologies.com/
http://www.learningsharepoint.com/ | @LearningSP
SharePoint
OUTLINE…
• Introduction to STSADM
• Adding Solutions, Features using STSADM
• BackupRestore and ImportExport using STSADM
• Introduction to Windows PowerShell
• Installing Solution packages (WSPs) using Windows PowerShell
• Advanced reporting and Analysis using Windows PowerShell
• BackupRestore, ImportExport SharePoint sites using Windows PowerShell
• Configure diagnostic logging in SharePoint 2013
• Developer Dashboard in SharePoint 2013
INTRODUCTION TO STSADM
What is STSADM?
All SharePoint Servers includes Stsadm tool for command-line administration of Office SharePoint Server
servers and its sites.
Stsadm is located at the following path on the drive where SharePoint & Products is installed:
%COMMONPROGRAMFILES%microsoft sharedweb server extensions12bin
What permissions are needed to use STSADM?
You must be an administrator on the local computer to use Stsadm. It is recommended to run STSADM with
Farm account to get full access to the commands. The tool STSADM must be run on the server itself.
STSADM Commands are made up of two parts
• Operation – These are SharePoint Operations that you will use to administrator siteslistslibraries,
permissions etc.
• Parameters – These are switches that can be used with Stsadm Operations.
Syntax :
-operation OperationName -parameter value
What are SharePoint Solution Packages?
Any component that you want to Install in a SharePoint server must be added as a Solution Package or a WSP package (that
has an extension .wsp). A Solution package is generally made up of a set of files that defines the components being installed on
the server. For example, a typical solution package can be for deploying a Custom WebPart, a Feature, a Custom Action etc.
A Solution package is a Single file but site admins can view Individual files in a .wsp by making a copy of it and renaming it as a
.cab extension.
Solution Store – Every SharePoint Farm has a Solution Store (also known as Solutions or Farm Solutions) where all the
Solution packages or WSPs are installed. You can find the Solution Store in Central Admin under Operations.
Adding a Solution - Adding a Solution is done in two parts : Installing and Deploying.
Installing Solution - Installing a Solution means adding it in a Solutions store on the farm. An STSADM Command addsolution is
generally used to add a Solution into a Solution store.
stsadm -o addsolution -filename <solution file path>
Deploying Solution - Deploying a Solution means scoping a solutions to one or more Web applications. An STSADM Command
deploysolution is generally used to deploy a Solution to one or more Web applications.
stsadm -o deploysolution -name <solution name> -url <URL of Web application> [-allowgacdeployment]
ADDING SOLUTIONS, FEATURES USING STSADM
What are Features?
Every Solution package that deploys a component contains a Feature for that Component.
In simple words, A Feature defines the component and a solution package bundles up a feature and all the supporting files that
needs to be deployed.
Feature Scope - A feature can be scoped to the following
• Farm
• Web application
• Site Collection
• Site
Adding a Feature - Adding a Feature is done in two parts : Installing and Activating.
Installing Feature - Installing a Feature makes its definition and elements known throughout a server farm.
stsadm -o addsolution -filename <solution file path>
Farm-scoped features are also automatically activated during this stage.
Activating Feature - Activating the Feature makes the Feature available at a particular scope.
stsadm -o activatefeature {-filename <path to Feature.xml> | -name <feature folder> } -url <URL of Web applicationSite
Collection>
ADDING FEATURES USING STSADM
BACKUPRESTORE AND IMPORTEXPORT USING STSADM
BackupRestore - STSADM backuprestore are popular commands used for backup and restore of a SharePoint site collection or a Web
application.
Syntax :
stsadm -o backup -url <URL of Web application> -filename <backup file path extension .bak>
stsadm -o restore -url <URL of Web application> -filename <backup file path extension .bak>
Benefits -
• Moving a Site Collection from one Content database to another.
• With BackupRestore stsadm command all SharePoint Designer Workflows gets moved without any issues.
• Moving a Site Collection with BackupRestore stsadm command, the actual Content get moved. That means it leaves behind the heavy
Audit Logs, Workflow history list etc.
ImportExport - STSADM ImportExport Commands are generally used to move a Subsite or Web but it can also export a site collection, web
application or even a list.
Syntax :
stsadm -o export -url <URL of Web application> -filename <backup file path>
stsadm -o import -url <URL of Web application> -filename <backup file path>
STSADM BACKUP/RESTORE VS IMPORTEXPORT
Stsadm backup/restore Stsadm export/import
BackupRestore a Site Collection or a Web application. Exports data of a Subsite, site collection, an entire web
application, or a single list.
The GUID of all items in a Site Collection is preserved except the
GUID of the Site collection itself. When you restore the backup,
SharePoint generates a new GUID for the site collection.
It generates a new GUID for every objects such as sites, sub
sites, lists and items.
Because of the same Guid, you can restore in the same web
application or farm but in a different Content database.
Because of the new Guid, you can restore or import the data in
the same site collectionsite or web application and it does not
matter on which content database you run import operation.
This operation is designed to take an exact copy of a site collection,
no data will be changed, transformed or lost.
This operation is good for merging content of sites, and decide
how to handle identical data between source and target.
All workflows instances, associations, history and tasks are
preserved.
A major drawback of this operation is that it does not preserves
workflows instances, associations, history and tasks. Every
workflow association must be recreated and there is no way to
restore the running instances from original site.
INTRODUCTION TO WINDOWS POWERSHELL
What is Windows PowerShell?
“Windows PowerShell is a command-line scripting tool that provides an administrator full access to applicable application programming
interfaces (APIs). Administrators can use Windows PowerShell to interact directly with SharePoint-based web applications, site collections,
sites, lists, and more.
To run SharePoint Commands with PowerShell you need to add the below SharePoint Snap-In first.
Add-PSSnapin Microsoft.SharePoint.Powershell
What permissions are needed to use PowerShell?
A user must be a member of the SharePoint_Shell_Access role on the configuration database and a member of the WSS_ADMIN_WPG
local group on the computer where SharePoint is installed.
PowerShell Commands can be made up the following :
Get-Command - The Get-Command cmdlet gets commands in the session, such as aliases, functions, filters, scripts, and applications.
Get-Member - The Get-Member cmdlet gets the "members" (properties and methods) of objects.
Get-Help - The Get-Help cmdlet displays information about Windows PowerShell concepts and commands, including cmdlets, providers,
functions, aliases and scripts. To get a list of all cmdlet help topic titles, type get-help *
Pipelines - PowerShell uses Pipelines to filter commands and display the desired results. When you “pipe” an object from one part of a
command to another, you’re simply passing that object - unchanged - from one part of the command to another.
For Complete SharePoint 2013 PwerShell cmdlets list see : http://technet.microsoft.com/library/ff678226%28office.15%29.aspx
Examples of Get-Command
Get-SPWebApplication - The Get-SPWebApplication cmdlet returns all Web applications that match the scope given by the Identity
parameter. The Identity can be the name of the name, URL, or GUID of the Web application. If no Identity is specified, all Web applications are
returned.
Get-SPWebApplication -Identity <URL of Web application>
Get-SPSite - Returns all site collections that match the specified criteria.
Get-SPSite -Identity <URL of Site Collection>
* -Identity specifies the Name, URL, or GUID of the Item
* -Limit All displays all results instead of a limited items.
Example : To get all Site Collections of a Web Application.
Get-SPWebApplication <URL of Web application> | Get-SPSite -Limit All
Example : To get all SubSites in a all Site Collections of a Web Application.
Get-SPWebApplication <URL of Web application> | Get-SPSite -Limit All | Get-SPWeb -Limit All
If you have to get Subsites for a Specific Site Collection in a Web application, then use Where Object for a Command in a Pipe.
Get-SPWeb - Returns all Subsites in a Site collection that match the specified criteria.
Get-SPWeb -site <URL of Site Collection>
Examples of Pipelines
Select Pipeline : Lets you select the properties of an Object
Get-SPSite | select url, Title
Get-SPSite | get-member
Where-Object Pipeline :
Get-SPSite -Limit All | Where-Object {$_.Url -eq “<URL of Site Collection>”}
Get-SPSite -Limit All | Where-Object {$_.Url -like “* SiteColl”} | Get-SPWeb -Limit All | select url, Title
$sites = Get-SPSite | select url, Title | Where-Object {$_.Url -like "* SiteColl"}
foreach ($site in $sites) {
Write-Host $site
}
ForEach-Object Pipeline :
Get-SPSite -Limit All | ForEach-Object {$_.URL, ($_.Usage.Storage/1024/1024)}
Get-SPSite -Limit All | ForEach-Object {$_.URL, ($_.Quota.StorageMaximumLevel/1000000)}
Output Options -
| Out-string C:output.csv
| Out-GridView -Title “Window Name”
INSTALLING SOLUTION PACKAGES (WSPS) USING
WINDOWS POWERSHELL
Add-SPSolution - Uploads a SharePoint solution package to the farm.
Add-SPSolution -LiteralPath c:solution.wsp
Install-SPSolution - Deploys an installed SharePoint solution in the farm.
Install-SPSolution -Identity solution.wsp -GACDeployment -CompatibilityLevel {14,15}
ADVANCED REPORTING AND ANALYSIS USING WINDOWS
POWERSHELL
Examples -
Get all Sites where URL contains the word IT
$sites = Get-SPSite | Where-Object {$_.Url -like "*IT*"}
foreach ($site in $sites) {
Write-Host "Site is SPSite Url=$site"
To report usage and quota of your site collections:
Get-SPSite | Select URL, @{Name=”Storage”; Expression={“{0:N2} MB” -f($_.Usage.Storage/1000000)}},
@{Name=”Quota”; Expression={“{0:N2} MB” -f($_.Quota.StorageMaximumLevel/1000000)} } | Out-GridView -Title “Sites
with Usage”
WE ARE HERE TO
HELP.
Questions?

More Related Content

What's hot

Migrating to SharePoint 2013 - Business and Technical Perspective
Migrating to SharePoint 2013 - Business and Technical PerspectiveMigrating to SharePoint 2013 - Business and Technical Perspective
Migrating to SharePoint 2013 - Business and Technical PerspectiveJohn Calvert
 
SharePoint Performance: Best Practices from the Field
SharePoint Performance: Best Practices from the FieldSharePoint Performance: Best Practices from the Field
SharePoint Performance: Best Practices from the FieldJason Himmelstein
 
Back to the Basics: SharePoint Fundamentals by Joel Oleson
Back to the Basics: SharePoint Fundamentals by Joel OlesonBack to the Basics: SharePoint Fundamentals by Joel Oleson
Back to the Basics: SharePoint Fundamentals by Joel OlesonJoel Oleson
 
SharePoint 2013 Performance Analysis - Robi Vončina
SharePoint 2013 Performance Analysis - Robi VončinaSharePoint 2013 Performance Analysis - Robi Vončina
SharePoint 2013 Performance Analysis - Robi VončinaSPC Adriatics
 
2014-02-22 - IT Pro Camp - SharePoint 2013, A Brief Overview of Capability
2014-02-22 - IT Pro Camp - SharePoint 2013, A Brief Overview of Capability2014-02-22 - IT Pro Camp - SharePoint 2013, A Brief Overview of Capability
2014-02-22 - IT Pro Camp - SharePoint 2013, A Brief Overview of CapabilityDan Usher
 
O365con14 - sharepoint 2013 and office 365 upgrade and migration
O365con14 - sharepoint 2013 and office 365 upgrade and migrationO365con14 - sharepoint 2013 and office 365 upgrade and migration
O365con14 - sharepoint 2013 and office 365 upgrade and migrationNCCOMMS
 
SharePoint 2010 Upgrade Planning
SharePoint 2010 Upgrade PlanningSharePoint 2010 Upgrade Planning
SharePoint 2010 Upgrade PlanningChaitu Madala
 
Hexa Corp Share Point Capabilities Presentation
Hexa Corp Share Point Capabilities PresentationHexa Corp Share Point Capabilities Presentation
Hexa Corp Share Point Capabilities Presentationsrgk27
 
Migrate SharePoint 2016 To SharePoint 2019 Environment Using Content Database...
Migrate SharePoint 2016 To SharePoint 2019 Environment Using Content Database...Migrate SharePoint 2016 To SharePoint 2019 Environment Using Content Database...
Migrate SharePoint 2016 To SharePoint 2019 Environment Using Content Database...Softree Technology Pvt. Ltd
 
SharePoint 2016 Adoption - Lessons Learned and Advanced Troubleshooting
SharePoint 2016 Adoption - Lessons Learned and Advanced TroubleshootingSharePoint 2016 Adoption - Lessons Learned and Advanced Troubleshooting
SharePoint 2016 Adoption - Lessons Learned and Advanced TroubleshootingJohn Calvert
 
SharePoint Connections Coast to Coast Overview of Enterprise Content Management
SharePoint Connections Coast to Coast Overview of Enterprise Content ManagementSharePoint Connections Coast to Coast Overview of Enterprise Content Management
SharePoint Connections Coast to Coast Overview of Enterprise Content ManagementIvan Sanders
 
SoCalCodeCamp SharePoint Server 2010 a Developer Platform
SoCalCodeCamp SharePoint Server 2010 a Developer PlatformSoCalCodeCamp SharePoint Server 2010 a Developer Platform
SoCalCodeCamp SharePoint Server 2010 a Developer PlatformIvan Sanders
 
Share point 2010_overview-day4-code
Share point 2010_overview-day4-codeShare point 2010_overview-day4-code
Share point 2010_overview-day4-codeNarayana Reddy
 
Best Practices to SharePoint Architecture Fundamentals NZ & AUS
Best Practices to SharePoint Architecture Fundamentals NZ & AUSBest Practices to SharePoint Architecture Fundamentals NZ & AUS
Best Practices to SharePoint Architecture Fundamentals NZ & AUSguest7c2e070
 
MinRole and SharePoint 2016
MinRole and SharePoint 2016MinRole and SharePoint 2016
MinRole and SharePoint 2016InnoTech
 
Configure SharePoint Server 2013 in a Three-Tier Farm
Configure SharePoint Server 2013 in a Three-Tier FarmConfigure SharePoint Server 2013 in a Three-Tier Farm
Configure SharePoint Server 2013 in a Three-Tier FarmVinh Nguyen
 
Analytically shiny and new: A guided tour of Microsoft’s Business Intelligenc...
Analytically shiny and new: A guided tour of Microsoft’s Business Intelligenc...Analytically shiny and new: A guided tour of Microsoft’s Business Intelligenc...
Analytically shiny and new: A guided tour of Microsoft’s Business Intelligenc...Jason Himmelstein
 
Configure an Integrated Exchange, Lync, and SharePoint Test Lab
Configure an Integrated Exchange, Lync, and SharePoint Test LabConfigure an Integrated Exchange, Lync, and SharePoint Test Lab
Configure an Integrated Exchange, Lync, and SharePoint Test LabVinh Nguyen
 
Plan, prepare & overall process of upgrade and migrate to SharePoint 2013
Plan, prepare & overall process of upgrade and migrate to SharePoint 2013Plan, prepare & overall process of upgrade and migrate to SharePoint 2013
Plan, prepare & overall process of upgrade and migrate to SharePoint 2013Kashish Sukhija
 

What's hot (20)

SharePoint Programming Basic
SharePoint Programming BasicSharePoint Programming Basic
SharePoint Programming Basic
 
Migrating to SharePoint 2013 - Business and Technical Perspective
Migrating to SharePoint 2013 - Business and Technical PerspectiveMigrating to SharePoint 2013 - Business and Technical Perspective
Migrating to SharePoint 2013 - Business and Technical Perspective
 
SharePoint Performance: Best Practices from the Field
SharePoint Performance: Best Practices from the FieldSharePoint Performance: Best Practices from the Field
SharePoint Performance: Best Practices from the Field
 
Back to the Basics: SharePoint Fundamentals by Joel Oleson
Back to the Basics: SharePoint Fundamentals by Joel OlesonBack to the Basics: SharePoint Fundamentals by Joel Oleson
Back to the Basics: SharePoint Fundamentals by Joel Oleson
 
SharePoint 2013 Performance Analysis - Robi Vončina
SharePoint 2013 Performance Analysis - Robi VončinaSharePoint 2013 Performance Analysis - Robi Vončina
SharePoint 2013 Performance Analysis - Robi Vončina
 
2014-02-22 - IT Pro Camp - SharePoint 2013, A Brief Overview of Capability
2014-02-22 - IT Pro Camp - SharePoint 2013, A Brief Overview of Capability2014-02-22 - IT Pro Camp - SharePoint 2013, A Brief Overview of Capability
2014-02-22 - IT Pro Camp - SharePoint 2013, A Brief Overview of Capability
 
O365con14 - sharepoint 2013 and office 365 upgrade and migration
O365con14 - sharepoint 2013 and office 365 upgrade and migrationO365con14 - sharepoint 2013 and office 365 upgrade and migration
O365con14 - sharepoint 2013 and office 365 upgrade and migration
 
SharePoint 2010 Upgrade Planning
SharePoint 2010 Upgrade PlanningSharePoint 2010 Upgrade Planning
SharePoint 2010 Upgrade Planning
 
Hexa Corp Share Point Capabilities Presentation
Hexa Corp Share Point Capabilities PresentationHexa Corp Share Point Capabilities Presentation
Hexa Corp Share Point Capabilities Presentation
 
Migrate SharePoint 2016 To SharePoint 2019 Environment Using Content Database...
Migrate SharePoint 2016 To SharePoint 2019 Environment Using Content Database...Migrate SharePoint 2016 To SharePoint 2019 Environment Using Content Database...
Migrate SharePoint 2016 To SharePoint 2019 Environment Using Content Database...
 
SharePoint 2016 Adoption - Lessons Learned and Advanced Troubleshooting
SharePoint 2016 Adoption - Lessons Learned and Advanced TroubleshootingSharePoint 2016 Adoption - Lessons Learned and Advanced Troubleshooting
SharePoint 2016 Adoption - Lessons Learned and Advanced Troubleshooting
 
SharePoint Connections Coast to Coast Overview of Enterprise Content Management
SharePoint Connections Coast to Coast Overview of Enterprise Content ManagementSharePoint Connections Coast to Coast Overview of Enterprise Content Management
SharePoint Connections Coast to Coast Overview of Enterprise Content Management
 
SoCalCodeCamp SharePoint Server 2010 a Developer Platform
SoCalCodeCamp SharePoint Server 2010 a Developer PlatformSoCalCodeCamp SharePoint Server 2010 a Developer Platform
SoCalCodeCamp SharePoint Server 2010 a Developer Platform
 
Share point 2010_overview-day4-code
Share point 2010_overview-day4-codeShare point 2010_overview-day4-code
Share point 2010_overview-day4-code
 
Best Practices to SharePoint Architecture Fundamentals NZ & AUS
Best Practices to SharePoint Architecture Fundamentals NZ & AUSBest Practices to SharePoint Architecture Fundamentals NZ & AUS
Best Practices to SharePoint Architecture Fundamentals NZ & AUS
 
MinRole and SharePoint 2016
MinRole and SharePoint 2016MinRole and SharePoint 2016
MinRole and SharePoint 2016
 
Configure SharePoint Server 2013 in a Three-Tier Farm
Configure SharePoint Server 2013 in a Three-Tier FarmConfigure SharePoint Server 2013 in a Three-Tier Farm
Configure SharePoint Server 2013 in a Three-Tier Farm
 
Analytically shiny and new: A guided tour of Microsoft’s Business Intelligenc...
Analytically shiny and new: A guided tour of Microsoft’s Business Intelligenc...Analytically shiny and new: A guided tour of Microsoft’s Business Intelligenc...
Analytically shiny and new: A guided tour of Microsoft’s Business Intelligenc...
 
Configure an Integrated Exchange, Lync, and SharePoint Test Lab
Configure an Integrated Exchange, Lync, and SharePoint Test LabConfigure an Integrated Exchange, Lync, and SharePoint Test Lab
Configure an Integrated Exchange, Lync, and SharePoint Test Lab
 
Plan, prepare & overall process of upgrade and migrate to SharePoint 2013
Plan, prepare & overall process of upgrade and migrate to SharePoint 2013Plan, prepare & overall process of upgrade and migrate to SharePoint 2013
Plan, prepare & overall process of upgrade and migrate to SharePoint 2013
 

Similar to Monitoring and Maintaining SharePoint 2013 Server

Power Shell and Sharepoint 2013
Power Shell and Sharepoint 2013Power Shell and Sharepoint 2013
Power Shell and Sharepoint 2013Mohan Arumugam
 
Best practices for share point solution deployment
Best practices for share point solution deploymentBest practices for share point solution deployment
Best practices for share point solution deploymentSalaudeen Rajack
 
SharePoint Object Model, Web Services and Events
SharePoint Object Model, Web Services and EventsSharePoint Object Model, Web Services and Events
SharePoint Object Model, Web Services and EventsMohan Arumugam
 
John Burkholder: Disaster Recovery in SharePoint 2010
John Burkholder: Disaster Recovery in SharePoint 2010John Burkholder: Disaster Recovery in SharePoint 2010
John Burkholder: Disaster Recovery in SharePoint 2010SharePoint Saturday NY
 
Windows power shell for sharepoint online &amp; office 365
Windows power shell for sharepoint online &amp; office 365Windows power shell for sharepoint online &amp; office 365
Windows power shell for sharepoint online &amp; office 365Prashant Kumar Singh
 
What's new in SharePoint 2010 for Backup and Recovery - SP Saturday Copenhagen
What's new in SharePoint 2010 for Backup and Recovery - SP Saturday CopenhagenWhat's new in SharePoint 2010 for Backup and Recovery - SP Saturday Copenhagen
What's new in SharePoint 2010 for Backup and Recovery - SP Saturday CopenhagenIlia Sotnikov
 
ECS 19 - Chris O'Brien - The hit list - Office 365 dev techniques you should ...
ECS 19 - Chris O'Brien - The hit list - Office 365 dev techniques you should ...ECS 19 - Chris O'Brien - The hit list - Office 365 dev techniques you should ...
ECS 19 - Chris O'Brien - The hit list - Office 365 dev techniques you should ...European Collaboration Summit
 
AWS Application Migration Service-Hands-On Guide
AWS Application Migration Service-Hands-On GuideAWS Application Migration Service-Hands-On Guide
AWS Application Migration Service-Hands-On GuideManas Mondal
 
Deploying Code In SharePoint
Deploying Code In SharePointDeploying Code In SharePoint
Deploying Code In SharePointCorey Roth
 
E business suite r12.2 changes for database administrators
E business suite r12.2 changes for database administratorsE business suite r12.2 changes for database administrators
E business suite r12.2 changes for database administratorsSrinivasa Pavan Marti
 
E business suite r12.2 changes for database administrators
E business suite r12.2 changes for database administratorsE business suite r12.2 changes for database administrators
E business suite r12.2 changes for database administratorsSrinivasa Pavan Marti
 
NZ Code Camp 2011 PowerShell + SharePoint
NZ Code Camp 2011 PowerShell + SharePointNZ Code Camp 2011 PowerShell + SharePoint
NZ Code Camp 2011 PowerShell + SharePointNick Hadlee
 
Breaking SAP portal (HackerHalted)
Breaking SAP portal (HackerHalted)Breaking SAP portal (HackerHalted)
Breaking SAP portal (HackerHalted)ERPScan
 
Intro to WordPress Plugin Development
Intro to WordPress Plugin DevelopmentIntro to WordPress Plugin Development
Intro to WordPress Plugin DevelopmentBrad Williams
 
SharePoint Development For Asp Net Developers
SharePoint Development For Asp Net DevelopersSharePoint Development For Asp Net Developers
SharePoint Development For Asp Net DevelopersCorey Roth
 

Similar to Monitoring and Maintaining SharePoint 2013 Server (20)

Power Shell and Sharepoint 2013
Power Shell and Sharepoint 2013Power Shell and Sharepoint 2013
Power Shell and Sharepoint 2013
 
Power shell
Power shellPower shell
Power shell
 
Best practices for share point solution deployment
Best practices for share point solution deploymentBest practices for share point solution deployment
Best practices for share point solution deployment
 
SharePoint Object Model, Web Services and Events
SharePoint Object Model, Web Services and EventsSharePoint Object Model, Web Services and Events
SharePoint Object Model, Web Services and Events
 
John Burkholder: Disaster Recovery in SharePoint 2010
John Burkholder: Disaster Recovery in SharePoint 2010John Burkholder: Disaster Recovery in SharePoint 2010
John Burkholder: Disaster Recovery in SharePoint 2010
 
Windows power shell for sharepoint online &amp; office 365
Windows power shell for sharepoint online &amp; office 365Windows power shell for sharepoint online &amp; office 365
Windows power shell for sharepoint online &amp; office 365
 
Admin share point with powershell
Admin share point with powershellAdmin share point with powershell
Admin share point with powershell
 
What's new in SharePoint 2010 for Backup and Recovery - SP Saturday Copenhagen
What's new in SharePoint 2010 for Backup and Recovery - SP Saturday CopenhagenWhat's new in SharePoint 2010 for Backup and Recovery - SP Saturday Copenhagen
What's new in SharePoint 2010 for Backup and Recovery - SP Saturday Copenhagen
 
ECS 19 - Chris O'Brien - The hit list - Office 365 dev techniques you should ...
ECS 19 - Chris O'Brien - The hit list - Office 365 dev techniques you should ...ECS 19 - Chris O'Brien - The hit list - Office 365 dev techniques you should ...
ECS 19 - Chris O'Brien - The hit list - Office 365 dev techniques you should ...
 
AWS Application Migration Service-Hands-On Guide
AWS Application Migration Service-Hands-On GuideAWS Application Migration Service-Hands-On Guide
AWS Application Migration Service-Hands-On Guide
 
Deploying Code In SharePoint
Deploying Code In SharePointDeploying Code In SharePoint
Deploying Code In SharePoint
 
E business suite r12.2 changes for database administrators
E business suite r12.2 changes for database administratorsE business suite r12.2 changes for database administrators
E business suite r12.2 changes for database administrators
 
E business suite r12.2 changes for database administrators
E business suite r12.2 changes for database administratorsE business suite r12.2 changes for database administrators
E business suite r12.2 changes for database administrators
 
Share Point Object Model
Share Point Object ModelShare Point Object Model
Share Point Object Model
 
Team lab install_en
Team lab install_enTeam lab install_en
Team lab install_en
 
NZ Code Camp 2011 PowerShell + SharePoint
NZ Code Camp 2011 PowerShell + SharePointNZ Code Camp 2011 PowerShell + SharePoint
NZ Code Camp 2011 PowerShell + SharePoint
 
Breaking SAP portal (HackerHalted)
Breaking SAP portal (HackerHalted)Breaking SAP portal (HackerHalted)
Breaking SAP portal (HackerHalted)
 
Intro to WordPress Plugin Development
Intro to WordPress Plugin DevelopmentIntro to WordPress Plugin Development
Intro to WordPress Plugin Development
 
Admin SharePoint 2010 with PowerShell
Admin SharePoint 2010 with PowerShellAdmin SharePoint 2010 with PowerShell
Admin SharePoint 2010 with PowerShell
 
SharePoint Development For Asp Net Developers
SharePoint Development For Asp Net DevelopersSharePoint Development For Asp Net Developers
SharePoint Development For Asp Net Developers
 

More from Learning SharePoint

Manage security in Model-app Power App with Common data service
Manage security in Model-app Power App with Common data serviceManage security in Model-app Power App with Common data service
Manage security in Model-app Power App with Common data serviceLearning SharePoint
 
Microsoft 365 Audit Log Reports - M365 Learning Document
Microsoft 365 Audit Log Reports - M365 Learning DocumentMicrosoft 365 Audit Log Reports - M365 Learning Document
Microsoft 365 Audit Log Reports - M365 Learning DocumentLearning SharePoint
 
Power Apps - Data governance, compliance and security
Power Apps  - Data governance, compliance and securityPower Apps  - Data governance, compliance and security
Power Apps - Data governance, compliance and securityLearning SharePoint
 
Power BI Governance - Access Management, Recommendations and Best Practices
Power BI Governance - Access Management, Recommendations and Best PracticesPower BI Governance - Access Management, Recommendations and Best Practices
Power BI Governance - Access Management, Recommendations and Best PracticesLearning SharePoint
 
Power Automate (MS Flow) basics, Behind the Scenes, Errors and Troubleshooting
Power Automate (MS Flow) basics, Behind the Scenes, Errors and TroubleshootingPower Automate (MS Flow) basics, Behind the Scenes, Errors and Troubleshooting
Power Automate (MS Flow) basics, Behind the Scenes, Errors and TroubleshootingLearning SharePoint
 
Office 365 Q & A about Microsoft Teams Access,OneDrive, O365 Groups, Shared C...
Office 365 Q & A about Microsoft Teams Access,OneDrive, O365 Groups, Shared C...Office 365 Q & A about Microsoft Teams Access,OneDrive, O365 Groups, Shared C...
Office 365 Q & A about Microsoft Teams Access,OneDrive, O365 Groups, Shared C...Learning SharePoint
 
Ms flow basics, troubleshooting and operational errors
Ms flow basics, troubleshooting and operational errorsMs flow basics, troubleshooting and operational errors
Ms flow basics, troubleshooting and operational errorsLearning SharePoint
 
Onedrive for Business Implementation and Rollout
Onedrive for Business Implementation and RolloutOnedrive for Business Implementation and Rollout
Onedrive for Business Implementation and RolloutLearning SharePoint
 
Share point 2013 deployment document
Share point 2013 deployment documentShare point 2013 deployment document
Share point 2013 deployment documentLearning SharePoint
 
SharePoint 2013 Site Administration Guide
SharePoint 2013 Site Administration GuideSharePoint 2013 Site Administration Guide
SharePoint 2013 Site Administration GuideLearning SharePoint
 
OneDrive For Business - What's new for IT Administrators and End-users
OneDrive For Business - What's new for IT Administrators and End-usersOneDrive For Business - What's new for IT Administrators and End-users
OneDrive For Business - What's new for IT Administrators and End-usersLearning SharePoint
 
Hosting SharePoint 2016 farm in azure
Hosting SharePoint 2016 farm in azureHosting SharePoint 2016 farm in azure
Hosting SharePoint 2016 farm in azureLearning SharePoint
 
SharePoint 2013 Site Administration
SharePoint 2013 Site AdministrationSharePoint 2013 Site Administration
SharePoint 2013 Site AdministrationLearning SharePoint
 

More from Learning SharePoint (16)

Manage security in Model-app Power App with Common data service
Manage security in Model-app Power App with Common data serviceManage security in Model-app Power App with Common data service
Manage security in Model-app Power App with Common data service
 
Microsoft 365 Audit Log Reports - M365 Learning Document
Microsoft 365 Audit Log Reports - M365 Learning DocumentMicrosoft 365 Audit Log Reports - M365 Learning Document
Microsoft 365 Audit Log Reports - M365 Learning Document
 
Power Apps - Data governance, compliance and security
Power Apps  - Data governance, compliance and securityPower Apps  - Data governance, compliance and security
Power Apps - Data governance, compliance and security
 
Power BI Governance - Access Management, Recommendations and Best Practices
Power BI Governance - Access Management, Recommendations and Best PracticesPower BI Governance - Access Management, Recommendations and Best Practices
Power BI Governance - Access Management, Recommendations and Best Practices
 
Power Automate (MS Flow) basics, Behind the Scenes, Errors and Troubleshooting
Power Automate (MS Flow) basics, Behind the Scenes, Errors and TroubleshootingPower Automate (MS Flow) basics, Behind the Scenes, Errors and Troubleshooting
Power Automate (MS Flow) basics, Behind the Scenes, Errors and Troubleshooting
 
Office 365 Q & A about Microsoft Teams Access,OneDrive, O365 Groups, Shared C...
Office 365 Q & A about Microsoft Teams Access,OneDrive, O365 Groups, Shared C...Office 365 Q & A about Microsoft Teams Access,OneDrive, O365 Groups, Shared C...
Office 365 Q & A about Microsoft Teams Access,OneDrive, O365 Groups, Shared C...
 
Ms flow basics, troubleshooting and operational errors
Ms flow basics, troubleshooting and operational errorsMs flow basics, troubleshooting and operational errors
Ms flow basics, troubleshooting and operational errors
 
Onedrive for Business Implementation and Rollout
Onedrive for Business Implementation and RolloutOnedrive for Business Implementation and Rollout
Onedrive for Business Implementation and Rollout
 
Share point 2013 deployment document
Share point 2013 deployment documentShare point 2013 deployment document
Share point 2013 deployment document
 
SharePoint 2013 Site Administration Guide
SharePoint 2013 Site Administration GuideSharePoint 2013 Site Administration Guide
SharePoint 2013 Site Administration Guide
 
OneDrive For Business - What's new for IT Administrators and End-users
OneDrive For Business - What's new for IT Administrators and End-usersOneDrive For Business - What's new for IT Administrators and End-users
OneDrive For Business - What's new for IT Administrators and End-users
 
Hosting SharePoint 2016 farm in azure
Hosting SharePoint 2016 farm in azureHosting SharePoint 2016 farm in azure
Hosting SharePoint 2016 farm in azure
 
Cloud holiday shopping guide
Cloud holiday shopping guideCloud holiday shopping guide
Cloud holiday shopping guide
 
SharePoint 2013 Site Administration
SharePoint 2013 Site AdministrationSharePoint 2013 Site Administration
SharePoint 2013 Site Administration
 
Core SharePoint 2013 Concepts
Core SharePoint 2013 ConceptsCore SharePoint 2013 Concepts
Core SharePoint 2013 Concepts
 
Office 365
Office 365Office 365
Office 365
 

Recently uploaded

Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGSujit Pal
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 

Recently uploaded (20)

Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAG
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 

Monitoring and Maintaining SharePoint 2013 Server

  • 1. MONITORING AND MAINTAINING SHAREPOINT SERVER Course: SharePoint 2013 for Administrators and IT Pro's | Akrura Technologies By : Isha Kapoor SharePoint MVP, Author, Trainer and Founder http://www.akruratechnologies.com/ http://www.learningsharepoint.com/ | @LearningSP SharePoint
  • 2. OUTLINE… • Introduction to STSADM • Adding Solutions, Features using STSADM • BackupRestore and ImportExport using STSADM • Introduction to Windows PowerShell • Installing Solution packages (WSPs) using Windows PowerShell • Advanced reporting and Analysis using Windows PowerShell • BackupRestore, ImportExport SharePoint sites using Windows PowerShell • Configure diagnostic logging in SharePoint 2013 • Developer Dashboard in SharePoint 2013
  • 3. INTRODUCTION TO STSADM What is STSADM? All SharePoint Servers includes Stsadm tool for command-line administration of Office SharePoint Server servers and its sites. Stsadm is located at the following path on the drive where SharePoint & Products is installed: %COMMONPROGRAMFILES%microsoft sharedweb server extensions12bin What permissions are needed to use STSADM? You must be an administrator on the local computer to use Stsadm. It is recommended to run STSADM with Farm account to get full access to the commands. The tool STSADM must be run on the server itself. STSADM Commands are made up of two parts • Operation – These are SharePoint Operations that you will use to administrator siteslistslibraries, permissions etc. • Parameters – These are switches that can be used with Stsadm Operations. Syntax : -operation OperationName -parameter value
  • 4. What are SharePoint Solution Packages? Any component that you want to Install in a SharePoint server must be added as a Solution Package or a WSP package (that has an extension .wsp). A Solution package is generally made up of a set of files that defines the components being installed on the server. For example, a typical solution package can be for deploying a Custom WebPart, a Feature, a Custom Action etc. A Solution package is a Single file but site admins can view Individual files in a .wsp by making a copy of it and renaming it as a .cab extension. Solution Store – Every SharePoint Farm has a Solution Store (also known as Solutions or Farm Solutions) where all the Solution packages or WSPs are installed. You can find the Solution Store in Central Admin under Operations. Adding a Solution - Adding a Solution is done in two parts : Installing and Deploying. Installing Solution - Installing a Solution means adding it in a Solutions store on the farm. An STSADM Command addsolution is generally used to add a Solution into a Solution store. stsadm -o addsolution -filename <solution file path> Deploying Solution - Deploying a Solution means scoping a solutions to one or more Web applications. An STSADM Command deploysolution is generally used to deploy a Solution to one or more Web applications. stsadm -o deploysolution -name <solution name> -url <URL of Web application> [-allowgacdeployment] ADDING SOLUTIONS, FEATURES USING STSADM
  • 5. What are Features? Every Solution package that deploys a component contains a Feature for that Component. In simple words, A Feature defines the component and a solution package bundles up a feature and all the supporting files that needs to be deployed. Feature Scope - A feature can be scoped to the following • Farm • Web application • Site Collection • Site Adding a Feature - Adding a Feature is done in two parts : Installing and Activating. Installing Feature - Installing a Feature makes its definition and elements known throughout a server farm. stsadm -o addsolution -filename <solution file path> Farm-scoped features are also automatically activated during this stage. Activating Feature - Activating the Feature makes the Feature available at a particular scope. stsadm -o activatefeature {-filename <path to Feature.xml> | -name <feature folder> } -url <URL of Web applicationSite Collection> ADDING FEATURES USING STSADM
  • 6. BACKUPRESTORE AND IMPORTEXPORT USING STSADM BackupRestore - STSADM backuprestore are popular commands used for backup and restore of a SharePoint site collection or a Web application. Syntax : stsadm -o backup -url <URL of Web application> -filename <backup file path extension .bak> stsadm -o restore -url <URL of Web application> -filename <backup file path extension .bak> Benefits - • Moving a Site Collection from one Content database to another. • With BackupRestore stsadm command all SharePoint Designer Workflows gets moved without any issues. • Moving a Site Collection with BackupRestore stsadm command, the actual Content get moved. That means it leaves behind the heavy Audit Logs, Workflow history list etc. ImportExport - STSADM ImportExport Commands are generally used to move a Subsite or Web but it can also export a site collection, web application or even a list. Syntax : stsadm -o export -url <URL of Web application> -filename <backup file path> stsadm -o import -url <URL of Web application> -filename <backup file path>
  • 7. STSADM BACKUP/RESTORE VS IMPORTEXPORT Stsadm backup/restore Stsadm export/import BackupRestore a Site Collection or a Web application. Exports data of a Subsite, site collection, an entire web application, or a single list. The GUID of all items in a Site Collection is preserved except the GUID of the Site collection itself. When you restore the backup, SharePoint generates a new GUID for the site collection. It generates a new GUID for every objects such as sites, sub sites, lists and items. Because of the same Guid, you can restore in the same web application or farm but in a different Content database. Because of the new Guid, you can restore or import the data in the same site collectionsite or web application and it does not matter on which content database you run import operation. This operation is designed to take an exact copy of a site collection, no data will be changed, transformed or lost. This operation is good for merging content of sites, and decide how to handle identical data between source and target. All workflows instances, associations, history and tasks are preserved. A major drawback of this operation is that it does not preserves workflows instances, associations, history and tasks. Every workflow association must be recreated and there is no way to restore the running instances from original site.
  • 8. INTRODUCTION TO WINDOWS POWERSHELL What is Windows PowerShell? “Windows PowerShell is a command-line scripting tool that provides an administrator full access to applicable application programming interfaces (APIs). Administrators can use Windows PowerShell to interact directly with SharePoint-based web applications, site collections, sites, lists, and more. To run SharePoint Commands with PowerShell you need to add the below SharePoint Snap-In first. Add-PSSnapin Microsoft.SharePoint.Powershell What permissions are needed to use PowerShell? A user must be a member of the SharePoint_Shell_Access role on the configuration database and a member of the WSS_ADMIN_WPG local group on the computer where SharePoint is installed. PowerShell Commands can be made up the following : Get-Command - The Get-Command cmdlet gets commands in the session, such as aliases, functions, filters, scripts, and applications. Get-Member - The Get-Member cmdlet gets the "members" (properties and methods) of objects. Get-Help - The Get-Help cmdlet displays information about Windows PowerShell concepts and commands, including cmdlets, providers, functions, aliases and scripts. To get a list of all cmdlet help topic titles, type get-help * Pipelines - PowerShell uses Pipelines to filter commands and display the desired results. When you “pipe” an object from one part of a command to another, you’re simply passing that object - unchanged - from one part of the command to another. For Complete SharePoint 2013 PwerShell cmdlets list see : http://technet.microsoft.com/library/ff678226%28office.15%29.aspx
  • 9. Examples of Get-Command Get-SPWebApplication - The Get-SPWebApplication cmdlet returns all Web applications that match the scope given by the Identity parameter. The Identity can be the name of the name, URL, or GUID of the Web application. If no Identity is specified, all Web applications are returned. Get-SPWebApplication -Identity <URL of Web application> Get-SPSite - Returns all site collections that match the specified criteria. Get-SPSite -Identity <URL of Site Collection> * -Identity specifies the Name, URL, or GUID of the Item * -Limit All displays all results instead of a limited items. Example : To get all Site Collections of a Web Application. Get-SPWebApplication <URL of Web application> | Get-SPSite -Limit All Example : To get all SubSites in a all Site Collections of a Web Application. Get-SPWebApplication <URL of Web application> | Get-SPSite -Limit All | Get-SPWeb -Limit All If you have to get Subsites for a Specific Site Collection in a Web application, then use Where Object for a Command in a Pipe. Get-SPWeb - Returns all Subsites in a Site collection that match the specified criteria. Get-SPWeb -site <URL of Site Collection>
  • 10. Examples of Pipelines Select Pipeline : Lets you select the properties of an Object Get-SPSite | select url, Title Get-SPSite | get-member Where-Object Pipeline : Get-SPSite -Limit All | Where-Object {$_.Url -eq “<URL of Site Collection>”} Get-SPSite -Limit All | Where-Object {$_.Url -like “* SiteColl”} | Get-SPWeb -Limit All | select url, Title $sites = Get-SPSite | select url, Title | Where-Object {$_.Url -like "* SiteColl"} foreach ($site in $sites) { Write-Host $site } ForEach-Object Pipeline : Get-SPSite -Limit All | ForEach-Object {$_.URL, ($_.Usage.Storage/1024/1024)} Get-SPSite -Limit All | ForEach-Object {$_.URL, ($_.Quota.StorageMaximumLevel/1000000)} Output Options - | Out-string C:output.csv | Out-GridView -Title “Window Name”
  • 11. INSTALLING SOLUTION PACKAGES (WSPS) USING WINDOWS POWERSHELL Add-SPSolution - Uploads a SharePoint solution package to the farm. Add-SPSolution -LiteralPath c:solution.wsp Install-SPSolution - Deploys an installed SharePoint solution in the farm. Install-SPSolution -Identity solution.wsp -GACDeployment -CompatibilityLevel {14,15}
  • 12. ADVANCED REPORTING AND ANALYSIS USING WINDOWS POWERSHELL Examples - Get all Sites where URL contains the word IT $sites = Get-SPSite | Where-Object {$_.Url -like "*IT*"} foreach ($site in $sites) { Write-Host "Site is SPSite Url=$site" To report usage and quota of your site collections: Get-SPSite | Select URL, @{Name=”Storage”; Expression={“{0:N2} MB” -f($_.Usage.Storage/1000000)}}, @{Name=”Quota”; Expression={“{0:N2} MB” -f($_.Quota.StorageMaximumLevel/1000000)} } | Out-GridView -Title “Sites with Usage”
  • 13. WE ARE HERE TO HELP. Questions?