Skip to content

Instantly share code, notes, and snippets.

@gscales
Created May 1, 2015 00:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gscales/26d9fa299b3de5f86a15 to your computer and use it in GitHub Desktop.
Save gscales/26d9fa299b3de5f86a15 to your computer and use it in GitHub Desktop.
Powershell Online Calendar sample
Invoke-RestMethod -Uri ("https://outlook.office365.com/api/v1.0/users/sharedmailbox@domain.com/calendarview?startDateTime=" + (Get-Date).ToUniversalTime().ToString("yyyy-MM-ddThh:mm:ssZ") + "&endDateTime=" + (Get-Date).ToUniversalTime().AddDays(7).ToString("yyyy-MM-ddThh:mm:ssZ")) -Credential (Get-Credential) | foreach-object{$_.Value}
@lazywinadmin
Copy link

Thanks Glen!

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