# File lib/chef/knife/windows_bootstrap.rb, line 94 def psexec(args) cmd = ['psexec', @unc_path, "-h", "-w", 'c:\cchef\tmp'] if config[:user] cmd << "-u" << config[:user] end if config[:password] cmd << "-p" << config[:password] end cmd << args cmd = cmd.join(' ') Chef::Log.debug("system #{cmd}") system(cmd) end