Merge pull request #4238 from inspec/ja/add-domain-winrm-examples

Add CLI target examples for Windows domain users
This commit is contained in:
Miah Johnson 2019-07-01 23:32:25 -07:00 committed by GitHub
commit 3b8aa8ee3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -31,15 +31,18 @@ Chef InSpec makes it easy to run your tests wherever you need. More options are
# run test locally
inspec exec test.rb
# run test on remote host on SSH
# run test on remote host via SSH
inspec exec test.rb -t ssh://user@hostname -i /path/to/key
# run test on remote host using SSH agent private key authentication. Requires Chef InSpec 1.7.1
inspec exec test.rb -t ssh://user@hostname
# run test on remote windows host on WinRM
# run test on remote windows host via WinRM
inspec exec test.rb -t winrm://Administrator@windowshost --password 'your-password'
# run test on remote windows host via WinRM as a domain user
inspec exec test.rb -t winrm://windowshost --user 'UserName@domain' --password 'your-password'
# run test on docker container
inspec exec test.rb -t docker://container_id
```

View file

@ -39,6 +39,7 @@ path, `--ssl` to use SSL for transport layer encryption.
$ inspec shell -t ssh://root@192.168.64.2:11022 # Login to remote machine using ssh as root.
$ inspec shell -t ssh://user@hostname:1234 -i /path/to/user_key # Login to hostname on port 1234 as user using given ssh key.
$ inspec shell -t winrm://UserName:Password@windowsmachine:1234 # Login to windowsmachine over WinRM as UserName.
$ inspec shell -t winrm://windowsmachine --user 'UserName@domain' --password 'Secret123!' # Login to windowsmachine as UserName@domain.org.
$ inspec shell -t docker://container_id # Login to a Docker container.
```