Tag: Remote Desktop

Reset RDP and Admin Password Azure VM

How to Reset RDP and Admin Password of an Azure VM

I think we all had that experience where we suddenly couldn’t use Remote Desktop Services (RDP) to access our Windows Server anymore. Luckily, if this happens to an Azure virtual machine (VM), we can use the VMAccess extension to reset the RDP configuration as well as the password of the Azure VM. You can reset the RDP configuration or the Azure virtual machine password using the Azure portal or Azure PowerShell.

Reset the administrator password of an Azure VM 🔓

To reset the password of an Azure VM, you can use the Azure portal or Azure PowerShell. If you take the portal path, log in to the Azure portal, go to the Azure VM, you want to reset the password. Under Support + Troubleshooting, click on Reset Password, and follow to the Reset Password wizard to update the credentials. Note that this is not supported for Active Directory Domain Controllers.

Reset Administrator Password of an Azure VM

Reset Administrator Password of an Azure VM

If you want to use Azure PowerShell, you can run the following commands:

$SubID = "SUBID" 
$RgName = "RESOURCE GROUP NAME" 
$VmName = "VM NAME" 
$Location = "LOCATION"
 
Connect-AzAccount 
Select-AzSubscription -SubscriptionId $SubID 
Set-AzVMAccessExtension -ResourceGroupName $RgName -Location $Location -VMName $VmName -Credential (get-credential) -typeHandlerVersion "2.0" -Name VMAccessAgent

This should help you to reset the password of an Azure Virtual Machine (VM) if you lost access to it. If you want to know more, read the following troubleshooting article on Microsoft Docs.

Reset RDP configuration 👩‍💻

If you can access your Azure Virtual Machine using RDP, you can reset the configuration, and this will enable Remote Desktop service in the VM and create a firewall rule for the default RDP port 3389. To reset the Remote Desktop Service (RDP) configuration, you again login to the Azure portal, select the virtual machine you want to reset the RDP configuration. Under Support + Troubleshooting, click on Reset Password, on the new blade select Reset configuration only, and click on update.

Reset Remote Desktop Services RDP of an Azure VM

Reset Remote Desktop Services RDP of an Azure VM

There is also an Azure PowerShell command available to do this:

$SubID = "SUBSCRIPTION ID" 
$RgName = "RESOURCE GROUP NAME" 
$VmName = "VM NAME" 
$Location = "LOCATION"
 
Connect-AzAccount 
Select-AzSubscription -SubscriptionId $SubID 
Set-AzVMAccessExtension -ResourceGroupName $RgName" -VMName $VmName" -Name "myVMAccess" -Location $Location -typeHandlerVersion "2.0" -ForceRerun

I hope this gives you an overview of how you can Reset your Remote Desktop Service of an Azure Virtual Machine (VM) if you lost access to it. If you want to know more, read the following troubleshooting article on Microsoft Docs. You can also use Azure PowerShell in Cloud Shell.

If you want to know more about how you migrate your virtual machines to Azure, check out my blog post about Azure Migrate.

 



Microsoft Remote Desktop Preview App

Microsoft Remote Desktop Preview App for Windows 10

Yesterday Microsoft announced a new Remote Desktop Preview app for Windows 10 Universal Windows Platform (UWP) on the Remote Desktop Services Blog. You can get and download from the Windows Store. The new Remote Desktop Preview app has a connection center to manage your connections to Windows Clients and Windows Server. The connection center is your starting point. It allows you to easily manage your desktops. You can add new desktop connections and edit or delete existing connections. Selecting one of the desktop tiles launches the connection. It’s great to see Microsoft finally creating some great Apps for their own Universal Windows Platform.

Microsoft Remote Desktop Preview App Connection Center



RemoteFX

GPU Requirements for RemoteFX on Windows Server 2012 R2

If your are planning a VDI (Virtual Desktop Infrastructure) deployment with Windows Server 2012 R2 Hyper-V  and you want to use physical graphics power with RemoteFX for your VDI machines fore example for CAD applications, you might wonder which cards are recommended and supported. Back in November 2013 Derrick Isoka (Microsoft Program Manager) wrote a blog post about recommendations and here is a quick summary.

RemoteFX GPU Requirements

To make use of RemoteFX with GPU acceleration on Windows Server 2012 R2 you require a compatible graphic card.

Most likely, the servers hosting the RemoteFX workloads will be located in a datacenter and as such, we recommend using passively cooled, server class graphics cards. However, it’s also acceptable to use a workstation card for testing on small deployments depending on your needs.

However the minimum requirements for the graphics cards to be used with Hyper-V RemoteFX are:

  • Direct 11.0 or later
  • WDDM 1.2 driver or later

DirectX and WDDM

There is some other point to this, in Windows Server 2012 R2 provides support for DirectX 11.0, DirectCompute and C++ AMP. Most of the graphics cards do support OpenGL 4.0 and OpenCL 1.1 or later, however these APIs are currently unsupported by RemoteFX in Windows Server 2012 R2.

Hardware and Driver Support

To find a graphics card also make sure you check the Windows Server Catalog.

RemoteFX Compatible GPUs

Microsoft did some tests and showed some of the results on the Remote Desktop Services blog.

RemoteFX Cards

  1. Best: These are server class cards, designed and certified for VDI workloads by hardware vendors like NVIDIA and AMD. They target the best application performance, experience, and virtual machine densities. Some of the cards are particularly recommended for designer and engineering workloads (such as Autodesk Inventor or AutoCad).
  2. Better: These are workstation class cards that provide acceptable performance and densities. They are especially capable cards for knowledge worker workloads (such as Microsoft Office or Internet Explorer).
  3. Good: These are lower-end cards that provide acceptable densities knowledge worker workloads.

Source: Microsoft

Performance and Scale

This is important, Microsoft also points out that GPU speed and memory, the performance and scale of your VDI deployment also depends on additional factors such as CPU, Storage and Network performance.

 



Cisco UCS Hyper-V Cluster – Configure Blade Servers – Part 4

After we have installed the Cisco Blade Servers we now have to do some configuration on the Hosts.

  1. First I activate Remote Management like Remote Desktop, Remote MMC and Powershell.
  2. I add a Firewall rule for Remote Disk Managment
     netsh advfirewall firewall set rule group="Remote Volume Management" new enable=yes

    Firewall Rule

  3. After adding this firewall rule, I install the Multipath I/O feature
     ocsetup MultipathIo
  4. Now you can use the MPclaim command-line tool to manage Multipath I/O
    To view all detected enterprise storage:

     Mpclaim -e

    Add MPIO support for Fibre Channel devices:

     mpclaim.exe -r -i -d < _VendorID> < _ProductID>

    Important: Note that the vendor string length is 8 characters, the product string length is 16 characters, and both fields are padded with spaces as needed.
    More Information about the MPclaim command-line tool
    MPclaim

  5. With diskpart you can now see the disks. And you can format the disks with NTFS. Important after that you should take the disks offline to use them in the cluster.
    Diskpart
  6. In the Configuration Menu enable the Cluster Feature.
  7. On each note the all Cluster disks offline.
    select disk 2
    disk offline

In the next post we will configure the Network Adapters of the Cluster notes and create the virtual networks.