win_command - Executes a command on a remote Windows node

Synopsis

  • The win_command module takes the command name followed by a list of space-delimited arguments.

  • The given command will be executed on all selected nodes. It will not be processed through the shell, so variables like $env:HOME and operations like “<”, “>”, “|”, and “;” will not work (use the win_shell module if you need these features).

  • For non-Windows targets, use the command module instead.