Get-CMSite

Gets one or more Configuration Manager sites.

Syntax

Get-CMSite
   [[-SiteCode] <String>]
   [-Name <String>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]

Description

The Get-CMSite cmdlet gets one or more Microsoft System Center Configuration Manager sites. A System Center 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.

Examples

Example 1: Get a site by using a site name

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

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

Optional Parameters

-DisableWildcardHandling

DisableWildcardHandling treats wildcard characters as literal character values. Cannot be combined with ForceWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

ForceWildcardHandling processes wildcard characters and may lead to unexpected behavior (not recommended). Cannot be combined with DisableWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Specifies the name of a Configuration Manager site.

Type:String
Aliases:SiteName
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SiteCode

Specifies a site code for a Configuration Manager site.

Type:String
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False