Skip to main content
Get Site Column
Updated this week

Name

Get-SiteColumn

Description

The command to get site columns from a SharePoint site.

Index

Examples

Get All Site Columns

$site = Connect-Site -Url "http://myfarm1/sites/mysitecollection"
Get-SiteColumn -Site $site

Get Site Columns Matching Name

$site = Connect-Site -Url "http://myfarm1/sites/mysitecollection"
Get-SiteColumn -Site $site -Name MyName*,MySpecificName

Note: The * symbol is used to call multiple objects with a similar name.

Get Site Columns Matching Id

$site = Connect-Site -Url "http://myfarm1/sites/mysitecollection"
Get-SiteColumn -Site $site -Id feadb576-5d48-484e-a66e-1494f21f452d

Syntax

Get-SiteColumn-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

Did this answer your question?