Cmdlets for Microsoft Exchange

Build 25.0.9434

Remove-Exchange Cmdlet

Parameters   Output Objects  

Microsoft Exchange データを削除します。

Syntax

Remove-Exchange [parameters]

Remarks

Remove-Exchange コマンドレットを使って、SQL DELETE ステートメントに似た構文を用いてMicrosoft Exchange データを削除できます。

$conn = Connect-Exchange -User '[email protected]' -Password 'myPassword' -Server 'https://outlook.office365.com/EWS/Exchange.asmx' -Platform 'Exchange_Online'
Remove-Exchange -Connection $conn -Table "Contacts" -Id "AQMkAGRlMWQ5MDg0..."
Where パラメータは主キーを指定するためにも使われます。
Remove-Exchange -Connection $conn -Table "exTablePowershell;" -Where "ItemId = AQMkAGRlMWQ5MDg0..."
主キーは、パイプライン上でコマンドレットに渡すこともできます。
Select-Exchange -Connection $conn -Table Contacts -Where "BusinessAddress_City = 'Raleigh'" | Remove-Exchange

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434