리소스 URI에 지정된 리소스 인스턴스에 대한 관리 정보를 표시합니다.
구문
Get-WSManInstance -SelectorSet <hashtable> [-ApplicationName <string>] [-ComputerName <string>] [-Credential <PSCredential>] [-Fragment <string>] [-Port <int>] [-UseSSL] [-ResourceURI] <Uri> [-Authentication <Authentication>] [-Dialect <Uri>] [-OptionSet <hashtable>] [-SessionOption <hashtable>] [<CommonParameters>] Get-WSManInstance [-ApplicationName <string>] [-BasePropertiesOnly <switch>] [-ComputerName <string>] [-Credential <PSCredential>] [-Enumerate] [-filter <string>] [-Port <int>] [-References <switch>] [-ReturnType <string>] [-Shallow <switch>] [-UseSSL] [-ResourceURI] <Uri> [-Authentication <Authentication>] [-Dialect <Uri>] [-OptionSet <hashtable>] [-SessionOption <hashtable>] [<CommonParameters>] Get-WSManInstance -ConnectionURI <Uri> -SelectorSet <hashtable> [-Fragment <string>] [-ResourceURI] <Uri> [-Authentication <Authentication>] [-Dialect <Uri>] [-OptionSet <hashtable>] [-SessionOption <hashtable>] [<CommonParameters>] Get-WSManInstance -ConnectionURI <Uri> [-BasePropertiesOnly <switch>] [-Enumerate] [-filter <string>] [-References <switch>] [-ReturnType <string>] [-Shallow <switch>] [-ResourceURI] <Uri> [-Authentication <Authentication>] [-Dialect <Uri>] [-OptionSet <hashtable>] [-SessionOption <hashtable>] [<CommonParameters>]
설명
Get-WSManInstance cmdlet은 리소스 URI로 지정된 관리 리소스 인스턴스를 검색합니다. 검색된 정보는 복잡한 XML 정보 집합(개체) 또는 간단한 값일 수 있습니다. 이 cmdlet은 표준 WS-Management Get 명령과 동일합니다.
이 cmdlet은 WS-Management 연결/전송 계층을 사용하여 정보를 검색합니다.
매개 변수
-ApplicationName <string>
연결의 응용 프로그램 이름을 지정합니다. ApplicationName 매개 변수의 기본값은 "WSMAN"입니다. 원격 끝점에 대한 전체 식별자는 다음 형식을 사용합니다.
<transport>://<server>:<port>/<ApplicationName>
예를 들면 다음과 같습니다.
http://server01:8080/WSMAN
세션을 호스트하는 IIS(인터넷 정보 서비스)는 이 끝점이 있는 요청을 지정된 응용 프로그램으로 전달합니다. 대부분의 경우 이 "WSMAN" 기본 설정을 사용하면 됩니다. 이 매개 변수는 많은 컴퓨터가 Windows PowerShell을 실행하는 한 컴퓨터로 원격 연결을 설정하는 경우에 사용하도록 설계되었습니다. 이 경우 효율성을 위해 IIS는 WS-Management(Web Services for Management)를 호스트합니다.
필수 여부 |
false |
위치 |
named |
기본값 |
wsman |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 적용 여부 |
false |
-Authentication <Authentication>
서버에서 사용할 인증 메커니즘을 지정합니다. 사용할 수 있는 값:
- Basic: Basic은 사용자 이름 및 암호를 서버 또는 프록시에 일반 텍스트로 보내는 체계입니다.
- Default: WS-Management 프로토콜에서 구현하는 인증 방법을 사용합니다. 기본값입니다.
- Digest: Digest는 시도에 대해 서버 지정 데이터 문자열을 사용하는 시도-응답 체계입니다.
- Kerberos: 클라이언트 컴퓨터와 서버가 Kerberos 인증서를 사용하여 상호 인증합니다.
- Negotiate: Negotiate는 서버 또는 프록시와 협상하여 인증에 사용할 체계를 결정하는 시도-응답 체계입니다. 예를 들어 이 매개 변수 값은 협상을 통해 Kerberos 프로토콜 또는 NTLM 중 어느 것을 사용할지 결정할 수 있도록 허용합니다.
- CredSSP: 사용자가 자격 증명을 위임할 수 있는 CredSSP(자격 증명 보안 서비스 공급자) 인증을 사용합니다. 이 옵션은 한 원격 컴퓨터에서 실행되지만 다른 원격 컴퓨터에서 데이터를 수집하거나 추가 명령을 실행하는 명령에 사용하도록 설계되었습니다.
주의: CredSSP는 사용자의 자격 증명을 로컬 컴퓨터에서 원격 컴퓨터로 위임합니다. 이렇게 하면 원격 작업의 보안 위험이 높아집니다. 원격 컴퓨터가 손상된 경우 자격 증명이 이 컴퓨터로 전달되면 이 자격 증명을 사용하여 네트워크 세션을 제어할 수 있습니다.
필수 여부 |
false |
위치 |
named |
기본값 |
Default |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 적용 여부 |
false |
-BasePropertiesOnly <switch>
ResourceURI 매개 변수로 지정된 기본 클래스에 포함된 속성만 열거합니다. Shallow 매개 변수가 지정된 경우 이 매개 변수는 영향을 주지 않습니다.
필수 여부 |
false |
위치 |
named |
기본값 |
|
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 적용 여부 |
false |
-ComputerName <string>
관리 작업을 실행할 컴퓨터를 지정합니다. 값은 정규화된 도메인 이름, NetBIOS 이름 또는 IP 주소일 수 있습니다. 로컬 컴퓨터 이름, localhost 또는 점(.)을 사용하여 로컬 컴퓨터를 지정합니다. 기본값은 로컬 컴퓨터입니다. 원격 컴퓨터가 사용자와 다른 도메인에 있는 경우 정규화된 도메인 이름을 사용해야 합니다. 이 매개 변수의 값을 cmdlet으로 파이프할 수 있습니다.
필수 여부 |
false |
위치 |
named |
기본값 |
localhost |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 적용 여부 |
false |
-ConnectionURI <Uri>
연결 끝점을 지정합니다. 이 문자열의 형식은 다음과 같습니다.
<Transport>://<Server>:<Port>/<ApplicationName>
다음 문자열은 형식이 제대로 지정된 이 매개 변수의 값입니다.
http://Server01:8080/WSMAN
URI는 정규화된 URI여야 합니다.
필수 여부 |
true |
위치 |
named |
기본값 |
|
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 적용 여부 |
false |
-Credential <PSCredential>
이 작업을 수행할 수 있는 권한을 가진 사용자 계정을 지정합니다. 기본값은 현재 사용자입니다. "User01", "Domain01\User01" 또는 "User@Domain.com"과 같은 사용자 이름을 입력합니다. 또는 Get-Credential cmdlet에서 반환된 개체와 같은 PSCredential 개체를 입력합니다. 사용자 이름을 입력하면 암호를 묻는 메시지가 표시됩니다.
필수 여부 |
false |
위치 |
named |
기본값 |
|
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 적용 여부 |
false |
-Dialect <Uri>
필터 조건자에서 사용할 언어를 지정합니다. 원격 서비스에서 지원하는 어떠한 언어도 될 수 있습니다. 언어 URI에 다음 별칭을 사용할 수 있습니다.
- WQL: https://schemas.microsoft.com/wbem/wsman/1/WQL
- Selector: https://schemas.microsoft.com/wbem/wsman/1/wsman/SelectorFilter
- Association: https://schemas.dmtf.org/wbem/wsman/1/cimbinding/associationFilter
필수 여부 |
false |
위치 |
named |
기본값 |
https://schemas.microsoft.com/wbem/wsman/1/WQL |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 적용 여부 |
false |
-Enumerate
관리 리소스의 모든 인스턴스를 반환합니다.
필수 여부 |
false |
위치 |
named |
기본값 |
|
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 적용 여부 |
false |
-filter <string>
열거형에 대한 필터 식을 지정합니다. 이 매개 변수를 사용할 경우 Dialect 매개 변수도 지정해야 합니다.
이 매개 변수의 유효한 값은 Dialect 매개 변수에 지정된 언어에 따라 달라집니다. 예를 들어 Dialect 매개 변수가 WQL로 설정된 경우 Filter 매개 변수에 문자열이 포함되어야 하며, 문자열에 다음 쿼리와 같은 올바른 WQL 쿼리가 포함되어야 합니다.
"Select * from Win32_Service where State != Running"
Dialect 매개 변수가 Association으로 설정된 경우 Filter 매개 변수에 문자열이 포함되어야 하며, 문자열에 다음 필터와 같은 올바른 필터가 포함되어야 합니다.
-filter:Object=EPR[;AssociationClassName=AssocClassName][;ResultClassName=ClassName][;Role=RefPropertyName][;ResultRole=RefPropertyName]}
필수 여부 |
false |
위치 |
named |
기본값 |
|
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 적용 여부 |
false |
-Fragment <string>
지정된 작업에 대해 업데이트 또는 검색할 인스턴스 내의 섹션을 지정합니다. 예를 들어 스풀러 서비스의 상태를 가져오려면 "-Fragment Status"를 지정합니다.
필수 여부 |
false |
위치 |
named |
기본값 |
|
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 적용 여부 |
false |
-OptionSet <hashtable>
요청의 특징을 수정하거나 구체화하기 위해 서비스로 스위치 집합을 전달합니다. 이러한 스위치는 서비스에 따라 달라진다는 점에서 명령줄 셸에 사용되는 스위치와 유사합니다. 원하는 개수만큼 옵션을 지정할 수 있습니다.
다음 예에서는 a, b 및 c 매개 변수에 값 1, 2 및 3을 전달하는 구문을 보여 줍니다.
-OptionSet @{a=1;b=2;c=3}
필수 여부 |
false |
위치 |
named |
기본값 |
|
파이프라인 입력 적용 여부 |
true (ByValue, ByPropertyName) |
와일드카드 문자 적용 여부 |
false |
-Port <int>
클라이언트가 WinRM 서비스에 연결할 때 사용할 포트를 지정합니다. 전송이 HTTP인 경우 기본 포트는 80입니다. 전송이 HTTPS인 경우 기본 포트는 443입니다. 전송으로 HTTPS를 사용하는 경우 ComputerName 매개 변수 값이 서버의 인증서 CN(일반 이름)과 일치해야 합니다. 하지만 SkipCNCheck 매개 변수가 SessionOption 매개 변수의 일부로 지정된 경우에는 서버의 인증서 일반 이름이 서버의 호스트 이름과 일치하지 않아도 됩니다. SkipCNCheck 매개 변수는 신뢰할 수 있는 컴퓨터에 대해서만 사용해야 합니다.
필수 여부 |
false |
위치 |
named |
기본값 |
|
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 적용 여부 |
false |
-References <switch>
연결된 인스턴스가 아닌 연결 인스턴스가 검색되어야 함을 나타냅니다. 이 매개 변수는 Dialect 매개 변수가 "Association" 값으로 설정된 경우에만 사용할 수 있습니다.
필수 여부 |
false |
위치 |
named |
기본값 |
|
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 적용 여부 |
false |
-ResourceURI <Uri>
리소스 클래스 또는 인스턴스의 URI(Uniform Resource Identifier)를 포함합니다. URI는 컴퓨터에서 디스크 또는 프로세스와 같은 특정 리소스 유형을 식별하는 데 사용됩니다.
URI는 접두사와 리소스에 대한 경로로 구성됩니다. 예를 들면 다음과 같습니다.
https://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/Win32_LogicalDisk
https://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_NumericSensor
필수 여부 |
true |
위치 |
1 |
기본값 |
|
파이프라인 입력 적용 여부 |
true (ByValue, ByPropertyName) |
와일드카드 문자 적용 여부 |
false |
-ReturnType <string>
반환할 데이터의 유형을 지정합니다. 유효한 값은 다음과 같습니다.
Object(기본값)
EPR
ObjectAndEPR
Object를 지정하거나 이 매개 변수를 사용하지 않으면 개체만 반환됩니다. EPR(끝점 참조)을 지정하면 개체의 끝점 참조만 반환됩니다. 끝점 참조는 인스턴스의 선택기 및 리소스 URI에 대한 정보를 포함합니다. ObjectAndEPR을 지정하면 개체 및 연결된 끝점 참조가 모두 반환됩니다.
필수 여부 |
false |
위치 |
named |
기본값 |
Object |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 적용 여부 |
false |
-SelectorSet <hashtable>
특정 관리 리소스 인스턴스를 선택하는 데 사용되는 값 쌍의 집합을 지정합니다. SelectorSet 매개 변수는 리소스의 인스턴스가 두 개 이상 있을 때 사용됩니다. SelectorSet 매개 변수 값은 해시 테이블이어야 합니다.
다음 예에서는 이 매개 변수의 값을 입력하는 방법을 보여 줍니다.
-SelectorSet @{Name="WinRM";ID="yyy"}
필수 여부 |
true |
위치 |
named |
기본값 |
|
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 적용 여부 |
false |
-SessionOption <hashtable>
WS-Management 세션에 대한 확장 옵션 집합을 정의합니다. New-WSManSessionOption cmdlet을 사용하여 만든 SessionOption 개체를 입력합니다. 사용할 수 있는 옵션에 대한 자세한 내용은 New-WSManSessionOption을 참조하십시오.
필수 여부 |
false |
위치 |
named |
기본값 |
|
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 적용 여부 |
false |
-Shallow <switch>
리소스 URI에 지정된 기본 클래스의 인스턴스만 반환되도록 합니다. 이 스위치를 지정하지 않으면 URI 및 모든 파생 클래스에 지정된 기본 클래스 인스턴스가 반환됩니다.
필수 여부 |
false |
위치 |
named |
기본값 |
|
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 적용 여부 |
false |
-UseSSL
SSL(Secure Sockets Layer) 프로토콜을 사용하여 원격 컴퓨터에 연결해야 하도록 지정합니다. 기본적으로 SSL은 사용되지 않습니다.
WS-Management는 네트워크로 전송되는 모든 Windows PowerShell 콘텐츠를 암호화합니다. UseSSL 매개 변수를 사용하면 HTTP 대신 HTTPS의 추가적인 보호 기능을 지정할 수 있습니다. 연결에 사용되는 포트에서 SSL을 사용할 수 없는 경우 이 매개 변수를 지정하면 명령이 실패합니다.
필수 여부 |
false |
위치 |
named |
기본값 |
|
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 적용 여부 |
false |
<CommonParameters>
이 cmdlet은 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, -OutVariable 등의 일반 매개 변수를 지원합니다. 자세한 내용은 about_Commonparameters.
입력 및 출력
입력 유형은 cmdlet으로 파이프할 수 있는 개체의 유형입니다. 반환 유형은 cmdlet에서 반환되는 개체의 유형입니다.
입력 |
없음 이 명령은 어떠한 입력도 받지 않습니다. |
출력 |
System.Xml.XmlElement Get-WSManInstance cmdlet은 XMLElement 개체를 생성합니다. |
예 1
C:\PS>get-wsmaninstance wmicimv2/win32_service -selectorset @{name="winrm"} -computername server01 xsi : http://www.w3.org/2001/XMLSchema-instance p : https://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/Win32_Service cim : https://schemas.dmtf.org/wbem/wscim/1/common type : p:Win32_Service_Type lang : en-US AcceptPause : false AcceptStop : true Caption : Windows Remote Management (WS-Management) CheckPoint : 0 CreationClassName : Win32_Service Description : Windows Remote Management (WinRM) service implements the WS-Management protocol for remote management. WS-Management is a standard web services protocol used for remote software and hardware management. The WinRM service listens on the network for WS-Management requests and processes them. The WinRM Service needs to be configured with a listener using the winrm.cmd command line tool or through Group Policy in order for it to listen over the network. The WinRM service provides access to WMI data and enables event collection. Event collection and subscription to events require that the service is running. WinRM messages use HTTP and HTTPS as transports. The WinRM service does not depend on IIS but is preconfigured to share a port with IIS on the same machine. The WinRM service reserves the /wsman URL prefix. To prevent conflicts with IIS, administrators should ensure that any websites hosted on IIS do not use the /wsman URL prefix. DesktopInteract : false DisplayName : Windows Remote Management (WS-Management) ErrorControl : Normal ExitCode : 0 InstallDate : InstallDate Name : winrm PathName : C:\Windows\System32\svchost.exe -k NetworkService ProcessId : 948 ServiceSpecificExitCode : 0 ServiceType : Share Process Started : true StartMode : Auto StartName : NT AUTHORITY\NetworkService State : Running Status : OK SystemCreationClassName : Win32_ComputerSystem SystemName : SERVER01 TagId : 0 WaitHint : 0 설명 ----------- 이 명령은 원격 컴퓨터 server01의 WinRM 서비스에 대해 WMI(Windows Management Instrumentation)가 표시하는 모든 정보를 반환합니다.
예 2
C:\PS>get-wsmaninstance wmicimv2/win32_service -selectorset @{name="spooler"} -fragment status -computername server01 XmlFragment=OK 설명 ----------- 이 명령은 원격 컴퓨터 server01의 스풀러 서비스 상태만 반환합니다.
예 3
C:\PS>get-wsmaninstance -enumerate wmicimv2/win32_process OSName : Microsoft Windows Vista Ultimate |C:\Windows|\Device\Harddisk0\Partition3 OtherOperationCount : 11441 OtherTransferCount : 428570 PageFaults : 27346 PageFileUsage : 16428 ParentProcessId : 604 PeakPageFileUsage : 17588 PeakVirtualSize : 93876224 PeakWorkingSetSize : 12472 Priority : 8 PrivatePageCount : 16822272 ProcessId : 1160 QuotaNonPagedPoolUsage : 14 QuotaPagedPoolUsage : 126 QuotaPeakNonPagedPoolUsage : 16 QuotaPeakPagedPoolUsage : 159 ReadOperationCount : 29568 ReadTransferCount : 1660581404 SessionId : 0 Status : Status TerminationDate : TerminationDate ThreadCount : 23 UserModeTime : 763156892 VirtualSize : 80846848 WindowsVersion : 6.0.6001 WorkingSetSize : 11624448 WriteOperationCount : 1913 WriteTransferCount : 6825768 xsi : http://www.w3.org/2001/XMLSchema-instance p : https://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/Win32_Process cim : https://schemas.dmtf.org/wbem/wscim/1/common type : p:Win32_Process_Type lang : en-US Caption : svchost.exe CommandLine : C:\Windows\System32\svchost.exe -k LocalSystemNetworkRestricted CreationClassName : Win32_Process CreationDate : CreationDate CSCreationClassName : Win32_ComputerSystem CSName : COMPUTER01 Description : svchost.exe ExecutablePath : C:\Windows\System32\svchost.exe ExecutionState : ExecutionState Handle : 1192 HandleCount : 832 ... 설명 ----------- 이 명령은 로컬 컴퓨터에 있는 WMI Win32_Process 클래스의 모든 인스턴스를 반환합니다.
예 4
C:\PS>get-wsmaninstance -enumerate wmicimv2/win32_service -returntype epr xsi : http://www.w3.org/2001/XMLSchema-instance p : https://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/Win32_Service cim : https://schemas.dmtf.org/wbem/wscim/1/common type : p:Win32_Service_Type lang : en-US AcceptPause : false AcceptStop : false Caption : Visual Studio 2008 Remote Debugger CheckPoint : 0 CreationClassName : Win32_Service Description : Allows members of the Administrators group to remotely debug server applications using Visual Studio 2008. Use the Visual Studio 2008 Remote Debugging Configuration Wizard to enable this service. DesktopInteract : false DisplayName : Visual Studio 2008 Remote Debugger ErrorControl : Ignore ExitCode : 1077 InstallDate : InstallDate Name : msvsmon90 PathName : "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\Remote Debugger\x86\msvsmon.exe" /s ervice msvsmon90 ProcessId : 0 ServiceSpecificExitCode : 0 ServiceType : Own Process Started : false StartMode : Disabled StartName : LocalSystem State : Stopped Status : OK SystemCreationClassName : Win32_ComputerSystem SystemName : COMPUTER01 TagId : 0 WaitHint : 0 ... 설명 ----------- 이 명령은 로컬 컴퓨터의 모든 서비스에 해당하는 끝점 참조를 반환합니다.
예 5
C:\PS>Get-WSManInstance -Enumerate wmicimv2/* -filter "select * from win32_service where StartMode = 'Auto' and State = 'Stopped'" -computername server01 xsi : http://www.w3.org/2001/XMLSchema-instance p : https://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/Win32_Service cim : https://schemas.dmtf.org/wbem/wscim/1/common type : p:Win32_Service_Type lang : en-US AcceptPause : false AcceptStop : false Caption : Windows Media Center Service Launcher CheckPoint : 0 CreationClassName : Win32_Service Description : Starts Windows Media Center Scheduler and Windows Media Center Receiver services at startup if TV is enabled within Windows Media Center. DesktopInteract : false DisplayName : Windows Media Center Service Launcher ErrorControl : Ignore ExitCode : 0 InstallDate : InstallDate Name : ehstart PathName : C:\Windows\system32\svchost.exe -k LocalServiceNoNetwork ProcessId : 0 ServiceSpecificExitCode : 0 ServiceType : Share Process Started : false StartMode : Auto StartName : NT AUTHORITY\LocalService State : Stopped Status : OK SystemCreationClassName : Win32_ComputerSystem SystemName : Server01 TagId : 0 WaitHint : 0 ... 설명 ----------- 이 명령은 원격 컴퓨터 server01에서 다음 기준을 충족하는 모든 서비스를 나열합니다. - 서비스의 시작 유형은 "자동"입니다. - 서비스가 중지되었습니다.
예 6
C:\PS>get-wsmaninstance winrm/config/listener -selectorset @{Address="*";Transport="http"} cfg : https://schemas.microsoft.com/wbem/wsman/1/config/listener xsi : http://www.w3.org/2001/XMLSchema-instance lang : en-US Address : * Transport : HTTP Port : 80 Hostname : Enabled : true URLPrefix : wsman CertificateThumbprint : ListeningOn : {100.0.0.1, 123.123.123.123, ::1, 2001:4898:0:fff:0:5efe:123.123.123.123...} 설명 ----------- 이 명령은 선택기 집합의 기준을 충족하는 수신기에 대한 로컬 컴퓨터의 WS-Management 수신기 구성을 나열합니다.
예 7
C:\PS>get-wsmaninstance winrm/config/listener -selectorset @{Address="*";Transport="http"} -computername server01 cfg : https://schemas.microsoft.com/wbem/wsman/1/config/listener xsi : http://www.w3.org/2001/XMLSchema-instance lang : en-US Address : * Transport : HTTP Port : 80 Hostname : Enabled : true URLPrefix : wsman CertificateThumbprint : ListeningOn : {100.0.0.1, 123.123.123.124, ::1, 2001:4898:0:fff:0:5efe:123.123.123.124...} 설명 ----------- 이 명령은 선택기 집합의 기준을 충족하는 수신기에 대한 원격 컴퓨터 server01의 WS-Management 수신기 구성을 나열합니다.
예 8
C:\PS>Get-WSManInstance -Enumerate -Dialect association -filter "{Object=win32_service?name=winrm}" -res wmicimv2/* xsi : http://www.w3.org/2001/XMLSchema-instance p : https://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/Win32_ComputerSystem cim : https://schemas.dmtf.org/wbem/wscim/1/common type : p:Win32_ComputerSystem_Type lang : en-US AdminPasswordStatus : 1 AutomaticManagedPagefile : true AutomaticResetBootOption : true AutomaticResetCapability : true BootOptionOnLimit : BootOptionOnLimit BootOptionOnWatchDog : BootOptionOnWatchDog BootROMSupported : true BootupState : Normal boot Caption : SERVER01 ChassisBootupState : 3 CreationClassName : Win32_ComputerSystem CurrentTimeZone : -480 DaylightInEffect : false Description : AT/AT COMPATIBLE DNSHostName : server01 Domain : site01.corp.fabrikam.com DomainRole : 1 EnableDaylightSavingsTime : true FrontPanelResetStatus : 2 InfraredSupported : false InstallDate : InstallDate KeyboardPasswordStatus : 2 LastLoadInfo : LastLoadInfo Manufacturer : Dell Inc. Model : OptiPlex 745 Name : SERVER01 NameFormat : NameFormat NetworkServerModeEnabled : true NumberOfLogicalProcessors : 2 NumberOfProcessors : 1 OEMStringArray : www.dell.com PartOfDomain : true PauseAfterReset : -1 PCSystemType : 5 PowerManagementSupported : PowerManagementSupported PowerOnPasswordStatus : 1 PowerState : 0 PowerSupplyState : 3 PrimaryOwnerContact : PrimaryOwnerContact PrimaryOwnerName : testuser01 ResetCapability : 1 ResetCount : -1 ResetLimit : -1 Roles : {LM_Workstation, LM_Server, SQLServer, NT} Status : OK SystemStartupDelay : SystemStartupDelay SystemStartupSetting : SystemStartupSetting SystemType : X86-based PC ThermalState : 3 TotalPhysicalMemory : 3217760256 UserName : FABRIKAM\testuser01 WakeUpType : 6 Workgroup : Workgroup xsi : http://www.w3.org/2001/XMLSchema-instance p : https://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/Win32_Service cim : https://schemas.dmtf.org/wbem/wscim/1/common type : p:Win32_Service_Type lang : en-US AcceptPause : false AcceptStop : false Caption : Remote Procedure Call (RPC) CheckPoint : 0 CreationClassName : Win32_Service Description : Serves as the endpoint mapper and COM Service Control Manager. If this service is stopped or disabled, programs using COM or Remote Procedure Call (RPC) services will not function properly. DesktopInteract : false DisplayName : Remote Procedure Call (RPC) ErrorControl : Normal ExitCode : 0 InstallDate : InstallDate Name : RpcSs PathName : C:\Windows\system32\svchost.exe -k rpcss ProcessId : 1100 ServiceSpecificExitCode : 0 ServiceType : Share Process Started : true StartMode : Auto StartName : NT AUTHORITY\NetworkService State : Running Status : OK SystemCreationClassName : Win32_ComputerSystem SystemName : SERVER01 TagId : 0 WaitHint : 0 xsi : http://www.w3.org/2001/XMLSchema-instance p : https://schemas.microsoft.com/wbem/wsman/1/wmi/root/cimv2/Win32_SystemDriver cim : https://schemas.dmtf.org/wbem/wscim/1/common type : p:Win32_SystemDriver_Type lang : en-US AcceptPause : false AcceptStop : true Caption : HTTP CreationClassName : Win32_SystemDriver Description : HTTP DesktopInteract : false DisplayName : HTTP ErrorControl : Normal ExitCode : 0 InstallDate : InstallDate Name : HTTP PathName : C:\Windows\system32\drivers\HTTP.sys ServiceSpecificExitCode : 0 ServiceType : Kernel Driver Started : true StartMode : Manual StartName : State : Running Status : OK SystemCreationClassName : Win32_ComputerSystem SystemName : SERVER01 TagId : 0 설명 ----------- 이 명령은 지정된 인스턴스(winrm)와 관련된 연결 인스턴스를 가져옵니다. 중요: 예에 표시된 것처럼 필터를 따옴표로 묶어야 합니다.
예 9
C:\PS>Get-WSManInstance -Enumerate -Dialect association -References -filter "{Object=win32_service?name=winrm}" -res wmicimv2/* 설명 ----------- 이 명령은 지정된 인스턴스(winrm)와 관련된 연결 인스턴스를 가져옵니다. Dialect 매개 변수가 "association"으로 설정되어 있고 Reference 매개 변수가 사용되었으므로 이 명령은 연결된 인스턴스가 아니라 연결 인스턴스를 반환합니다. 중요: 예에 표시된 것처럼 필터를 따옴표로 묶어야 합니다.
참고 항목