Windows Server 2019: RD Session Host — ChangeMode “Invalid operation” exception

If you’re changing the client access licensing mode of your RD Session Host using the PowerShell $obj.ChangeMode(…) command and it fails with an error saying “Exception … Invalid operation”…

…make sure you haven’t already configured a similar Group Policy (“Set the Remote Desktop Licensing mode” under Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Licensing). In my experience, unsetting the said policy in gpedit helped against the $obj.ChangeMode error. Don’t ask me why!

This entry was posted in Solutions and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *