by

Utilizing the Workplace365/Change 2016 REST API to entry Mailbox information utilizing PowerShell half 4

Utilizing the Workplace365/Change 2016 REST API to entry Mailbox information utilizing PowerShell half Four That is half Four of my ongoing sequence for utilizing the brand new REST API in Workplace365 and Change 2016. To make the module I created in earlier posts a bit extra simpler to make use of and open it up for different folks to contribute to, I’ve printed the module to the PowerShell Gallery and a brand new GitHub repository for contribution right here https://github.com/gscales/Exch-Relaxation. So to put in the most recent model of the module from the PowerShell gallery on Home windows 10 you simply want to make use of

Set up-Module Exch-Relaxation which is able to pull the most recent model down from the Gallery

then Import-Module Exch-Relaxation to load the module

(For Home windows 8.1 see http://go.microsoft.com/fwlink/?LinkID=746217&clcid=0x409 )

I’ve modified the authentication features to assist you to cross within the ClientId, TenantId and RedirectURL to make it simpler to make use of fairly then having to make use of static variables. The documentation nonetheless wants quite a lot of work.

New features I’ve added not too long ago

Get-UserPhotoMetaData

     Will get the consumer’s photograph Metadata

Get-UserPhoto

     Download the biggest UserPhoto

Folder Operations

New-Folder

    Creates a New Mail Folder (you can too create folder of a subclass of IPM.Word)

New-CalendarFolder

    Creates a New Calendar Folder

New-ContactsFolder

    Creates a New Contacts Folder

Rename-Folder

   Renames an current folder

Replace-Folder

    Updates an current folder

Invoke-DeleteFolder

   Deletes and current Mailbox Folder

Set-FolderRetentionTag

  Set a Private retention Tag on a Folder this makes use of the Prolonged properties simular to this EWS script https://blogs.msdn.microsoft.com/akashb/2011/08/10/stamping-retention-policy-tag-using-ews-managed-api-1-1-from-powershellexchange-2010/

Prolonged property help