vmware / PowerCLI-Example-Scripts

http://blogs.vmware.com/powercli
Other
754 stars 603 forks source link

Enable quick disconnect for Disconnect-SsoAdminServer #388

Closed qlikq closed 3 years ago

qlikq commented 3 years ago

This change would enable for Disconnect-SsoAdminServer to behave similar to other disconnect cmdlets. When connected to one SSO server , Disconnect-SsoAdminServer would disconnect user immediately, without asking from which server one wishes to disconnect. When connected to more than one SSO server, Disconnect-SsoAdminServer would throw ever that a Server parameter has to be used since it is not possible to choose for the user from which server one wants to disconnect. When not connected to a SSO server, Disconnect-SsoAdminServer would throw an error stating that there are no active connections established. Tests were added for this change inside ConnectDisconnect.Tests.ps1 tests.