This is part 4 of my ongoing series for using the new REST API in Office365 and Exchange 2016. To make the module I created in previous posts a little more easier to use and open it up for other people to contribute to, I've published the module to the PowerShell Gallery and a new GitHub repository for contribution here https://github.com/gscales/Exch-Rest. So to install the latest version of the module from the PowerShell gallery on Windows 10 you just need to use
Install-Module Exch-Rest which will pull the latest version down from the Gallery
then Import-Module Exch-Rest to load the module
(For Windows 8.1 see http://go.microsoft.com/fwlink/?LinkID=746217&clcid=0x409 )
I've changed the authentication functions to allow you to pass in the ClientId, TenantId and RedirectURL to make it easier to use rather then having to use static variables. The documentation still needs a lot of work.
New functions I've added recently
Get-UserPhotoMetaData
Gets the user's photo Metadata
Get-UserPhoto
Download the largest UserPhoto
Folder Operations
New-Folder
Creates a New Mail Folder (you can also create folder of a subclass of IPM.Note)
New-CalendarFolder
Creates a New Calendar Folder
New-ContactsFolder
Creates a New Contacts Folder
Rename-Folder
Renames an existing folder
Update-Folder
Updates an existing folder
Invoke-DeleteFolder
Deletes and existing Mailbox Folder
Set-FolderRetentionTag
Set a Personal retention Tag on a Folder this uses the Extended 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/
Extended property support
Install-Module Exch-Rest which will pull the latest version down from the Gallery
then Import-Module Exch-Rest to load the module
(For Windows 8.1 see http://go.microsoft.com/fwlink/?LinkID=746217&clcid=0x409 )
I've changed the authentication functions to allow you to pass in the ClientId, TenantId and RedirectURL to make it easier to use rather then having to use static variables. The documentation still needs a lot of work.
New functions I've added recently
Get-UserPhotoMetaData
Gets the user's photo Metadata
Get-UserPhoto
Download the largest UserPhoto
Folder Operations
New-Folder
Creates a New Mail Folder (you can also create folder of a subclass of IPM.Note)
New-CalendarFolder
Creates a New Calendar Folder
New-ContactsFolder
Creates a New Contacts Folder
Rename-Folder
Renames an existing folder
Update-Folder
Updates an existing folder
Invoke-DeleteFolder
Deletes and existing Mailbox Folder
Set-FolderRetentionTag
Set a Personal retention Tag on a Folder this uses the Extended 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/
Extended property support