Name
Get-Subsite
Description
The command to get subsites from a SharePoint site.
Index
Examples
Get All Subsites
$site = Connect-Site -Url "http://myfarm1/sites/mysitecollection" Get-Subsite -Site $site
Get Subsites Matching Name
$site = Connect-Site -Url "http://myfarm1/sites/mysitecollection" Get-Subsite -Site $site -Name MyName*,MySpecificName
Note: The * symbol is used to call multiple objects with a similar name.
Get Subsites Matching Id
$site = Connect-Site -Url "http://myfarm1/sites/mysitecollection" Get-Subsite -Site $site -Id 65412fd4a-8790-4b69-9ae4-546121b4e95f
Syntax
Get-Subsite -Site <Site>
[-Name <String[]>]
[-Id <String[]>]
Parameters
-Id <String[]>
Specifies the id (Wildcards supported).
Required? | False |
Default value | None |
Accept pipeline input? | False |
Accept wildcard characters? | True |
Parameter set name | (All) |
Aliases | None |
-Name <String[]>
Specifies the name (Wildcards supported).
Required? | False |
Default value | None |
Accept pipeline input? | False |
Accept wildcard characters? | True |
Parameter set name | (All) |
Aliases | None |
-Site <Site>
Specifies the SharePoint site.
Required? | True |
Default value | None |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Accept wildcard characters? | False |
Parameter set name | (All) |
Aliases | None |