ansible.builtin.powershell – Windows PowerShell
This shell plugin is part of
ansible-core and included in all Ansible
installations. In most cases, you can use the short
powershell even without specifying the
However, we recommend you use the FQCN for easy linking to the
plugin documentation and to avoid conflicting with other collections that may have
the same shell plugin name.
The only option when using ‘winrm’ or ‘psrp’ as a connection plugin.
Can also be used when using ‘ssh’ as a connection plugin and the
DefaultShellhas been configured to PowerShell.