Skip to content
Spencer Varney edited this page Dec 27, 2016 · 3 revisions

Set-GShellDomain

SYNOPSIS

Update a saved domain's default user or mark it as the default domain.

SYNTAX

Set-GShellDomain [-Domain] <String> [-SetAsDefault] [[-DefaultUser] <String>] [[-ParentDomain] <String>]
 [-RemoveParentDomain] [[-ChildDomainsToAdd] <String[]>] [[-ChildDomainsToRemove] <String[]>] [-WhatIf]
 [-Confirm]

DESCRIPTION

Update a saved domain's default user or mark it as the default domain.

EXAMPLES

---------- EXAMPLE 1 ----------

PS C:\> Set-GShellDomain -Domain "example.com" -SetAsDefault

Set this domain as the default domain.

Additional examples may be added, viewed and edited by users on the community wiki at the URL found in the related links.

PARAMETERS

-Domain

The target domain.

Type: String
Parameter Sets: (All)
Aliases: 

Required: True
Position: 0
Default value: 
Accept pipeline input: False
Accept wildcard characters: False

-SetAsDefault

Indicate that this should be the default domain.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: 

Required: False
Position: 1
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-DefaultUser

The user in the domain that should be used as the default user.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 2
Default value: 
Accept pipeline input: False
Accept wildcard characters: False

-ParentDomain

This domain's parent domain, if this domain is not a primary domain. Use an empty string to remove the parent domain.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 3
Default value: 
Accept pipeline input: False
Accept wildcard characters: False

-RemoveParentDomain

Remove this domain's parent domain, if one exists.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: 

Required: False
Position: 4
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-ChildDomainsToAdd

Child domains of this domain to add, if not already present.

Type: String[]
Parameter Sets: (All)
Aliases: 

Required: False
Position: 5
Default value: 
Accept pipeline input: False
Accept wildcard characters: False

-ChildDomainsToRemove

Child domains of this domain to remove, if present.

Type: String[]
Parameter Sets: (All)
Aliases: 

Required: False
Position: 6
Default value: 
Accept pipeline input: False
Accept wildcard characters: False

INPUTS

OUTPUTS

NOTES

Part of the gShell Project, relating to the Google Drive API; see Related Links or use the -Online parameter.

RELATED LINKS

[Wiki page for this Cmdlet]

[Getting started with gShell]

Clone this wiki locally