SlideShare une entreprise Scribd logo
1  sur  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?

Contenu connexe

Tendances

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
 

Tendances (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
 

Similaire à 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
 

Similaire à 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
 

Plus de 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
 

Plus de 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
 

Dernier

FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbuapidays
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024The Digital Insurer
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 

Dernier (20)

FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 

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?