-
Notifications
You must be signed in to change notification settings - Fork 10
Set GShellServiceAccount
Set a service account for a Google Apps domain.
Set-GShellServiceAccount [-Domain] <String> [-ServiceAccountId] <String> [-CertificatePath] <String>
[[-KeyPassword] <String>] [-WhatIf] [-Confirm]
Set a service account for a Google Apps domain. A service account lets you run Cmdlets (that would otherwise be only for your own user) on behalf of a user in your domain. You must have domain administrator rights to use a service account. This will not work with Gmail accounts (unless maybe you work for Google).
PS C:\> Set-GShellServiceAccount -Domain $SomeDomainString -Email $SomeEmailString
This example serves to show the bare minimum required to call this Cmdlet.
Additional examples may be added, viewed and edited by users on the community wiki at the URL found in the related links.
The domain the service account will represent and act upon. Do not include the @ symbol.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value:
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
The full service account ID provided for the service account. This ID may look like an email address for a domain like 'gserviceaccount.com'.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value:
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
The full system path to the service account key in json or P12 format. You were given this file when you created the service account.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value:
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
The password for the key. If not provided defaults to 'notasecret' which is usually the case.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value:
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
The domain the service account will represent and act upon. Do not include the @ symbol.
The full service account ID provided for the service account. This ID may look like an email address for a domain like 'gserviceaccount.com'.
The full system path to the service account key in json or P12 format. You were given this file when you created the service account.
The password for the key. If not provided defaults to 'notasecret' which is usually the case.
Part of the gShell Project, relating to the Google Drive API; see Related Links or use the -Online parameter.
News - Get Started - Cmdlet Index - FAQ - Discussion - Downloads