< Back
Test-AdministratorRole
Post
NAME Test-AdministratorRole
SYNOPSIS
Gets a value indicating whether the current user is an administrator.
SYNTAX
Test-AdministratorRole [<CommonParameters>]
DESCRIPTION
Returns $True or $False, depending on whether the current user is in the built-in Administatrators role
PARAMETERS
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
System.Boolean. Returns a value indicating whether the current user is a administrator
RELATED LINKS
SYNOPSIS
Gets a value indicating whether the current user is an administrator.
SYNTAX
Test-AdministratorRole [<CommonParameters>]
DESCRIPTION
Returns $True or $False, depending on whether the current user is in the built-in Administatrators role
PARAMETERS
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
System.Boolean. Returns a value indicating whether the current user is a administrator
RELATED LINKS