< Back

Out-AzureUtilRdcManRdgFile

Sat Jan 11, 2020 12:21 pm

NAME Out-AzureUtilRdcManRdgFile



SYNOPSIS

Create a ".rdg" file for Azure Windows virtual machine connection.





SYNTAX

Out-AzureUtilRdcManRdgFile [-ResourceGroupName] <String[]> [[-FilePath] <String>] [[-RootGroupName] <String>]

[<CommonParameters>]





DESCRIPTION

Create a ".rdg" file for Azure Windows virtual machine connection. The ".rdg" file is can open by Remote Desktop

Connection Manager.





PARAMETERS

-ResourceGroupName <String[]>

This cmdlet creates connection entries to the virtual machines contained in the resource groups specified by

this parameter.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-FilePath <String>

File path of the ".rdg" file to save. This parameter is optional. The default file path is

"AzureVMConnection.rdg" under the current folder.



Required? false

Position? 2

Default value (Join-Path -Path (Get-Location).Path -ChildPath 'AzureVMConnection.rdg')

Accept pipeline input? false

Accept wildcard characters? false



-RootGroupName <String>

Display name for the root node of the ".rdg" file. This parameter is optional. The default display name is

"AzureVMConnections".



Required? false

Position? 3

Default value AzureVMConnections

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.Void





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Out-AzureUtilRdcManRdgFile -ResourceGroupName 'Prod-RG','Dev-RG'



---- Example Description ----

This example is creates ".rdg" file in current folder. The ".rdg" file contains connections for Azure Windows

virtual machine in resource group "Prod-RG" and "Dev-RG".









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Out-AzureUtilRdcManRdgFile -ResourceGroupName 'Prod-RG','Dev-RG' -FilePath 'C:\\NewProject.rdg'

-RootGroupName 'NewProjectVMs'



---- Example Description ----

This example is creates ".rdg" file as "C:\\NewProject.rdg". The ".rdg" file contains connections for Azure Windows

virtual machine in resource group "Prod-RG" and "Dev-RG". The root node name of connections is "NewProjectVMs".











RELATED LINKS

PowerShell Gallery: https://www.powershellgallery.com/packages/AzureUtil/

GitHub: https://github.com/tksh164/AzureUtil-PowerShellModule

Remote Desktop Connection Manager: https://www.microsoft.com/en-us/downloa ... x?id=44989