diff options
author | Moser, Kevin <Kevin.Moser@nordstrom.com> | 2013-02-22 15:11:05 -0800 |
---|---|---|
committer | Moser, Kevin <Kevin.Moser@nordstrom.com> | 2013-02-22 15:11:05 -0800 |
commit | 42592d8c0dcddf82db28dbb74ef648ba91ea2b01 (patch) | |
tree | 36a6d2a3e03d6b4a4fc42e68e57508afdd47d760 /README.md | |
parent | 89bdd5f6fd57c3bd6bd7d89b19f5add9e35d0bde (diff) | |
download | mixlib-shellout-42592d8c0dcddf82db28dbb74ef648ba91ea2b01.tar.gz |
Update README.md with windows impersonation example
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -36,6 +36,12 @@ Invoke crontab to edit user cron: crontab = Mixlib::ShellOut.new("crontab -l -u #{@new_resource.user}", :input => crontab_lines.join("\n")) crontab.run_command +## Windows Impersonation Example +Invoke crontab to edit user cron: + + whomai = Mixlib::ShellOut.new("whoami.exe", :user => "username", :domain => "DOMAIN", :password => "password") + whoami.run_command + ## Platform Support Mixlib::ShellOut does a standard fork/exec on Unix, and uses the Win32 API on Windows. There is not currently support for JRuby. |