Invoke-EnsureAdministrator
SYNOPSIS
Ensures the current session is running as an Administrator.
SYNTAX
Invoke-EnsureAdministrator
DESCRIPTION
This function will check if the current session is running as an Administrator. If it is not, it will exit with an error code.
EXAMPLES
EXAMPLE 1
Invoke-EnsureAdministrator