Skip to content

Powershell code sample

robertj edited this page Sep 14, 2010 · 8 revisions

creating user accounts:

$UserService = New-GDataUserService -AdminPassword Password -AdminUsername admin@domain.com
$MailSettingsService = New-GDataMailSettingsService -AdminPassword Password -AdminUsername admin@domain.com

New-GDataUser -UserService $UserService -FamilyName $FamilyName -GivenName $GivenName -ID $id -Passsword $password
Add-GDataUserNickName -UserService $UserService -ID $id -NickName $nickname

Set-GDataMailSetting -ID $id -Name "$GivenName $FamilyName" -SenderAdress $nickname -IsDefault -MailSettingsService $MailSettingsService
Clone this wiki locally