class_docstr: WinRMOperator to execute commands on given remote host using the winrm_hook.
  
  :param winrm_hook: predefined ssh_hook to use for remote execution
  :param ssh_conn_id: connection id from airflow Connections
  :param remote_host: remote host to connect
  :param command: command to execute on remote host. (templated)
  :param ps_path: path to powershell, `powershell` for v5.1- and `pwsh` for v6+.
      If specified, it will execute the command as powershell script.
  :param output_encoding: the encoding used to decode stout and stderr
  :param timeout: timeout for executing the command.
class_docstr_tok: ["WinRMOperator","to","execute","commands","on","given","remote","host","using","the","winrm_hook",".",":","param","winrm_hook",":","predefined","ssh_hook","to","use","for","remote","execution",":","param","ssh_conn_id",":","connection","id","from","airflow","Connections",":","param","remote_host",":","remote","host","to","connect",":","param","command",":","command","to","execute","on","remote","host",".","(","templated",")",":","param","ps_path",":","path","to","powershell",",","`","powershell","`","for","v5.1-","and","`","pwsh","`","for","v6+",".","If","specified",",","it","will","execute","the","command","as","powershell","script",".",":","param","output_encoding",":","the","encoding","used","to","decode","stout","and","stderr",":","param","timeout",":","timeout","for","executing","the","command","."]
code: def __init__(
      self,
      *,
      winrm_hook: WinRMHook | None = None,
      ssh_conn_id: str | None = None,
      remote_host: str | None = None,
      command: str | None = None,
      ps_path: str | None = None,
      output_encoding: str = "utf-8",
      timeout: int = 10,
      **kwargs,
  ) -> None:
      super().__init__(**kwargs)
      self.winrm_hook = winrm_hook
      self.ssh_conn_id = ssh_conn_id
      self.remote_host = remote_host
      self.command = command
      self.ps_path = ps_path
      self.output_encoding = output_encoding
      self.timeout = timeout
  
file_path: airflow/airflow/providers/microsoft/winrm/operators/winrm.py
imports: from __future__ import annotations
  import logging
  from base64 import b64encode
  from typing import TYPE_CHECKING, Sequence
  from winrm.exceptions import WinRMOperationTimeoutError
  from airflow.configuration import conf
  from airflow.exceptions import AirflowException
  from airflow.models import BaseOperator
  from airflow.providers.microsoft.winrm.hooks.winrm import WinRMHook
label_desc: Use image node_id 1 to create a new WinRMOperator object from inherited base classes: BaseOperator with example: obj = WinRMOperator()