SlideShare a Scribd company logo
Administering SharePoint 2010with Windows PowerShellDon JonesConcentrated Technology, LLChttp://concentratedtech.com
This slide deck was used in one of our many conference presentations. We hope you enjoy it, and invite you to use it within your own organization however you like.For more information on our company, including information on private classes and upcoming conference appearances, please visit our Web site, www.ConcentratedTech.com. For links to newly-posted decks, follow us on Twitter:@concentrateddon or @concentratdgregThis work is copyright ©Concentrated Technology, LLC
AgendaOur main goal is to explore what’s possible in SharePoint using Windows PowerShell……and to start looking at the major command sets that accomplish administrative tasksWe’ll spend a lot of time examining the Help files as part of this
CAUTION: DEMOS AHEADThis is a demonstration-intensive session (very few slides)
SP Management ShellNot really an independent shell……just a “preloaded” Windows PowerShellLoads a specific module/snapin at startup so that SP commands are availableYou could also manually load these into a “normal” shell (or 3rd-party host)Let’s see
Shell Admin PermissionsNeed to grant admins the right to use the management shellGet-SPShellAdminAdd-SPShellAdmin –username DOMAIN\user-database (Get-SPContentDatabase-Identity database_name)Remove-SPShellAdmin
Cmdlet NamingNotice the SP prefix on the noun of all SharePoint cmdlets?Get-Command –noun SP* Or…Get-Command limited to the SharePoint module/snapin (let’s see)
START THINKING…What SP admin tasks would YOU want to automate within the shell?Your ideas will drive our discovery of commands and capabilities… so start coming up with ideas!
Starting CommandsGet-SPSite (get site collections)Get-SPWeb (get Webs)Try this:Get-SPSite –limit All |Get-SPWeb –limit All |Where { -not $_.RequestAccessEnabled }
LimitsMost Get-SP* commands limit to 20 objectsUse –Limit to change that; either numeric or “All.”Be aware of potential performance issues with large result sets – avoid doing so on production servers unless necessary
FiltersMost Get-SP* commands also include a –filter parameterLimits the results to just those that meet the filter criteriaBest way to filter – as opposed to using Where – if the property you want to filter on is supported
Supported FiltersGet-SPSiteOwnerSecondary OnwerLockStateGet-SPWebTitleTemplateGet-SPWeb –filter {$_.Template –eq ’Blog’ }
FarmsGet-SPFarmGet-SPFarmConfigBackup-SPFarmRestore-SPFarm
ServersGet-SPServer [[-Identity] name]Get-SPServer | Where { $_.Role –eq "Application" }
Web ApplicationsNew-SPWebApplicationGet-SPWebApplicationRemove-SPWebApplication
SitesNew-SPSiteGet-SPSiteGet-SPSiteAdministrationBackup-SPSiteRemove-SPSite
WebsNew-SPWebGet-SPWebRemove-SPWeb
NOW… let’s do some Q&AI’ve got more demos to show you, but want to make sure I address your questionsAsk ‘em now!The remainder of the session will be additional demos
Final Q&AText DONJ to 50500 for contact infoSee me for add’l resourcesBooksWorkshop recordingsDemo videosEtcSlide decks posted to ConcentratedTech.com by next week
Final Notes…Please be sure to submit a session evaluation form!Download slides & materials from www.ConcentratedTech.com within one week!Blog, URLs, and other information is also available at www.ConcentratedTech.com for your referenceMore resources at www.ShellHub.comThank you very much!
Your Feedback is ImportantPlease fill out a session evaluation form.Thank you!
This slide deck was used in one of our many conference presentations. We hope you enjoy it, and invite you to use it within your own organization however you like.For more information on our company, including information on private classes and upcoming conference appearances, please visit our Web site, www.ConcentratedTech.com. For links to newly-posted decks, follow us on Twitter:@concentrateddon or @concentratdgregThis work is copyright ©Concentrated Technology, LLC

More Related Content

What's hot (15)

KEY
Amahi 5.0 Screenshots
cpg
 
PDF
Time Log with Payment Add on User Manual
Orangescrum
 
PDF
Orangescrum Recurring task add on user manual
Orangescrum
 
PPT
Managing Virtual Infrastructures With PowerShell
guesta849bc8b
 
PDF
instaling
tutorialsruby
 
PDF
Add target manually em12c
Osama Mustafa
 
PPTX
Tools of the CPAN Ninja
Aran Deltac
 
PPT
Creating Local WordPress Installs
mcgaritydotme
 
PPSX
Demo for Why Use PowerShell
SirajJamdar
 
PPTX
owasp top 10
Satish Govindappa
 
ZIP
Seo pressor unlimited-license-v4.0
Sarit Cohen
 
PDF
Install Active Directory PowerShell Module on Windows 10
VCP Muthukrishna
 
PDF
Troubleshooting APEX Performance Issues
Roel Hartman
 
PPT
How to begin with Amazon EC2?
Cuelogic Technologies Pvt. Ltd.
 
PPT
Does your website take more time while loading
Mohammed Nayeem
 
Amahi 5.0 Screenshots
cpg
 
Time Log with Payment Add on User Manual
Orangescrum
 
Orangescrum Recurring task add on user manual
Orangescrum
 
Managing Virtual Infrastructures With PowerShell
guesta849bc8b
 
instaling
tutorialsruby
 
Add target manually em12c
Osama Mustafa
 
Tools of the CPAN Ninja
Aran Deltac
 
Creating Local WordPress Installs
mcgaritydotme
 
Demo for Why Use PowerShell
SirajJamdar
 
owasp top 10
Satish Govindappa
 
Seo pressor unlimited-license-v4.0
Sarit Cohen
 
Install Active Directory PowerShell Module on Windows 10
VCP Muthukrishna
 
Troubleshooting APEX Performance Issues
Roel Hartman
 
How to begin with Amazon EC2?
Cuelogic Technologies Pvt. Ltd.
 
Does your website take more time while loading
Mohammed Nayeem
 

Viewers also liked (7)

DOCX
Bentuk hirarki pentadbiran dan perkaitan dengan organisasi sekolah...
ali ahmad
 
PPTX
Pengurusan dan pentadbiran
shamsktrg
 
PPTX
PENGERTIAN EKONOMI
Kka ELF
 
PPT
Asas pengurusan
Emy Amiera
 
PPTX
PENGENALAN KEPADA PENGURUSAN
Ckg Nizam
 
PPTX
DEFINISI DAN KEPENTINGAN PENGURUSAN
Ckg Nizam
 
PPTX
Bab 2-Fungsi Pengurusan
Ckg Nizam
 
Bentuk hirarki pentadbiran dan perkaitan dengan organisasi sekolah...
ali ahmad
 
Pengurusan dan pentadbiran
shamsktrg
 
PENGERTIAN EKONOMI
Kka ELF
 
Asas pengurusan
Emy Amiera
 
PENGENALAN KEPADA PENGURUSAN
Ckg Nizam
 
DEFINISI DAN KEPENTINGAN PENGURUSAN
Ckg Nizam
 
Bab 2-Fungsi Pengurusan
Ckg Nizam
 
Ad

Similar to Admin share point with powershell (20)

PPTX
NZ Code Camp 2011 PowerShell + SharePoint
Nick Hadlee
 
PPTX
Intro to PowerShell
Adam Preston
 
DOCX
Power shell
Rajkiran Swain
 
PPTX
Brian Jackett: Managing SharePoint 2010 Farms with Powershell
SharePoint Saturday NY
 
PPTX
Brian Jackett: Managing SharePoint 2010 Farms with Powershell
SharePoint Saturday NY
 
PPTX
Monitoring and Maintaining SharePoint 2013 Server
Learning SharePoint
 
PPT
STSADM Automating SharePoint Administration - Tech Ed South East Asia 2008 wi...
Joel Oleson
 
DOCX
Windows power shell for sharepoint online & office 365
Prashant Kumar Singh
 
PPT
Automating Active Directory mgmt in PowerShell
Concentrated Technology
 
PPTX
SPugPt Meeting 35: Manage govern and drive adoption of share point online wit...
Comunidade Portuguesa de SharePoiint
 
PPTX
Inventory your network and clients with PowerShell
Concentrated Technology
 
PPTX
Managing enterprise with PowerShell remoting
Concentrated Technology
 
PPTX
Make the hosting company life easier with SharePoint PowerShell
Virtual Affairs
 
PPTX
Power Shell and Sharepoint 2013
Mohan Arumugam
 
PPTX
Best practices and tools for PowerShell and SharePoint Scripting SharePointFe...
Michael Blumenthal (Microsoft MVP)
 
PPT
PowerShell 8tips
Concentrated Technology
 
PPT
Joomla Day Austin Part 4
Kyle Ledbetter
 
PPTX
Intro to SharePoint + PowerShell
Ryan Dennis
 
PPTX
Introduction to PowerShell - Be a PowerShell Hero - SPFest workshop
Michael Blumenthal (Microsoft MVP)
 
PPT
OTSUG - Migrating to TFS 2010 - Lessons Learned
Jeff Bramwell
 
NZ Code Camp 2011 PowerShell + SharePoint
Nick Hadlee
 
Intro to PowerShell
Adam Preston
 
Power shell
Rajkiran Swain
 
Brian Jackett: Managing SharePoint 2010 Farms with Powershell
SharePoint Saturday NY
 
Brian Jackett: Managing SharePoint 2010 Farms with Powershell
SharePoint Saturday NY
 
Monitoring and Maintaining SharePoint 2013 Server
Learning SharePoint
 
STSADM Automating SharePoint Administration - Tech Ed South East Asia 2008 wi...
Joel Oleson
 
Windows power shell for sharepoint online & office 365
Prashant Kumar Singh
 
Automating Active Directory mgmt in PowerShell
Concentrated Technology
 
SPugPt Meeting 35: Manage govern and drive adoption of share point online wit...
Comunidade Portuguesa de SharePoiint
 
Inventory your network and clients with PowerShell
Concentrated Technology
 
Managing enterprise with PowerShell remoting
Concentrated Technology
 
Make the hosting company life easier with SharePoint PowerShell
Virtual Affairs
 
Power Shell and Sharepoint 2013
Mohan Arumugam
 
Best practices and tools for PowerShell and SharePoint Scripting SharePointFe...
Michael Blumenthal (Microsoft MVP)
 
PowerShell 8tips
Concentrated Technology
 
Joomla Day Austin Part 4
Kyle Ledbetter
 
Intro to SharePoint + PowerShell
Ryan Dennis
 
Introduction to PowerShell - Be a PowerShell Hero - SPFest workshop
Michael Blumenthal (Microsoft MVP)
 
OTSUG - Migrating to TFS 2010 - Lessons Learned
Jeff Bramwell
 
Ad

More from Concentrated Technology (20)

PPT
Wsus sample scripts
Concentrated Technology
 
PPTX
Wsus best practices
Concentrated Technology
 
PPT
Virtualization today
Concentrated Technology
 
PPTX
Virtualization auditing & security deck v1.0
Concentrated Technology
 
PPTX
Vdi in-a-box
Concentrated Technology
 
PPT
From VB Script to PowerShell
Concentrated Technology
 
PPT
Top ESXi command line v2.0
Concentrated Technology
 
PPT
Supporting SQLserver
Concentrated Technology
 
PPT
Server Core2
Concentrated Technology
 
PPT
Securely connecting to apps over the internet using rds
Concentrated Technology
 
PPT
Rapidly deploying software
Concentrated Technology
 
PPT
PS scripting and modularization
Concentrated Technology
 
PPT
PS error handling and debugging
Concentrated Technology
 
PPTX
PowerShell crashcourse for Sharepoint admins
Concentrated Technology
 
PPT
Prepping software for w7 deployment
Concentrated Technology
 
PPT
PowerShell Remoting
Concentrated Technology
 
PPTX
PowerShell crashcourse for sharepoint
Concentrated Technology
 
PPT
PowerShell crashcourse
Concentrated Technology
 
PPTX
PowerShell custom properties
Concentrated Technology
 
PPTX
PowerShell crash course
Concentrated Technology
 
Wsus sample scripts
Concentrated Technology
 
Wsus best practices
Concentrated Technology
 
Virtualization today
Concentrated Technology
 
Virtualization auditing & security deck v1.0
Concentrated Technology
 
From VB Script to PowerShell
Concentrated Technology
 
Top ESXi command line v2.0
Concentrated Technology
 
Supporting SQLserver
Concentrated Technology
 
Securely connecting to apps over the internet using rds
Concentrated Technology
 
Rapidly deploying software
Concentrated Technology
 
PS scripting and modularization
Concentrated Technology
 
PS error handling and debugging
Concentrated Technology
 
PowerShell crashcourse for Sharepoint admins
Concentrated Technology
 
Prepping software for w7 deployment
Concentrated Technology
 
PowerShell Remoting
Concentrated Technology
 
PowerShell crashcourse for sharepoint
Concentrated Technology
 
PowerShell crashcourse
Concentrated Technology
 
PowerShell custom properties
Concentrated Technology
 
PowerShell crash course
Concentrated Technology
 

Recently uploaded (20)

PDF
Quantum Threats Are Closer Than You Think – Act Now to Stay Secure
WSO2
 
PDF
5 Things to Consider When Deploying AI in Your Enterprise
Safe Software
 
PPTX
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Poster...
Michele Kryston
 
PDF
Automating the Geo-Referencing of Historic Aerial Photography in Flanders
Safe Software
 
PPTX
CapCut Pro PC Crack Latest Version Free Free
josanj305
 
PDF
GDG Cloud Southlake #44: Eyal Bukchin: Tightening the Kubernetes Feedback Loo...
James Anderson
 
PDF
DoS Attack vs DDoS Attack_ The Silent Wars of the Internet.pdf
CyberPro Magazine
 
PDF
Simplify Your FME Flow Setup: Fault-Tolerant Deployment Made Easy with Packer...
Safe Software
 
PDF
Java 25 and Beyond - A Roadmap of Innovations
Ana-Maria Mihalceanu
 
PPTX
Smart Factory Monitoring IIoT in Machine and Production Operations.pptx
Rejig Digital
 
PDF
ArcGIS Utility Network Migration - The Hunter Water Story
Safe Software
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
PDF
Pipeline Industry IoT - Real Time Data Monitoring
Safe Software
 
PPSX
Usergroup - OutSystems Architecture.ppsx
Kurt Vandevelde
 
PDF
Bitkom eIDAS Summit | European Business Wallet: Use Cases, Macroeconomics, an...
Carsten Stoecker
 
PDF
Unlocking FME Flow’s Potential: Architecture Design for Modern Enterprises
Safe Software
 
PDF
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
PDF
Bridging CAD, IBM TRIRIGA & GIS with FME: The Portland Public Schools Case
Safe Software
 
PDF
How to Visualize the ​Spatio-Temporal Data Using CesiumJS​
SANGHEE SHIN
 
Quantum Threats Are Closer Than You Think – Act Now to Stay Secure
WSO2
 
5 Things to Consider When Deploying AI in Your Enterprise
Safe Software
 
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Poster...
Michele Kryston
 
Automating the Geo-Referencing of Historic Aerial Photography in Flanders
Safe Software
 
CapCut Pro PC Crack Latest Version Free Free
josanj305
 
GDG Cloud Southlake #44: Eyal Bukchin: Tightening the Kubernetes Feedback Loo...
James Anderson
 
DoS Attack vs DDoS Attack_ The Silent Wars of the Internet.pdf
CyberPro Magazine
 
Simplify Your FME Flow Setup: Fault-Tolerant Deployment Made Easy with Packer...
Safe Software
 
Java 25 and Beyond - A Roadmap of Innovations
Ana-Maria Mihalceanu
 
Smart Factory Monitoring IIoT in Machine and Production Operations.pptx
Rejig Digital
 
ArcGIS Utility Network Migration - The Hunter Water Story
Safe Software
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
Pipeline Industry IoT - Real Time Data Monitoring
Safe Software
 
Usergroup - OutSystems Architecture.ppsx
Kurt Vandevelde
 
Bitkom eIDAS Summit | European Business Wallet: Use Cases, Macroeconomics, an...
Carsten Stoecker
 
Unlocking FME Flow’s Potential: Architecture Design for Modern Enterprises
Safe Software
 
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
Bridging CAD, IBM TRIRIGA & GIS with FME: The Portland Public Schools Case
Safe Software
 
How to Visualize the ​Spatio-Temporal Data Using CesiumJS​
SANGHEE SHIN
 

Admin share point with powershell

  • 1. Administering SharePoint 2010with Windows PowerShellDon JonesConcentrated Technology, LLChttp://concentratedtech.com
  • 2. This slide deck was used in one of our many conference presentations. We hope you enjoy it, and invite you to use it within your own organization however you like.For more information on our company, including information on private classes and upcoming conference appearances, please visit our Web site, www.ConcentratedTech.com. For links to newly-posted decks, follow us on Twitter:@concentrateddon or @concentratdgregThis work is copyright ©Concentrated Technology, LLC
  • 3. AgendaOur main goal is to explore what’s possible in SharePoint using Windows PowerShell……and to start looking at the major command sets that accomplish administrative tasksWe’ll spend a lot of time examining the Help files as part of this
  • 4. CAUTION: DEMOS AHEADThis is a demonstration-intensive session (very few slides)
  • 5. SP Management ShellNot really an independent shell……just a “preloaded” Windows PowerShellLoads a specific module/snapin at startup so that SP commands are availableYou could also manually load these into a “normal” shell (or 3rd-party host)Let’s see
  • 6. Shell Admin PermissionsNeed to grant admins the right to use the management shellGet-SPShellAdminAdd-SPShellAdmin –username DOMAIN\user-database (Get-SPContentDatabase-Identity database_name)Remove-SPShellAdmin
  • 7. Cmdlet NamingNotice the SP prefix on the noun of all SharePoint cmdlets?Get-Command –noun SP* Or…Get-Command limited to the SharePoint module/snapin (let’s see)
  • 8. START THINKING…What SP admin tasks would YOU want to automate within the shell?Your ideas will drive our discovery of commands and capabilities… so start coming up with ideas!
  • 9. Starting CommandsGet-SPSite (get site collections)Get-SPWeb (get Webs)Try this:Get-SPSite –limit All |Get-SPWeb –limit All |Where { -not $_.RequestAccessEnabled }
  • 10. LimitsMost Get-SP* commands limit to 20 objectsUse –Limit to change that; either numeric or “All.”Be aware of potential performance issues with large result sets – avoid doing so on production servers unless necessary
  • 11. FiltersMost Get-SP* commands also include a –filter parameterLimits the results to just those that meet the filter criteriaBest way to filter – as opposed to using Where – if the property you want to filter on is supported
  • 14. ServersGet-SPServer [[-Identity] name]Get-SPServer | Where { $_.Role –eq "Application" }
  • 18. NOW… let’s do some Q&AI’ve got more demos to show you, but want to make sure I address your questionsAsk ‘em now!The remainder of the session will be additional demos
  • 19. Final Q&AText DONJ to 50500 for contact infoSee me for add’l resourcesBooksWorkshop recordingsDemo videosEtcSlide decks posted to ConcentratedTech.com by next week
  • 20. Final Notes…Please be sure to submit a session evaluation form!Download slides & materials from www.ConcentratedTech.com within one week!Blog, URLs, and other information is also available at www.ConcentratedTech.com for your referenceMore resources at www.ShellHub.comThank you very much!
  • 21. Your Feedback is ImportantPlease fill out a session evaluation form.Thank you!
  • 22. This slide deck was used in one of our many conference presentations. We hope you enjoy it, and invite you to use it within your own organization however you like.For more information on our company, including information on private classes and upcoming conference appearances, please visit our Web site, www.ConcentratedTech.com. For links to newly-posted decks, follow us on Twitter:@concentrateddon or @concentratdgregThis work is copyright ©Concentrated Technology, LLC