1 / 25

SPSite & SPWebs

SPSite & SPWebs. SharePoint + PowerShell User Group November 21, 2012. Agenda. Hello! Group Logistics ( GoToMeeting / website / register / email / twitter) SPSite & SPWeb Useful Scripts Next meeting SURVEY!!!. Survey. Excel Survey (via SkyDrive) http :// sdrv.ms/T49Afu

uri
Download Presentation

SPSite & SPWebs

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. SPSite & SPWebs SharePoint + PowerShell User Group November 21, 2012

  2. Agenda Hello! Group Logistics (GoToMeeting/ website / register / email / twitter) SPSite & SPWeb Useful Scripts Next meeting SURVEY!!!

  3. Survey • Excel Survey (via SkyDrive) • http://sdrv.ms/T49Afu More info on Excel Surveys • http://blogs.office.com/b/microsoft-excel/archive/2012/11/16/excel-surveys.aspx

  4. Hello! Raymond Mitchell • SharePoint Consultant • http://www.Rackspace.com • Author • Dad • Information Worker Kid • http://www.iwkid.com • SharePoSHing since 2008

  5. What about you?

  6. SPSite & SPWeb SPSite = Site Collection SPWeb = Web Site

  7. SPSite & SPWeb • Get-SPSite • Shows 20 by default • Use -Limit ALL to show all • Can limit by URL, Content Database, Web Application

  8. SPSite & SPWeb Find SPSite Properties $site | gm | ? { $_.Definition.ToLower().Contains("database") } | ft

  9. SPSite & SPWeb ContentDatabase Owner RecycleBinSPRecycleBinItemCollection

  10. SPSite & SPWeb • Site Collections are a containment object • SPWebCollection • Galleries • Web Parts • Site Columns • Content Types • List/Web Templates

  11. SPSite & SPWeb • GetCatalog(SPListTemplateType) • WebTemplateCatalogSite template gallery. Value = 111. • WebPartCatalogWeb Part gallery. Value = 113. • ListTemplateCatalogList Template gallery. Value = 114. • MasterPageCatalogMaster Page gallery. Value = 116. http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splisttemplatetype.aspx

  12. SPSite & SPWeb GetCustomListTemplates GetCustomWebTemplates GetWebTemplates(LCID)

  13. SPSite & SPWeb Creating a new SPSite New-SPSite -url ... -OwnerAlias ... -Name ... -Template ...

  14. SPSite & SPWeb SPSite = Site Collection SPWeb = Web Site

  15. SPSite & SPWeb • SPSite.RootWeb • SPSite.AllWebs • Get-SPWeb • By URL • By SPSite • By Filter:$site | Get-SPWeb-filter {$_.Template -eq "STS#1"}

  16. SPSite & SPWeb • Lists • Folders / Files • Navigation • QuickLaunch • TopNavigationBar • TreeViewEnabled • RecycleBin • IsRootWeb • WebTemplate, WebTemplateId

  17. SPSite & SPWeb ListTemplates WorkflowTemplates AvailableContentTypesvsContentTypes AvailableFieldsvsFields

  18. SPSite & SPWeb • Properties (SPPropertyBag)vsAllProperties (Hashtable) • Use AllProperties! • AddProperty() • DeleteProperty()

  19. SPSite & SPWeb Groups (only those with assigned permissions) SiteGroups (all groups) Users SiteUsers Roles (obsolete) RoleDefinitions RoleAssignments

  20. SPSite & SPWeb Creating a new SPWeb New-SPWeb http://localhost/test - Template "STS#0" http://technet.microsoft.com/en-us/library/ff607579.aspx

  21. YOUR scripts!

  22. YOUR scripts! • Jason Himmelstein (@sharepointlhorn) • Automatically log your PowerShell session every time • http://www.sharepointlonghorn.com/Lists/Posts/Post.aspx?ID=78

  23. Next Meeting Wednesday, December 19th SharePoint Solutions & Features Matthias Einig (@mattein)SharePoint Solution Deployerhttp://spsd.codeplex.com

  24. Resources • PowerShell + SharePoint forum at PowerShell.org: • http://powershell.org/discuss/viewforum.php?f=12 • PowerShell Summit: April 22-24http://powershell.org/summit

  25. Survey • Excel Survey (via SkyDrive) • http://sdrv.ms/T49Afu More info on Excel Surveys • http://blogs.office.com/b/microsoft-excel/archive/2012/11/16/excel-surveys.aspx

More Related