Test-LabAutoLogon

SYNOPSIS

Test if the autologon settings are correct

SYNTAX

Test-LabAutoLogon [[-ComputerName] <String[]>] [<CommonParameters>]

DESCRIPTION

Test if the autologon settings are correct

EXAMPLES

Example 1

PS C:\> if (-not (Test-LabAutoLogon SQL01)) {Enable-LabAutoLogon SQL01}

If auto logon is not configured, configure it for SQL01

PARAMETERS

-ComputerName

The hosts to test auto logon on

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

Required: False
Position: 0
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