你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzRemoteDesktopFile
获取 .rdp 文件。
语法
Get-AzRemoteDesktopFile
[-ResourceGroupName] <String>
[-Name] <String>
[-LocalPath] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzRemoteDesktopFile
[-ResourceGroupName] <String>
[-Name] <String>
[[-LocalPath] <String>]
[-Launch]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
说明
Get-AzRemoteDesktopFile cmdlet 获取远程桌面协议 (.rdp) 文件。
示例
示例 1:获取远程桌面文件
Get-AzRemoteDesktopFile -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07" -LocalPath "D:\RemoteDesktopFile07.rdp"
此命令获取名为 VirtualMachine07 的虚拟机的远程桌面文件。 该命令将结果存储在名为 D:\RemoteDesktopFile07.rdp 的文件中。
参数
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
类型: | IAzureContextContainer |
别名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Launch
指示此 cmdlet 在获取 .rdp 文件后启动远程桌面。
类型: | SwitchParameter |
Position: | 3 |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-LocalPath
指定此 cmdlet 存储 .rdp 文件的本地完整路径。
类型: | String |
Position: | 2 |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-Name
指定要获取的虚拟机的名称。
类型: | String |
别名: | ResourceName, VMName |
Position: | 1 |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-ResourceGroupName
指定资源组的名称。
类型: | String |
Position: | 0 |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |