SOLVED

Port redirection

%3CLINGO-SUB%20id%3D%22lingo-sub-1060569%22%20slang%3D%22en-US%22%3EPort%20redirection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1060569%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20everybody%3C%2FP%3E%3CP%3EI'm%20migrating%20some%20customer%20services%20from%20on-premise%20RDP%20session%20host%20to%20WVD.%3C%2FP%3E%3CP%3ESome%20of%20the%20customers%20are%20using%20COM-port%20redirection%20to%20manage%20local%20hardware%20devices%20from%20an%20application%20running%20on%20the%20rdp%20session%20host.%3C%2FP%3E%3CP%3EIf%20I%20run%20the%20same%20application%20on%20the%20WVD%20host%20pool%2C%20when%20trying%20to%20open%20the%20COM%20port%20I%20get%3A%3C%2FP%3E%3CP%3E%22unable%20to%20open%20com%20port%20error%202%22.%20I%20think%20it's%20an%20application%20error%20but%20I%20don't%20see%20any%20redirected%20com%20device%20in%20device%20manager.%3C%2FP%3E%3CP%3EBefore%20starting%20to%20check%20in%20domain%20gpo's%20and%20other%20settings%2C%20is%20remote%20com-port%20redirection%20supported%20using%20wvd%3F%3C%2FP%3E%3CP%3EI%20cannot%20find%20anything%20in%20the%20docs%20mentioning%20it%20so%20I'd%20like%20to%20know%20if%20it%20should%20work%20or%20if%20I%20have%20to%20avoid%20this%20solution%20for%20customers%20who%20need%20port%20redirection%20(unfortunately%20most%20of%20them).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20be%20more%20precise.%20I'm%20testing%20a%20windows%2010%20enterprise%20multi-session%20session%20host%20with%20windows%20client%20(not%20html5).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20in%20advance%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1067681%22%20slang%3D%22en-US%22%3ERe%3A%20Port%20redirection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1067681%22%20slang%3D%22en-US%22%3E%3CP%3EI've%20found%20that%20the%20problem%20is%20only%20with%20remoteapp.%3C%2FP%3E%3CP%3EWith%20desktop%20connection%20the%20client%20is%20correctly%20forwarding%20the%20com%20ports%20and%20the%20application%20works%20correctly%20without%20any%20difference%20from%20the%20%22normal%22%20rdp%20client.%3C%2FP%3E%3CP%3ENow%20I%20have%20to%20find%20out%20how%20to%20make%20it%20work%20also%20with%20remoteapp%20(if%20possible)%20with%20windows%2010%20enterprise%20multi-session..%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1207503%22%20slang%3D%22en-US%22%3ERe%3A%20Port%20redirection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1207503%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F484045%22%20target%3D%22_blank%22%3E%40setadini2475%3C%2FA%3E%26nbsp%3B%20%26nbsp%3BAny%20luck%20in%20getting%20COM%20ports%20redirected%20I%20have%20the%20same%20issue%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1520629%22%20slang%3D%22en-US%22%3ERe%3A%20Port%20redirection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1520629%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F484045%22%20target%3D%22_blank%22%3E%40setadini2475%3C%2FA%3E%26nbsp%3Bhave%20you%20managed%20to%20get%20it%20working%20with%20remote%20apps%3F%20facing%20similar%20issue%20(Win10%20Ent%20Multi-session)%20and%20have%20no%20clue%20in%20documentation%20whether%20this%20is%20supported%20or%20not.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20could%20see%20that%20there%20used%20to%20be%20a%20setting%20called%26nbsp%3Bredirectcomports%3Ai%3A1%20with%20standard%20RDP%20setup%2C%20however%20based%20on%20this%20documentation%20enlisting%20supported%20custom%20rdp%20properties%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-server%2Fremote%2Fremote-desktop-services%2Fclients%2Frdp-files%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehere%3C%2FA%3E%26nbsp%3Bdo%20not%20find%20this%20property%20so%20not%20sure%20how%20COM%20ports%20redirection%20can%20be%20enabled%20in%20WVD%20based%20setup%20and%20specifically%20when%20using%20remote%20apps%20scenario%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20inputs%20on%20this%20will%20be%20highly%20appreciated%20as%20it%20could%20be%20a%20deciding%20factor%20to%20go%20ahead%20with%20wvd%20or%20not%20for%20the%20customer%20in%20our%20case.%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F199787%22%20target%3D%22_blank%22%3E%40Pavithra%20Thiruvengadam%3C%2FA%3E%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F491899%22%20target%3D%22_blank%22%3E%40Christiaan_Brinkhoff%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1521691%22%20slang%3D%22en-US%22%3ERe%3A%20Port%20redirection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1521691%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F624245%22%20target%3D%22_blank%22%3E%40bhushangawale%3C%2FA%3E%26nbsp%3Bcom%20port%20redirection%20was%20missed%20in%20the%20documentation%20earlier%20and%20hence%20our%20validation%20on%20the%20portal%20also%20excluded%20it.%20We%20are%20in%20the%20process%20of%20rolling%20out%20the%20fix.%20It%20should%20be%20available%20by%20end%20of%20week.%20So%20portal%20and%20PS%20should%20support%20it.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1522614%22%20slang%3D%22en-US%22%3ERe%3A%20Port%20redirection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1522614%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F199787%22%20target%3D%22_blank%22%3E%40Pavithra%20Thiruvengadam%3C%2FA%3E%26nbsp%3Bthanks%20for%20confirming.%20does%20this%20mean%20that%20currently%20COM%20ports%20are%20not%20being%20redirected%20and%20will%20only%20work%20after%20the%20fix%20roll-out%20over%20this%20weekend%20and%20should%20work%20for%20remote%20apps%20too%3F%20will%20be%20staying%20tuned%20for%20the%20fix%20to%20get%20released.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1524202%22%20slang%3D%22en-US%22%3ERe%3A%20Port%20redirection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1524202%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F624245%22%20target%3D%22_blank%22%3E%40bhushangawale%3C%2FA%3E%26nbsp%3BThe%20settings%20looked%20like%20they%20were%20not%20available%20through%20the%20portal.%20Now%20it%20has%20been%20fixed.%20The%20fix%20is%20available%20on%20the%20portal.%20Try%20it%20out%20and%20let%20me%20know.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1524410%22%20slang%3D%22en-US%22%3ERe%3A%20Port%20redirection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1524410%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F199787%22%20target%3D%22_blank%22%3E%40Pavithra%20Thiruvengadam%3C%2FA%3E%26nbsp%3BIt%20is%20now%20accepting%20the%20entry%20of%26nbsp%3B%3CSTRONG%3Eredirectcomports%3Ai%3A1%3C%2FSTRONG%3E%20on%20portal%2C%20however%20after%20saving%20it%2C%20it%20doesn't%20show%20up.%3C%2FP%3E%3CP%3EIs%20it%20just%20a%20portal%20UI%20glitch%20or%20the%20setting%20is%20not%20getting%20applied%20at%20all%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1527194%22%20slang%3D%22en-US%22%3ERe%3A%20Port%20redirection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1527194%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F624245%22%20target%3D%22_blank%22%3E%40bhushangawale%3C%2FA%3E%26nbsp%3BI%20am%20not%20able%20to%20repro%20this.%20I%20tried%20adding%26nbsp%3B%3CSTRONG%3Eredirectcomports%3Ai%3A1%20%3C%2FSTRONG%3Eand%20saved%20the%20properties.%20When%20I%20reloaded%20the%20properties%20page%2C%20it%20was%20still%20intact.%20If%20you%20can%20refresh%20the%20browser%20and%20try%20this%2C%20I%20feel%20it%20will%20work.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1527262%22%20slang%3D%22en-US%22%3ERe%3A%20Port%20redirection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1527262%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F199787%22%20target%3D%22_blank%22%3E%40Pavithra%20Thiruvengadam%3C%2FA%3E%26nbsp%3Byes%2C%20when%20single%20value%20i.e.%26nbsp%3Bredirectcomports%3Ai%3A1%20is%20entered%20there%20and%20saved%20then%20it%20seem%20to%20be%20preserving%20it%20even%20after%20the%20page%20refresh%2C%20however%20when%20entered%20along%20with%20other%20properties%20separated%20by%20semicolon%20-%20then%20it%20takes%20out%20that%20property%20and%20keeps%20everything%20else.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20are%20my%20all%20rdp%20properties%20that%20I%20tried%20with%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eredirectcomports%3Ai%3A1%3Bcompression%3Ai%3A1%3Bnetworkautodetect%3Ai%3A1%3Bbandwidthautodetect%3Ai%3A1%3Bredirectprinters%3Ai%3A1%3Bredirectclipboard%3Ai%3A1%3Bdevicestoredirect%3As%3A*%3Bdrivestoredirect%3As%3A*%3Bredirectsmartcards%3Ai%3A1%3Bcamerastoredirect%3As%3A*%3Bredirectcomports%3Ai%3A1%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ecan%20you%20give%20it%20a%20try%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1527329%22%20slang%3D%22en-US%22%3ERe%3A%20Port%20redirection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1527329%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F624245%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%3E%40bhushangawale%3C%2FA%3E%26nbsp%3Bfor%20some%20reason%2C%20I%20am%20not%20seeing%20your%20latest%20response.%20I%20did%20try%20with%20the%20settings%20you%20sent.%20I%20noticed%20that%20redirectcomports%20was%20duplicated.%20so%20the%20duplicate%20was%20removed.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1528426%22%20slang%3D%22en-US%22%3ERe%3A%20Port%20redirection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1528426%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F199787%22%20target%3D%22_blank%22%3E%40Pavithra%20Thiruvengadam%3C%2FA%3E%26nbsp%3Byes%20that%20was%20my%20bad%2C%20sorry%20for%20that%20and%20appreciate%20your%20quick%20response%20on%20this.%20Yes%2C%20the%20setting%20seem%20to%20be%20getting%20saved%20now.%20Thanks%20much!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hi everybody

I'm migrating some customer services from on-premise RDP session host to WVD.

Some of the customers are using COM-port redirection to manage local hardware devices from an application running on the rdp session host.

If I run the same application on the WVD host pool, when trying to open the COM port I get:

"unable to open com port error 2". I think it's an application error but I don't see any redirected com device in device manager.

Before starting to check in domain gpo's and other settings, is remote com-port redirection supported using wvd?

I cannot find anything in the docs mentioning it so I'd like to know if it should work or if I have to avoid this solution for customers who need port redirection (unfortunately most of them).

 

To be more precise. I'm testing a windows 10 enterprise multi-session session host with windows client (not html5).

 

Thank you in advance

10 Replies
Highlighted

I've found that the problem is only with remoteapp.

With desktop connection the client is correctly forwarding the com ports and the application works correctly without any difference from the "normal" rdp client.

Now I have to find out how to make it work also with remoteapp (if possible) with windows 10 enterprise multi-session..

Highlighted

@setadini2475   Any luck in getting COM ports redirected I have the same issue

Highlighted

@setadini2475 have you managed to get it working with remote apps? facing similar issue (Win10 Ent Multi-session) and have no clue in documentation whether this is supported or not.

 

I could see that there used to be a setting called redirectcomports:i:1 with standard RDP setup, however based on this documentation enlisting supported custom rdp properties here do not find this property so not sure how COM ports redirection can be enabled in WVD based setup and specifically when using remote apps scenario?

 

Any inputs on this will be highly appreciated as it could be a deciding factor to go ahead with wvd or not for the customer in our case. @Pavithra Thiruvengadam @Christiaan_Brinkhoff

Highlighted

@bhushangawale com port redirection was missed in the documentation earlier and hence our validation on the portal also excluded it. We are in the process of rolling out the fix. It should be available by end of week. So portal and PS should support it.

Highlighted

@Pavithra Thiruvengadam thanks for confirming. does this mean that currently COM ports are not being redirected and will only work after the fix roll-out over this weekend and should work for remote apps too? will be staying tuned for the fix to get released.

Highlighted

@bhushangawale The settings looked like they were not available through the portal. Now it has been fixed. The fix is available on the portal. Try it out and let me know.

Highlighted

@Pavithra Thiruvengadam It is now accepting the entry of redirectcomports:i:1 on portal, however after saving it, it doesn't show up.

Is it just a portal UI glitch or the setting is not getting applied at all?

Highlighted

@bhushangawale I am not able to repro this. I tried adding redirectcomports:i:1 and saved the properties. When I reloaded the properties page, it was still intact. If you can refresh the browser and try this, I feel it will work.

Highlighted
Best Response confirmed by Pavithra Thiruvengadam (Microsoft)
Solution

@bhushangawale for some reason, I am not seeing your latest response. I did try with the settings you sent. I noticed that redirectcomports was duplicated. so the duplicate was removed.

Highlighted

@Pavithra Thiruvengadam yes that was my bad, sorry for that and appreciate your quick response on this. Yes, the setting seem to be getting saved now. Thanks much!