powershell_script ‘calc start time’ do
code <<-EOH
$starttime = (get-date).AddMinutes(5).ToString(“HH:mm”)
EOH
end
What is correct syntax?
windows_task ‘windowspatches’ do
command ‘Powershell.exe my powershell script’
frequency :once
start_time “$starttime”
end
Thanks!!!
Thanks so much!! I am new to Chef/Ruby/Powershell and very much appreciate the help…
I am using below for day 2 provisioning and only want to run one time. If I understand correctly, this script would get scheduled every time client runs. Any ideas on how to handle?