Skip to content
robertj edited this page Sep 14, 2010 · 3 revisions

GDataContact cmdlets are used for provisioning and management of Google Apps user and domain contacts in powershell.
Parameters within [ ] are optional. If Scope is not set domain is used (Domain shared contacts).

Remove-GDataContact

Removes a Google Apps contact.

Example:


Remove-GDataContact -Service $Service -SelfUri $Contact.SelfUri [-Scope user@domain.com]

Get-GDataContact

Returns a Google Apps contact.
If SelfUri is used the specify contact is returned.
If Name is used All contacts matching the input is returned.

Example:


Get-GDataContact -Service $Service [-SelfUri $Contact.SelfUri ] [-Name Firstname ] [-Scope user@domain.com]

Set-GDataContact

Modifies a Google Apps contact.

Example:


Set-GDataContact -Service $Service -SelfUri $Contact.SelfUri [-EmailAddress fistname.lastname@domain.com] [-Name Firstname Lastname] [-PhoneNumber +46112476543] [-PostalAddress Firststreet 11, 11232] [-City Ankeborg] [-Scope user@domain.com]

New-GDataContact

Creates a Google Apps contact.

Example:


New-GDataContact -Service $Service -EmailAddress firstname.lastname@domain.com -Name Firstname Lastname [-PhoneNumber +46112476543] [-PostalAddress Firststreet 11, 11232] [-City Ankeborg] [-Scope user@domain.com]
Clone this wiki locally