< Back
Get-ConsoleElevationStatus
Post
NAME Get-ConsoleElevationStatus
SYNOPSIS
Check if Powershell Console is running in elevated mode.
SYNTAX
Get-ConsoleElevationStatus [-Bool] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Checking if Powershell Console is running in elevated mode.
PARAMETERS
-Bool [<SwitchParameter>]
Switch to return only bool value
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<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.String
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-ConsoleElevationStatus
Name : Windows PowerShell ISE Host
Version : 5.1.17134.407
InstanceId : e520b701-6509-498c-9727-22336d10f0a4
UI : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture : en-US
CurrentUICulture : en-US
PrivateData : Microsoft.PowerShell.Host.ISE.ISEOptions
DebuggerEnabled : True
IsRunspacePushed : False
Runspace : System.Management.Automation.Runspaces.LocalRunspace
IsElevated : True
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>iselevated -short
True
RELATED LINKS
SYNOPSIS
Check if Powershell Console is running in elevated mode.
SYNTAX
Get-ConsoleElevationStatus [-Bool] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Checking if Powershell Console is running in elevated mode.
PARAMETERS
-Bool [<SwitchParameter>]
Switch to return only bool value
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<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.String
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-ConsoleElevationStatus
Name : Windows PowerShell ISE Host
Version : 5.1.17134.407
InstanceId : e520b701-6509-498c-9727-22336d10f0a4
UI : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture : en-US
CurrentUICulture : en-US
PrivateData : Microsoft.PowerShell.Host.ISE.ISEOptions
DebuggerEnabled : True
IsRunspacePushed : False
Runspace : System.Management.Automation.Runspaces.LocalRunspace
IsElevated : True
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>iselevated -short
True
RELATED LINKS