I had no issue with this working - Win-10, latest updates. First run was with code uncommented, second run the set code was commented. I ran this from an elevated command prompt as a local admin.
 Code:
(IHWD021) - C:\Temp>a
The operation completed successfully.
AccountName: BUILTIN\Remote Desktop Users
AuditFail: 0
AuditSuccess: 0
Caption:
Description:
InstallDate:
Name:
PermissionsAllowed: 289 (&121)
-WINSTATION_QUERY
-WINSTATION_LOGON
-WINSTATION_CONNECT
PermissionsDenied: 0
SID: S-1-5-32-555
Status:
TerminalName: RDP-Tcp
Adding Shadow Permission
0
The operation completed successfully.

(IHWD021) - C:\Temp>a
The operation completed successfully.
AccountName: BUILTIN\Remote Desktop Users
AuditFail: 0
AuditSuccess: 0
Caption:
Description:
InstallDate:
Name:
PermissionsAllowed: 305 (&131)
-WINSTATION_QUERY
-WINSTATION_SHADOW
-WINSTATION_LOGON
-WINSTATION_CONNECT
PermissionsDenied: 0
SID: S-1-5-32-555
Status:
TerminalName: RDP-Tcp
Glenn
_________________________
Actually I am a Rocket Scientist! \:D