Export (0) Print
Expand All
Expand Minimize

Get-CMSite

Updated: February 7, 2014

Applies To: System Center 2012 R2 Configuration Manager

Get-CMSite

Gets one or more Configuration Manager sites.

Syntax

Parameter Set: SearchByName
Get-CMSite [-Name <String> ] [ <CommonParameters>]

Parameter Set: SearchBySiteCodeMandatory
Get-CMSite -SiteCode <String> [ <CommonParameters>]




Detailed Description

The Get-CMSite cmdlet gets one or more Microsoft System Center 2012 Configuration Manager sites. A System Center 2012 Configuration Manager site is a server that has clients assigned to it and that processes client-generated data. You can get a Configuration Manager site by using either a site name or a site code.

Parameters

-Name<String>

Specifies the name of a Configuration Manager site.


Aliases

SiteName

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-SiteCode<String>

Specifies a site code for a Configuration Manager site.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

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

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Get a site by using a site name

This command gets a System Center 2012 Configuration Manager site by using the site name CMSiteSystem.


PS C:\> Get-CMSite -SiteName "CMSiteSystem"

Related topics

 
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft