Test-IsElevated¶
SYNOPSIS¶
Check if you are running an elevated shell with administrator or root privileges.
SYNTAX¶
DESCRIPTION¶
Check if you are running an elevated shell with administrator or root privileges.
EXAMPLES¶
EXAMPLE 1¶
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).