Share via


Get-ControlPanelItem

제어판 항목을 가져옵니다.

Syntax

Get-ControlPanelItem
   [[-Name] <String[]>]
   [-Category <String[]>]
   [<CommonParameters>]
Get-ControlPanelItem
   -CanonicalName <String[]>
   [-Category <String[]>]
   [<CommonParameters>]

Description

cmdlet은 Get-ControlPanelItem 로컬 컴퓨터에서 제어판 항목을 가져옵니다. 이 cmdlet을 사용하면 사용자 인터페이스가 없는 시스템에서도 이름, 범주 또는 설명으로 제어판 항목을 찾을 수 있습니다.

이 cmdlet은 시스템에서 열 수 있는 제어판 항목만 가져옵니다. 제어판 또는 파일 탐색기 없는 컴퓨터에서 이 cmdlet은 이러한 구성 요소 없이 열 수 있는 제어판 항목만 가져옵니다.

이 cmdlet은 Windows PowerShell 3.0에서 도입되었습니다. Windows 8 및 Windows Server 2012 이상에서만 작동합니다.

예제

예제 1: 모든 제어판 항목 가져오기

이 명령은 로컬 컴퓨터의 모든 제어판 항목을 가져옵니다.

Get-ControlPanelItem

Name                          CanonicalName                 Category                      Description
----                          -------------                 --------                      -----------
Action Center                 Microsoft.ActionCenter        {System and Security}         Review recent messages and...
Administrative Tools          Microsoft.AdministrativeTools {System and Security}         Configure administrative s...
AutoPlay                      Microsoft.AutoPlay            {Hardware}                    Change default settings fo...
BitLocker Drive Encryption    Microsoft.BitLockerDriveEn... {System and Security}         Protect your computer usin...
Color Management              Microsoft.ColorManagement     {All Control Panel Items}     Change advanced color mana...
Credential Manager            Microsoft.CredentialManager   {User Accounts}               Manage your Windows Creden...
Date and Time                 Microsoft.DateAndTime         {Clock, Language, and Region} Set the date, time, and ti...
...

예제 2: 이름으로 제어판 항목 가져오기

이 예제에서는 이름에 Program 또는 App이 있는 제어판 항목을 가져옵니다.

Get-ControlPanelItem -Name "*Program*", "*App*"

예제 3: 범주별 제어판 항목 가져오기

이 명령은 이름에 보안이 있는 범주의 모든 제어판 항목을 가져옵니다.

Get-ControlPanelItem -Category "*Security*"

예제 4: 제어판 항목 열기

다음은 로컬 컴퓨터에서 Windows 방화벽 제어판 항목을 여는 예제입니다.

Get-ControlPanelItem -Name "Windows Firewall" | Show-ControlPanelItem

cmdlet은 Get-ControlPanelItem 제어판 항목을 가져옵니다. cmdlet이 Show-ControlPanelItem 열립니다.

예제 5: 원격 컴퓨터에서 제어판 항목 가져오기

이 예제에서는 Server01 원격 컴퓨터에서 BitLocker 드라이브 암호화 제어판 항목을 가져옵니다. cmdlet은 Invoke-Command cmdlet을 Get-ControlPanelItem 원격으로 실행합니다.

Invoke-Command -ComputerName "Server01" {Get-ControlPanelItem -Name "BitLocker*" }

예제 6: 제어판 항목에 대한 설명 검색

다음은 제어판 항목의 Description 속성을 검색하여 디바이스라는 이름만 포함하는 항목만 가져오는 예제입니다.

Get-ControlPanelItem | Where-Object {$_.Description -like "*Device*"}

Name                    CanonicalName                 Category    Description
----                    -------------                 --------    -----------
AutoPlay                Microsoft.AutoPlay            {Hardware}  Change default settings fo...
Devices and Printers    Microsoft.DevicesAndPrinters  {Hardware}  View and manage devices, p...
Sound                   Microsoft.Sound               {Hardware}  Configure your audio devic...

cmdlet은 Get-ControlPanelItem 모든 제어판 항목을 가져옵니다. cmdlet은 Where-Object Description 속성 값으로 항목을 필터링합니다.

매개 변수

-CanonicalName

이 cmdlet이 가져오는 정식 이름 또는 이름 패턴별로 제어판 항목을 문자열 배열로 지정합니다. 야생카드 허용됩니다. 여러 이름을 입력하는 경우 이 cmdlet은 이름 목록의 항목이 "or" 연산자로 구분된 것처럼 이름과 일치하는 제어판 항목을 가져옵니다.

기본적으로 이 cmdlet은 시스템의 모든 제어판 항목을 가져옵니다.

Type:String[]
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:True

-Category

문자열 배열로 이 cmdlet이 가져오는 지정된 범주에 있는 제어판 항목의 범주를 지정합니다. 범주 이름 또는 이름 패턴을 입력합니다. 야생카드 허용됩니다. 여러 이름을 입력하는 경우 이 cmdlet은 이름 목록의 항목이 "or" 연산자로 구분된 것처럼 이름과 일치하는 제어판 항목을 가져옵니다. 기본적으로 이 cmdlet은 시스템의 모든 제어판 항목을 가져옵니다.

Type:String[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:True

-Name

문자열 배열로 이 cmdlet이 가져오는 제어판의 이름 또는 이름 패턴을 지정합니다. 야생카드 허용됩니다. 이름 또는 이름 패턴을 이 cmdlet으로 파이프할 수도 있습니다.

Type:String[]
Position:0
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:True

입력

String

이름 또는 이름 패턴을 이 cmdlet으로 파이프할 수 있습니다.

출력

ControlPanelItem

이 cmdlet은 로컬 컴퓨터에서 제어판 항목을 가져옵니다.