PS SharePoSH:\> SPSite & SPWebs SharePoint + PowerShell User Group November 21, 2012
PS SharePoSH:\> Agenda Hello! Group Logistics (GoToMeeting/ website / register / / twitter) SPSite & SPWeb Useful Scripts Next meeting SURVEY!!!
PS SharePoSH:\> Survey Excel Survey (via SkyDrive) – More info on Excel Surveys – excel/archive/2012/11/16/excel-surveys.aspx excel/archive/2012/11/16/excel-surveys.aspx
PS SharePoSH:\> Raymond Mitchell SharePoint Consultant – Author Dad Information Worker Kid – SharePoSHing since 2008 Hello!
PS SharePoSH:\> What about you?
PS SharePoSH:\> SPSite & SPWeb SPSite = Site Collection SPWeb = Web Site
PS SharePoSH:\> SPSite & SPWeb Get-SPSite – Shows 20 by default – Use -Limit ALL to show all – Can limit by URL, Content Database, Web Application
PS SharePoSH:\> SPSite & SPWeb Find SPSite Properties $site | gm | ? { $_.Definition. ToLower().Contains (" database ") } | ft
PS SharePoSH:\> SPSite & SPWeb ContentDatabase Owner RecycleBinSPRecycleBinItemCollection
PS SharePoSH:\> SPSite & SPWeb Site Collections are a containment object – SPWebCollection – Galleries Web Parts Site Columns Content Types List/Web Templates
PS SharePoSH:\> SPSite & SPWeb GetCatalog(SPListTemplateType) – WebTemplateCatalogSite template gallery. Value = 111. – WebPartCatalogWeb Part gallery. Value = 113. – ListTemplateCatalogList Template gallery. Value = 114. – MasterPageCatalogMaster Page gallery. Value = us/library/microsoft.sharepoint.splisttemplatetype.aspx
PS SharePoSH:\> SPSite & SPWeb GetCustomListTemplates GetCustomWebTemplates GetWebTemplates(LCID)
PS SharePoSH:\> SPSite & SPWeb Creating a new SPSite New-SPSite -url... -OwnerAlias... -Name... -Template...
PS SharePoSH:\> SPSite & SPWeb SPSite = Site Collection SPWeb = Web Site
PS SharePoSH:\> SPSite & SPWeb SPSite.RootWeb SPSite.AllWebs Get-SPWeb – By URL – By SPSite By Filter: $site | Get-SPWeb -filter {$_.Template -eq " STS#1 "}
PS SharePoSH:\> SPSite & SPWeb Lists Folders / Files Navigation – QuickLaunch – TopNavigationBar TreeViewEnabled RecycleBin IsRootWeb WebTemplate, WebTemplateId
PS SharePoSH:\> SPSite & SPWeb ListTemplates WorkflowTemplates AvailableContentTypes vs ContentTypes AvailableFields vs Fields
PS SharePoSH:\> SPSite & SPWeb Properties (SPPropertyBag) vs AllProperties (Hashtable) – Use AllProperties! – AddProperty() – DeleteProperty()
PS SharePoSH:\> SPSite & SPWeb Groups (only those with assigned permissions) SiteGroups (all groups) Users SiteUsers Roles (obsolete) RoleDefinitions RoleAssignments
PS SharePoSH:\> SPSite & SPWeb Creating a new SPWeb New-SPWeb - Template "STS#0"
PS SharePoSH:\> YOUR scripts!
PS SharePoSH:\> YOUR scripts! Jason Himmelstein – Automatically log your PowerShell session every time – Post.aspx?ID=78 Post.aspx?ID=78
PS SharePoSH:\> Next Meeting Wednesday, December 19 th SharePoint Solutions & Features Matthias Einig SharePoint Solution Deployer
PS SharePoSH:\> Resources PowerShell + SharePoint forum at PowerShell.org: – PowerShell Summit: April
PS SharePoSH:\> Survey Excel Survey (via SkyDrive) – More info on Excel Surveys – excel/archive/2012/11/16/excel-surveys.aspx excel/archive/2012/11/16/excel-surveys.aspx