Skip to content

Test-IsElevated

SYNOPSIS

Check if you are running an elevated shell with administrator or root privileges.

SYNTAX

Test-IsElevated [<CommonParameters>]

DESCRIPTION

Check if you are running an elevated shell with administrator or root privileges.

EXAMPLES

EXAMPLE 1

Test-IsElevated

PARAMETERS

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

OUTPUTS

Boolean

NOTES