Test-IsAdministrator

SYNOPSIS

Test if the current user is a local administrator

SYNTAX

Test-IsAdministrator [<CommonParameters>]

DESCRIPTION

Test if the current user is a local administrator

EXAMPLES

Example 1

PS C:\> Test-IsAdministrator

Returns true or false

PARAMETERS

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