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

Powershell cmdlets for Google Apps, GData cmdlet

2.
Add the cmdlet to powershell

set-alias installutil $env:windir\Microsoft.NET\Framework\v2.0.50727\installutil
Fore 64bit use “set-alias installutil $env:windir\Microsoft.NET\Framework64\v2.0.50727\installutil”

installutil Microsoft.PowerShell.GData.dll
Add-PSSnapin GData

Example use:

$Service = New-GDataService -AdminPassword Password -AdminUsername admin@plan-tre.net
New-GDataUser -Service $Service -FamilyName Robert -GivenName Jonsson -ID robertj -Passsword Password
Add-GDataUserNickName -Service $Service -ID robertj -NickName robert.jonsson@plan-tre.net

Set-GDataMailSetting -ID robertj -Name “Robert Jonsson” -SenderAdress robert.jonsson@plan-tre.net -IsDefault
-MailSettingsService $Service

This project includes:

New-GDataService

Remove-GDataContact
Get-GDataContact
Set-GDataContact
New-GDataContact

Remove-GDataGroup
Get-GDataGroup
Get-GDataGroupMember
Add-GDataGroupMember
Remove-GDataGroupMember
Get-GDataGroupOwner
Add-GDataGroupOwner
Remove-GDataGroupOwner
Set-GDataGroup
New-GDataGroup

Set-GDataGDataMailSetting

Remove-GDatauser
Get-GDataUser
Set-GDataUser
New-GDataUser
Get-GDataUserNickName
Add-GDataUserNickName
Remove-GDataUserNickName

Get-GDataCalendar
Set-GDataCalendar
New-GDataCalendar
Remove-GDataCalendar
Get-GDataCalendarAcl
Add-GDataCalendarAcl
Remove-GDataCalendarAcl

New-GDataResource
Get-GDataResource
Remove-GDataResource
Set-GDataResource

New-GDataProfile
Get-GDataProfile
Remove-GDataProfile
Set-GDataProfile

Clone this wiki locally