(self, shell, executable, arguments=None, id=None,
                 no_shell=False)
A new process to run over a default WinRS shell.

        :param shell: The WinRS shell to run the process over
        :param executable: The execute/command to run
        :param arguments: A list of arguments to use with the executable or
            command
        :param id: The ID of the command, if not specified then this is
            dynamically created
        :param no_shell: Whether to create the command in the cmd shell or
            bypass it. If True then executable must be the full path to the
            exe. This only works on older OS's before 2012 R2 (not including)
A new process to run over a default WinRS shell.
A new process to run over a default WinRS shell .
def __init__(self, shell, executable, arguments=None, id=None,
                 no_shell=False):
        """
        A new process to run over a default WinRS shell.

        :param shell: The WinRS shell to run the process over
        :param executable: The execute/command to run
        :param arguments: A list of arguments to use with the executable or
            command
        :param id: The ID of the command, if not specified then this is
            dynamically created
        :param no_shell: Whether to create the command in the cmd shell or
            bypass it. If True then executable must be the full path to the
            exe. This only works on older OS's before 2012 R2 (not including)
        """
        log.debug("Creating WinRS process for '%s' with arguments '%s'"
                  % (executable, arguments))
        self.shell = shell
        self.id = id
        self.no_shell = no_shell
        self.executable = executable
        self.arguments = arguments
        self.state = CommandState.PENDING
        self.rc = None
        self.stdout = b""
        self.stderr = b""
def __init__ ( self , shell , executable , arguments = None , id = None , no_shell = False ) : log . debug ( "Creating WinRS process for '%s' with arguments '%s'" % ( executable , arguments ) ) self . shell = shell self . id = id self . no_shell = no_shell self . executable = executable self . arguments = arguments self . state = CommandState . PENDING self . rc = None self . stdout = b"" self . stderr = b""