Thursday, February 25, 2016

Troubleshooting timeouts in the RDS console when setting a User Profile Disk path

Ran into this fun one the other week. When attempting to change the location of the User Profile Disk share on a collection, the operation times out, and some session hosts in the collection grab UPD’s from the new UNC path, while some session hosts grab UPD’s from the old UNC path. This occurred on a session collection with a larger number of session host servers (15+).

Receiving a timeout error when attempting to set a new UPD path
Receiving a timeout error when attempting to set a new UPD path

In order to fix this and get all session host servers pointed at the same UNC path, on the session host servers that are still pointed to the old UNC share, open regedit and browse to HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\ClusterSettings. Modify the string value UvhdShareUrl and change it to the correct UNC path.
Modifying the UvhdShareUrl registry entry
Modifying the UvhdShareUrl registry entry
That's all there is to it. The session host servers do not need to be rebooted or any services reset. The new profile path will begin being used as users launch new sessions to the servers.

Wednesday, February 24, 2016

Windows Management Framework 5.0 Released (again)

Microsoft has now republished Windows Management Framework (WMF) 5.0 to the Microsoft Download Center. WMF 5.0, which includes PowerShell 5.0 and improvements to PowerShell Desired State Configuration, was previously released but then pulled due to a bug with correctly loading the PSModulePath variable.

I've been looking forward to WMF 5.0 being released for some time now. With each release, Microsoft had added new features, and this release is no different. PackageManagement and PowerShellGet are great new features, and should change the way we load software and PowerShell modules on our systems. I'm hoping Desired State Configuration will start to take off in the enterprise, especially with the addition of partial configurations.

WMF 5.0 is available for Windows Server 2012 R2, 2012, 2008 R2, Windows 8.1 and Windows 7 SP1. Make sure you do your due diligence and test the download before moving to production systems -