Skip to content

Latest commit

 

History

History
209 lines (158 loc) · 3.8 KB

Get-KshSite.md

File metadata and controls

209 lines (158 loc) · 3.8 KB
external help file Module Name online version schema
SPClientCore.dll-Help.xml
SPClientCore
2.0.0

Get-KshSite

SYNOPSIS

Retrieves one or more sites.

SYNTAX

ParamSet1

Get-KshSite [-Identity] <Site> [-ProgressAction <ActionPreference>] [<CommonParameters>]

ParamSet2

Get-KshSite [-SiteCollection] <SiteCollection> [-ProgressAction <ActionPreference>] [<CommonParameters>]

ParamSet3

Get-KshSite [-List] <List> [-ProgressAction <ActionPreference>] [<CommonParameters>]

ParamSet4

Get-KshSite [-SiteId] <Guid> [-ProgressAction <ActionPreference>] [<CommonParameters>]

ParamSet5

Get-KshSite [-SiteUrl] <Uri> [-ProgressAction <ActionPreference>] [<CommonParameters>]

ParamSet6

Get-KshSite [-NoEnumerate] [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

The Get-KshSite cmdlet retrieves sub sites of the current site. In order to retrive a site of different site collections, invoke the Connect-KshSite cmdlet.

EXAMPLES

Example 1

PS C:\> Get-KshSite -SiteCollection (Get-KshCurrentSiteCollection)

Retrieves a root site of the site collection.

Example 2

PS C:\> Get-KshSite -List (Get-KshList -ListTitle 'Announcements')

Retrieves a parent site of the list.

Example 3

PS C:\> Get-KshSite -SiteId 'd298e576-6985-4119-9796-050b9f371872'

Retrieves a site by site ID.

Example 4

PS C:\> Get-KshSite -SiteUrl '/sites/japan/hr'

Retrieves a site by site URL.

Example 5

PS C:\> Get-KshSite

Retrieves all sites.

PARAMETERS

-Identity

Specifies the site.

Type: Site
Parameter Sets: ParamSet1
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-List

Specifies the list.

Type: List
Parameter Sets: ParamSet3
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-NoEnumerate

If specified, suppresses to enumerate objects.

Type: SwitchParameter
Parameter Sets: ParamSet6
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-SiteCollection

Specifies the site collection.

Type: SiteCollection
Parameter Sets: ParamSet2
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-SiteId

Specifies the site ID.

Type: Guid
Parameter Sets: ParamSet4
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-SiteUrl

Specifies the site URL.

Type: Uri
Parameter Sets: ParamSet5
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider.

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

Karamem0.SharePoint.PowerShell.Models.V1.Site

Karamem0.SharePoint.PowerShell.Models.V1.SiteCollection

Karamem0.SharePoint.PowerShell.Models.V1.List

OUTPUTS

Karamem0.SharePoint.PowerShell.Models.V1.Site

NOTES

RELATED LINKS