Set-UnattendedAutoLogon

SYNOPSIS

Set the auto logon account in the unattend file

SYNTAX

Set-UnattendedAutoLogon [-DomainName] <String> [-Username] <String> [-Password] <String> [-IsKickstart]
 [-IsAutoYast] [<CommonParameters>]

DESCRIPTION

Set the auto logon account in the unattend file

EXAMPLES

Example 1

PS C:\> Set-UnattendedAutoLogon -Domain contoso.com -User Hans -Password Somepass1

Enables the automatic login of the account Hans in the domain contoso.com

PARAMETERS

-DomainName

The domain name

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: (All)
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: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Password

The password of the autologon account

Type: String
Parameter Sets: (All)
Aliases:

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

-Username

The account name to automatically log on

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.

INPUTS

None

OUTPUTS

System.Object

NOTES