Set-UnattendedDomain
SYNOPSIS
Set the domain membership
SYNTAX
Windows (Default)
Set-UnattendedDomain [-DomainName] <String> [-Username] <String> [-Password] <String>
[-OrganizationalUnit <String>] [<CommonParameters>]
CloudInit
Set-UnattendedDomain [-DomainName] <String> [-Username] <String> [-Password] <String>
[-OrganizationalUnit <String>] [-IsCloudInit] [<CommonParameters>]
Yast
Set-UnattendedDomain [-DomainName] <String> [-Username] <String> [-Password] <String>
[-OrganizationalUnit <String>] [-IsAutoYast] [<CommonParameters>]
Kickstart
Set-UnattendedDomain [-DomainName] <String> [-Username] <String> [-Password] <String>
[-OrganizationalUnit <String>] [-IsKickstart] [<CommonParameters>]
DESCRIPTION
Set the domain membership. On Linux, requires the necessary packages for the realm command to complete. These are oddjob, oddjob-mkhomedir, sssd, adcli and krb5-workstation.
EXAMPLES
Example 1
PS C:\> Set-UnattendedDomain -DomainName contoso.com -UserName Install -Password Somepass1
Configures the domain join credentials for a Windows unattend file.
PARAMETERS
-DomainName
The domain to configure
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-IsAutoYast
Indicates that this setting is placed in an AutoYAST file
Type: SwitchParameter
Parameter Sets: Yast
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-IsCloudInit
Indicates that this setting is placed in a cloudinit file
Type: SwitchParameter
Parameter Sets: CloudInit
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-IsKickstart
Indicates that this setting is placed in a Kickstart file
Type: SwitchParameter
Parameter Sets: Kickstart
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-OrganizationalUnit
The organizational unit to add this computer to.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Password
The password of the domain join account
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Username
The domain join account
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.