Skip to content

Instantly share code, notes, and snippets.

@zzamboni
Created December 23, 2010 18:13
Show Gist options
  • Select an option

  • Save zzamboni/753333 to your computer and use it in GitHub Desktop.

Select an option

Save zzamboni/753333 to your computer and use it in GitHub Desktop.
Add a task to Outlook using powershell script
;----------------------------------------------------------------------
; Add a task to Outlook using powershell.
; InputBox reference: http://www.autohotkey.com/docs/commands/InputBox.htm
; PowerShell script from http://www.leeholmes.com/blog/2007/03/01/getting-things-done-%E2%80%93-outlook-task-automation-with-powershell/
#Space::
InputBox, description, Add task,,,,100
If (ErrorLevel == 0) {
; Running it through %comspec% and with the Hide option prevents a
; command windows from briefly opening when the command is
; executed.
Run, %comspec% /c "powershell -file %HOME%\Documents\Add-OutlookTask.ps1 "%description%"",,Hide
}
@wilt00

wilt00 commented Sep 6, 2016

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment