Class: Ansible::Ruby::Modules::Win_psexec
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Win_psexec
- 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
-
#chdir ⇒ String?
Run the command from this (remote) directory.
-
#command ⇒ String
The command line to run through PsExec (limited to 260 characters).
-
#elevated ⇒ :yes, ...
Run the command with elevated privileges.
-
#executable ⇒ String?
The location of the PsExec utility (in case it is not located in your PATH).
-
#hostnames ⇒ Array<String>, ...
The hostnames to run the command.,If not provided, the command is run locally.
-
#interactive ⇒ :yes, ...
Run the program so that it interacts with the desktop on the remote system.
-
#limited ⇒ :yes, ...
Run the command as limited user (strips the Administrators group and allows only privileges assigned to the Users group).
-
#nobanner ⇒ :yes, ...
Do not display the startup banner and copyright message.,This only works for specific versions of the PsExec binary.
-
#noprofile ⇒ :yes, ...
Run the command without loading the account’s profile.
-
#password ⇒ String?
The password for the (remote) user to run the command as.,This is mandatory in order authenticate yourself.
-
#priority ⇒ :background, ...
Used to run the command at a different priority.
-
#session ⇒ Integer?
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).
-
#system ⇒ :yes, ...
Run the remote command in the System account.
-
#timeout ⇒ Integer?
The connection timeout in seconds.
-
#username ⇒ String?
The (remote) user to run the command as.,If not provided, the current user is used.
-
#wait ⇒ :yes, ...
Wait for the application to terminate.,Only use for non-interactive applications.
Methods inherited from Base
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
#chdir ⇒ String?
Returns Run the command from this (remote) directory.
33 |
# File 'lib/ansible/ruby/modules/generated/windows/win_psexec.rb', line 33 attribute :chdir |
#command ⇒ String
Returns 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.
45 |
# File 'lib/ansible/ruby/modules/generated/windows/win_psexec.rb', line 45 attribute :elevated |
#executable ⇒ String?
Returns 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 |
#hostnames ⇒ Array<String>, ...
Returns 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.
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).
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.
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.
41 |
# File 'lib/ansible/ruby/modules/generated/windows/win_psexec.rb', line 41 attribute :noprofile |
#password ⇒ String?
Returns 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.
65 |
# File 'lib/ansible/ruby/modules/generated/windows/win_psexec.rb', line 65 attribute :priority |
#session ⇒ Integer?
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).
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.
61 |
# File 'lib/ansible/ruby/modules/generated/windows/win_psexec.rb', line 61 attribute :system |
#timeout ⇒ Integer?
Returns The connection timeout in seconds.
69 |
# File 'lib/ansible/ruby/modules/generated/windows/win_psexec.rb', line 69 attribute :timeout |
#username ⇒ String?
Returns 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.
73 |
# File 'lib/ansible/ruby/modules/generated/windows/win_psexec.rb', line 73 attribute :wait |