- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.
04-09-2024 11:22 PM
Hi Team,
I have created a PowerShell connection component, which launches poershell and sends command, later pop up comes and which asks for password i am sending password and clicking on ok button. But If username and password is invalid i want close the session and pop up PSMS error message.
04-10-2024 12:38 AM
Hi @Harish Reddy ,
This is not possible. The PSM will only receive disconnect once the connection component is closed. PSM has no control over the connection component error.
Thank you
04-10-2024 12:38 AM
Hi @Harish Reddy ,
This is not possible. The PSM will only receive disconnect once the connection component is closed. PSM has no control over the connection component error.
Thank you
04-10-2024 12:44 AM
Can't we read that error message using au3 script and send command to close session.?
04-10-2024 01:13 AM
The only way you can do is to close the PowerShell session if the error message appears. So that PSM will see session disconnect and closes the session
Thank you
04-10-2024 01:13 AM
The only way you can do is to close the PowerShell session if the error message appears. So that PSM will see session disconnect and closes the session
Thank you
04-10-2024 01:44 AM
Could you please help me how can i do that.?
04-10-2024 02:06 AM
Hi,
You can try this once base on the text you detect when username and password is invalid.
Function ProcessClose (autoitscript.com)
Thank you
04-10-2024 02:06 AM
Hi,
You can try this once base on the text you detect when username and password is invalid.
Function ProcessClose (autoitscript.com)
Thank you
04-10-2024 02:17 AM
Thank you so much,
One more question how to detect the username and password invalid result after executing the command. as you saw in previous SS.
Thanks in advance
04-11-2024 09:23 PM
Can you please update on this.
Thanks
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

