Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save RichardSlater/5678762 to your computer and use it in GitHub Desktop.
Save RichardSlater/5678762 to your computer and use it in GitHub Desktop.
Download RDP Files from All Instances
Get-AzureService |
Get-AzureRole -Slot Production -InstanceDetails |
ForEach-Object {
Get-AzureRemoteDesktopFile `
-Name $_.InstanceName `
-ServiceName $_.ServiceName `
-LocalPath (Join-Path "C:\RDP" ($_.InstanceName + ".rdp"))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment