Forum Discussion
Cameras To Redirect Custom RDP Property Does not Work
We have exactly the same issue, is there already a solution for this?
I have found a solution for this:
Go to the following location Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\CentralPublishedResources\PublishedFarms<Farm Name>\RemoteDesktops<Resource Name>\RDPFileContents Export the registry file with the program O&O Regeditor. Make a copy of your backup and edit the copy. Add the following line to the config: camerastoredirect:s:* with notepad plus plus Save the file Import the reg file with O&O Regeditor
- RoanPaesMay 05, 2020Copper Contributor
Ryan_Janssen Thanks for the tip.
I actually had to create a VBscript because notepad++ wasn't breaking the lines properly.
I'll put the script on my GitHub repo this weekend.
https://github.com/roanp/RDS-SwissKnife
- Matt_OCCMay 19, 2020Copper Contributor
Ryan_Janssen So editing this does not invalidate the signing of the rdp file when it is downloaded? I suppose that this will need to be updated if the feed settings are ever updated by an admin
RoanPaes I don't see a script in the github repository you mention. But I believe using get-itemproperty and set-itemproperty with $value += "camerastoredirect:s:*`n" should be sufficient
- Matt_OCCMay 19, 2020Copper Contributor
I was able to run this powershell command on each connection broker and it was able to work. I would also still run the Set-RDSessionCollectionConfiguration command for the custom value as well.
<collection alias> would be the value of CollectionAlias from Get-RDSessionCollection
$alias = <collection Alias> $RDPFileContents = (Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\CentralPublishedResources\PublishedFarms\$alias\RemoteDesktops\$alias\").RDPFileContents $RDPFileContents += "camerastoredirect:s:*`n" Set-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\CentralPublishedResources\PublishedFarms\$alias\RemoteDesktops\$alias\" -Name RDPFileContents -Value $RDPFileContents