Administering SharePoint 2010with Windows PowerShell<br />Don 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 withi...
Agenda<br />Our main goal is to explore what’s possible in SharePoint using Windows PowerShell…<br />…and to start looking...
CAUTION: DEMOS AHEAD<br />This is a demonstration-intensive session (very few slides)<br />
SP Management Shell<br />Not really an independent shell…<br />…just a “preloaded” Windows PowerShell<br />Loads a specifi...
Shell Admin Permissions<br />Need to grant admins the right to use the management shell<br />Get-SPShellAdmin<br />Add-SPS...
Cmdlet Naming<br />Notice the SP prefix on the noun of all SharePoint cmdlets?<br />Get-Command –noun SP* <br />Or…<br />G...
START THINKING…<br />What SP admin tasks would YOU want to automate within the shell?<br />Your ideas will drive our disco...
Starting Commands<br />Get-SPSite (get site collections)<br />Get-SPWeb (get Webs)<br />Try this:Get-SPSite –limit All |Ge...
Limits<br />Most Get-SP* commands limit to 20 objects<br />Use –Limit to change that; either numeric or “All.”<br />Be awa...
Filters<br />Most Get-SP* commands also include a –filter parameter<br />Limits the results to just those that meet the fi...
Supported Filters<br />Get-SPSite<br />Owner<br />Secondary Onwer<br />LockState<br />Get-SPWeb<br />Title<br />Template<b...
Farms<br />Get-SPFarm<br />Get-SPFarmConfig<br />Backup-SPFarm<br />Restore-SPFarm<br />
Servers<br />Get-SPServer [[-Identity] name]<br />Get-SPServer | Where { $_.Role –eq "Application" }<br />
Web Applications<br />New-SPWebApplication<br />Get-SPWebApplication<br />Remove-SPWebApplication<br />
Sites<br />New-SPSite<br />Get-SPSite<br />Get-SPSiteAdministration<br />Backup-SPSite<br />Remove-SPSite<br />
Webs<br />New-SPWeb<br />Get-SPWeb<br />Remove-SPWeb<br />
NOW… let’s do some Q&A<br />I’ve got more demos to show you, but want to make sure I address your questions<br />Ask ‘em n...
Final Q&A<br />Text DONJ to 50500 for contact info<br />See me for add’l resources<br />Books<br />Workshop recordings<br ...
Final Notes…<br />Please be sure to submit a session evaluation form!<br />Download slides & materials from www.Concentrat...
Your Feedback is Important<br />Please fill out a session evaluation form.<br />Thank you!<br />
This slide deck was used in one of our many conference presentations. We hope you enjoy it, and invite you to use it withi...
Upcoming SlideShare
Loading in...5
×

Admin share point with powershell

803

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
803
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
7
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Admin share point with powershell

  1. 1. Administering SharePoint 2010with Windows PowerShell<br />Don JonesConcentrated Technology, LLChttp://concentratedtech.com<br />
  2. 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.<br />For more information on our company, including information on private classes and upcoming conference appearances, please visit our Web site, www.ConcentratedTech.com. <br />For links to newly-posted decks, follow us on Twitter:@concentrateddon or @concentratdgreg<br />This work is copyright ©Concentrated Technology, LLC<br />
  3. 3. Agenda<br />Our main goal is to explore what’s possible in SharePoint using Windows PowerShell…<br />…and to start looking at the major command sets that accomplish administrative tasks<br />We’ll spend a lot of time examining the Help files as part of this<br />
  4. 4. CAUTION: DEMOS AHEAD<br />This is a demonstration-intensive session (very few slides)<br />
  5. 5. SP Management Shell<br />Not really an independent shell…<br />…just a “preloaded” Windows PowerShell<br />Loads a specific module/snapin at startup so that SP commands are available<br />You could also manually load these into a “normal” shell (or 3rd-party host)<br />Let’s see<br />
  6. 6. Shell Admin Permissions<br />Need to grant admins the right to use the management shell<br />Get-SPShellAdmin<br />Add-SPShellAdmin –username DOMAINuser-database (Get-SPContentDatabase-Identity database_name)<br />Remove-SPShellAdmin<br />
  7. 7. Cmdlet Naming<br />Notice the SP prefix on the noun of all SharePoint cmdlets?<br />Get-Command –noun SP* <br />Or…<br />Get-Command limited to the SharePoint module/snapin (let’s see)<br />
  8. 8. START THINKING…<br />What SP admin tasks would YOU want to automate within the shell?<br />Your ideas will drive our discovery of commands and capabilities… so start coming up with ideas!<br />
  9. 9. Starting Commands<br />Get-SPSite (get site collections)<br />Get-SPWeb (get Webs)<br />Try this:Get-SPSite –limit All |Get-SPWeb –limit All |Where { -not $_.RequestAccessEnabled }<br />
  10. 10. Limits<br />Most Get-SP* commands limit to 20 objects<br />Use –Limit to change that; either numeric or “All.”<br />Be aware of potential performance issues with large result sets – avoid doing so on production servers unless necessary<br />
  11. 11. Filters<br />Most Get-SP* commands also include a –filter parameter<br />Limits the results to just those that meet the filter criteria<br />Best way to filter – as opposed to using Where – if the property you want to filter on is supported<br />
  12. 12. Supported Filters<br />Get-SPSite<br />Owner<br />Secondary Onwer<br />LockState<br />Get-SPWeb<br />Title<br />Template<br />Get-SPWeb –filter {$_.Template –eq ’Blog’ }<br />
  13. 13. Farms<br />Get-SPFarm<br />Get-SPFarmConfig<br />Backup-SPFarm<br />Restore-SPFarm<br />
  14. 14. Servers<br />Get-SPServer [[-Identity] name]<br />Get-SPServer | Where { $_.Role –eq "Application" }<br />
  15. 15. Web Applications<br />New-SPWebApplication<br />Get-SPWebApplication<br />Remove-SPWebApplication<br />
  16. 16. Sites<br />New-SPSite<br />Get-SPSite<br />Get-SPSiteAdministration<br />Backup-SPSite<br />Remove-SPSite<br />
  17. 17. Webs<br />New-SPWeb<br />Get-SPWeb<br />Remove-SPWeb<br />
  18. 18. NOW… let’s do some Q&A<br />I’ve got more demos to show you, but want to make sure I address your questions<br />Ask ‘em now!<br />The remainder of the session will be additional demos<br />
  19. 19. Final Q&A<br />Text DONJ to 50500 for contact info<br />See me for add’l resources<br />Books<br />Workshop recordings<br />Demo videos<br />Etc<br />Slide decks posted to ConcentratedTech.com by next week<br />
  20. 20. Final Notes…<br />Please be sure to submit a session evaluation form!<br />Download slides & materials from www.ConcentratedTech.com within one week!<br />Blog, URLs, and other information is also available at www.ConcentratedTech.com for your reference<br />More resources at www.ShellHub.com<br />Thank you very much!<br />
  21. 21. Your Feedback is Important<br />Please fill out a session evaluation form.<br />Thank you!<br />
  22. 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.<br />For more information on our company, including information on private classes and upcoming conference appearances, please visit our Web site, www.ConcentratedTech.com. <br />For links to newly-posted decks, follow us on Twitter:@concentrateddon or @concentratdgreg<br />This work is copyright ©Concentrated Technology, LLC<br />
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×