dsccommunity / xRemoteDesktopSessionHost

This module contains DSC resources for the management and configuration of Microsoft Remote Desktop Session Host (RDSH).
MIT License
35 stars 47 forks source link

Add NewConnectionAllowed in xRDSSessionCollection #95

Open LaurentLienhard opened 2 years ago

LaurentLienhard commented 2 years ago

Is there any interest, for you, that when we add a sessionhost to a collection, we can tell if the openings of sessions on this server are authorized or not?

Parameter is NewConnectionAllowed

During my deployments by hand, I often block connections to check that everything is working well on the server before opening them. I also sometimes block connections when I am notified of a problem on a server in order to be able to diagnose On the other hand in automatic I wonder if there is really an interest What do you think?

LaurentLienhard commented 2 years ago
COMMENTAIRES : Getting information about RDSH collection
COMMENTAIRES : Test if Collection Bureau-TEST exist
COMMENTAIRES : Collection Bureau-TEST exist
COMMENTAIRES : Test if server SRVREMOTEAPP is in collection Bureau-TEST
COMMENTAIRES : Server SRVREMOTEAPP is in collection Bureau-TEST
COMMENTAIRES : Test New Connection allowed Status 
COMMENTAIRES : New Connection allowed Status is OK

Name                           Value                                                                                                                                                                                                                             
----                           -----                                                                                                                                                                                                                             
ConnectionBroker               MyBroker                                                                                                                                                                                                      
NewConnectionAllowed           Yes                                                                                                                                                                                                                               
CollectionName                 Bureau-TEST                                                                                                                                                                                                                       
CollectionDescription          A utiliser pour tester les nouveaux serveurs avant de les passer en PROD                                                                                                                                                          
SessionHost                    SRVREMOTEAPP          

something like this

uw-dc commented 1 year ago

If you are using DSC to manage an RDS Session Collection, you really want to have tested the DSC you've authored and be confident in it working.

I'm not sure why you would ever 'desire' that a SessionHost is added to a SessionCollection in a state where it is not accepting connections. Not to mention, this is conflating the purpose of xRDSessionCollection which manages an RD Session Collection and xRDServer which would be used to add additional session hosts to a deployment.

If you want your DSC used to manage session hosts to initially introduce them in a state where they do not accept connections, whilst manual activity is then undertaken, then I would look at writing your own resource or a script resource to do it.