Cmdlets for Microsoft Exchange

Build 24.0.9060

Update-Exchange Cmdlet

Parameters   Output Objects  

Updates Microsoft Exchange data.

Syntax

Update-Exchange [parameters]

Remarks

The Update-Exchange cmdlet allows you to use a syntax similar to SQL UPDATE statements to update Microsoft Exchange data.

$conn = Connect-Exchange -User '[email protected]' -Password 'myPassword' -Server 'https://outlook.office365.com/EWS/Exchange.asmx' -Platform 'Exchange_Online'
Update-Exchange -Connection $conn -Table "Contacts" -Columns @("GivenName") -Values @("Jon Doe") -Id "AQMkAGRlMWQ5MDg0..."
The Where parameter can also be used to specify the primary key of the table:
Update-Exchange -Connection $conn -Table "Contacts" -Columns @("GivenName") -Values @("Jon Doe") -Where "ItemId = 'AQMkAGRlMWQ5MDg0...'"
The primary key can also be passed to the cmdlet along the pipeline:
Select-Exchange -Connection $conn -Table Contacts -Where "BusinessAddress_City = 'Raleigh'" | Update-Exchange -Columns @("BusinessAddress_City") -Values @("Raleigh 2")

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060