Cancel GUI Datasource Login

Hello PowerShell Gurus,

Does anyone know how to Exit a PowerShell Script if the user clicks Cancel to the GUI Datasource Login window? Essentially, I don't want the intended commands to be processed if the user has not successfully logged into a Datasource.

I gave it the ole' College Try. But, can't see it yet.

Thanks in advance!

Matt

Parents Reply Children
No Data