-
Notifications
You must be signed in to change notification settings - Fork 4
Powershell code sample
robertj edited this page Sep 14, 2010
·
8 revisions
creating user accounts:
Create services for google
$UserService = New-GDataUserService -AdminPassword Password -AdminUsername admin@domain.com
$MailSettingsService = New-GDataMailSettingsService -AdminPassword Password -AdminUsername admin@domain.com
Create User and add nickname
New-GDataUser -UserService $UserService -FamilyName $FamilyName -GivenName $GivenName -ID $id -Passsword $password
Add-GDataUserNickName -UserService $UserService -ID $id -NickName $nickname
Set email sender-address
bc .Set-GDataMailSetting -ID $id -Name “$GivenName $FamilyName” -SenderAdress $nickname -IsDefault -MailSettingsService $MailSettingsService