Class: Ansible::Ruby::Modules::Win_psexec

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/windows/win_psexec.rb

Overview

Run commands (remotely) through the PsExec service Run commands as another (domain) user (with elevated privileges)

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#chdirString?

Returns Run the command from this (remote) directory.

Returns:

  • (String, nil)

    Run the command from this (remote) directory.



33
# File 'lib/ansible/ruby/modules/generated/windows/win_psexec.rb', line 33

attribute :chdir

#commandString

Returns The command line to run through PsExec (limited to 260 characters).

Returns:

  • (String)

    The command line to run through PsExec (limited to 260 characters).



13
# File 'lib/ansible/ruby/modules/generated/windows/win_psexec.rb', line 13

attribute :command

#elevated:yes, ...

Returns Run the command with elevated privileges.

Returns:

  • (:yes, :no, nil)

    Run the command with elevated privileges.



45
# File 'lib/ansible/ruby/modules/generated/windows/win_psexec.rb', line 45

attribute :elevated

#executableString?

Returns The location of the PsExec utility (in case it is not located in your PATH).

Returns:

  • (String, nil)

    The location of the PsExec utility (in case it is not located in your PATH).



17
# File 'lib/ansible/ruby/modules/generated/windows/win_psexec.rb', line 17

attribute :executable

#hostnamesArray<String>, ...

Returns The hostnames to run the command.,If not provided, the command is run locally.

Returns:

  • (Array<String>, String, nil)

    The hostnames to run the command.,If not provided, the command is run locally.



21
# File 'lib/ansible/ruby/modules/generated/windows/win_psexec.rb', line 21

attribute :hostnames

#interactive:yes, ...

Returns Run the program so that it interacts with the desktop on the remote system.

Returns:

  • (:yes, :no, nil)

    Run the program so that it interacts with the desktop on the remote system.



49
# File 'lib/ansible/ruby/modules/generated/windows/win_psexec.rb', line 49

attribute :interactive

#limited:yes, ...

Returns Run the command as limited user (strips the Administrators group and allows only privileges assigned to the Users group).

Returns:

  • (:yes, :no, nil)

    Run the command as limited user (strips the Administrators group and allows only privileges assigned to the Users group).



57
# File 'lib/ansible/ruby/modules/generated/windows/win_psexec.rb', line 57

attribute :limited

#nobanner:yes, ...

Returns Do not display the startup banner and copyright message.,This only works for specific versions of the PsExec binary.

Returns:

  • (:yes, :no, nil)

    Do not display the startup banner and copyright message.,This only works for specific versions of the PsExec binary.



37
# File 'lib/ansible/ruby/modules/generated/windows/win_psexec.rb', line 37

attribute :nobanner

#noprofile:yes, ...

Returns Run the command without loading the account’s profile.

Returns:

  • (:yes, :no, nil)

    Run the command without loading the account’s profile.



41
# File 'lib/ansible/ruby/modules/generated/windows/win_psexec.rb', line 41

attribute :noprofile

#passwordString?

Returns The password for the (remote) user to run the command as.,This is mandatory in order authenticate yourself.

Returns:

  • (String, nil)

    The password for the (remote) user to run the command as.,This is mandatory in order authenticate yourself.



29
# File 'lib/ansible/ruby/modules/generated/windows/win_psexec.rb', line 29

attribute :password

#priority:background, ...

Returns Used to run the command at a different priority.

Returns:

  • (:background, :low, :belownormal, :abovenormal, :high, :realtime, nil)

    Used to run the command at a different priority.



65
# File 'lib/ansible/ruby/modules/generated/windows/win_psexec.rb', line 65

attribute :priority

#sessionInteger?

Returns Specifies the session ID to use.,This parameter works in conjunction with I(interactive).,It has no effect when I(interactive) is set to C(no).

Returns:

  • (Integer, nil)

    Specifies the session ID to use.,This parameter works in conjunction with I(interactive).,It has no effect when I(interactive) is set to C(no).



53
# File 'lib/ansible/ruby/modules/generated/windows/win_psexec.rb', line 53

attribute :session

#system:yes, ...

Returns Run the remote command in the System account.

Returns:

  • (:yes, :no, nil)

    Run the remote command in the System account.



61
# File 'lib/ansible/ruby/modules/generated/windows/win_psexec.rb', line 61

attribute :system

#timeoutInteger?

Returns The connection timeout in seconds.

Returns:

  • (Integer, nil)

    The connection timeout in seconds



69
# File 'lib/ansible/ruby/modules/generated/windows/win_psexec.rb', line 69

attribute :timeout

#usernameString?

Returns The (remote) user to run the command as.,If not provided, the current user is used.

Returns:

  • (String, nil)

    The (remote) user to run the command as.,If not provided, the current user is used.



25
# File 'lib/ansible/ruby/modules/generated/windows/win_psexec.rb', line 25

attribute :username

#wait:yes, ...

Returns Wait for the application to terminate.,Only use for non-interactive applications.

Returns:

  • (:yes, :no, nil)

    Wait for the application to terminate.,Only use for non-interactive applications.



73
# File 'lib/ansible/ruby/modules/generated/windows/win_psexec.rb', line 73

attribute :wait