def winrm_cmd(session, command, flags, **kwargs):
 log.debug('Executing WinRM command: {0} {1}'.format(command, flags))
 r = session.run_cmd(command, flags)
 return r.status_code

def winrm_cmd ( session , command , flags , ** kwargs ) : log . debug ( 'Executing WinRM command: {0} {1}' . format ( command , flags ) ) r = session . run_cmd ( command , flags ) return r . status_code
wrapper for commands to be run against windows boxes using winrm .