module Chef::Mixin::PowershellExec
Public Instance Methods
powershell_exec(script)
click to toggle source
Run a command under PowerShell
via a managed (.NET) COM interop API. This implementation requires the managed dll to be registered on the target machine.
Requires: .NET Framework 4.0 or higher on the target machine.
@param script [String] script to run @return [Chef::PowerShell] output
# File lib/chef/mixin/powershell_exec.rb, line 100 def powershell_exec(script) Chef::PowerShell.new(script) end