Update-GoogleContacts Cmdlet
GoogleContacts データを更新します。
Syntax
Update-GoogleContacts [parameters]
Remarks
Update-GoogleContacts コマンドレットを使って、SQL UPDATE ステートメントに似た構文を用いてGoogleContacts データを更新できます。
$conn = Connect-GoogleContacts Update-GoogleContacts -Connection $conn -Table "[My Contacts]" -Columns @("HomeEmailAddresses") -Values @("Jon Doe") -Id "1"Where パラメータはテーブルの主キーを指定するためにも使われます。
Update-GoogleContacts -Connection $conn -Table "[My Contacts]" -Columns @("HomeEmailAddresses") -Values @("Jon Doe") -Where "Id = '1'"主キーは、パイプライン上でコマンドレットに渡すこともできます。
Select-GoogleContacts -Connection $conn -Table [My Contacts] -Where "Id = 'c7782206569106794554'" | Update-GoogleContacts -Columns @("Id") -Values @("c7782206569106794554 2")