Share via


Windows PowerShell용 Windows Virtual Desktop Cmdlet

Windows Virtual Desktop에 대한 PowerShell 참조를 시작합니다. 여기에서 Windows Virtual Desktop을 대상으로 하는 PowerShell 모듈에 대한 리소스를 찾을 수 있습니다.

지원되는 PowerShell 버전

  • Windows PowerShell 5.0 및 5.1

참고

Windows Virtual Desktop 모듈은 .NET Core를 기반으로 하지 않으므로 macOS, Linux, Azure Cloud Shell 실행할 수 없으며 PowerShell Core 6.x 또는 PowerShell Core 7.0이 지원되는 곳에서는 실행할 수 없습니다.

다운로드

Windows Virtual Desktop 모듈은 PowerShellGet 모듈을 사용하여 PowerShell 갤러리 다운로드하여 설치할 수 있습니다.

Windows Virtual Desktop PowerShell 모듈을 신속하게 다운로드하고 설치하려면 관리자 권한으로 PowerShell을 시작하고 다음 명령을 실행합니다.

Install-Module -Name Microsoft.RDInfra.RDPowerShell

cmdlet을 실행하기 전에 Windows Virtual Desktop PowerShell 모듈을 가져와야 할 수도 있습니다.

Import-Module -Name Microsoft.RDInfra.RDPowerShell

이제 Windows Virtual Desktop cmdlet을 실행할 수 있습니다. PowerShell 세션을 닫는 경우 모듈을 새 세션 세션으로 다시 가져와야 할 수 있습니다.

업데이트

이전 버전의 PowerShell 모듈을 사용하는 경우 다음 명령을 실행하여 최신 버전으로 업데이트할 수 있습니다.

Update-Module -Name Microsoft.RDInfra.RDPowerShell

이렇게 하면 나란히 설치됩니다. 시스템에 버전이 하나만 설치되도록 하려면 모듈을 제거한 다음 다시 설치합니다.