fluidasserts.helper.winrm module

WinRM helper.

These commands must be run on the target server: ::

winrm qc winrm get winrm/config/service winrm set winrm/config/service @{AllowUnencrypted=”true”} winrm set winrm/config/service/auth @{Basic=”true”} winrm set winrm/config/client/auth @{Basic=”true”}

exception fluidasserts.helper.winrm.ConnError

Bases: Exception

A connection error occurred.

requests.exceptions.ConnectionError wrapper exception.

fluidasserts.helper.winrm.winrm_exec_command(server, username, password, command)

Connect to WinRM execute a specific command.

Parameters
  • server (str) – URL or IP of host to test.

  • username (str) – User to connect to WinRM.

  • password (str) – Password for given user.

  • command (str) – Command to execute in WinRM Session.

Return type

str