ansible connecting to remote powershell (azure) handling password prompts

Hello Community,

Hope everyone is well and safe from covid-19 threats.

I need suggestions if it possible to automate “remote PowerShell administration”, i want to automate the whole process of login , running few cmds over emc (exchange mgt shell) and dump reports.

I want to automate the
“$UserCredential = Get-Credential”

The pop-up, where i enter the user/password , can “ansible” assist me interacting with the windows UI handle and manage it for me.

I’m new to “ansible” so, this would be my first implementation of ansible. Thanks.

Nope thats not how you would do it. Ansible understands Get-credential or the remote system would. Unless you have something like 2fa. In which case you would use conditional access to handle such things

Yes got it much thanks.

regards
asad