Set-WindowsAutoLogin
SYNOPSIS
Enable autologin on a device.
SYNTAX
Disable (Default)
Set-WindowsAutoLogin -ComputerName <String[]> [-Action <String>] [<CommonParameters>]
Enable
Set-WindowsAutoLogin -ComputerName <String[]> [-Action <String>] [-LogonCredentials <PSCredential>]
[-RestartHost] [<CommonParameters>]
DESCRIPTION
Enable autologin on a device.
EXAMPLES
EXAMPLE 1
Set-WindowsAutoLogin -ComputerName apollo.internal.lab -Action Enable -LogonCredentials $newcred -RestartHost
PARAMETERS
-ComputerName
The target computer name.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Action
Disable or enable settings.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-LogonCredentials
Credentials to use.
Type: PSCredential
Parameter Sets: Enable
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-RestartHost
Restart device after change.
Type: SwitchParameter
Parameter Sets: Enable
Aliases:
Required: False
Position: Named
Default value: False
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
OUTPUTS
NOTES
General notes