Set-DisplayIsAdmin.ps1


Description

Purpose

Sets the console window title to display the current user’s username, privileges, and current path.

Detailed Description

This function sets the console window title to display the current user’s username, followed by their privileges (either “Admin Privileges” or “User Privileges”), and the current path.

Back to Top

Usage

Example 1

Set-TitleisAdmin

Back to Top

Notes

No additional notes.

Back to Top


Script

function Set-DisplayIsAdmin {
    <#
        .SYNOPSIS
        Updates the console window title to indicate if the session has administrative privileges.

        .DESCRIPTION
        This is a thin wrapper around Set-TitleisAdmin (exported by Set-PromptisAdmin.ps1) to maintain backward
        compatibility with scripts that reference Set-DisplayIsAdmin directly.
    #>
    [CmdletBinding()]
    param()

    Set-TitleisAdmin
}

Back to Top

Download

Please feel free to copy parts of the script or if you would like to download the entire script, simply click the download button. You can download the complete repository in a zip file by clicking the Download link in the menu bar on the left hand side of the page.


Report Issues

You can report an issue or contribute to this site on GitHub. Simply click the button below and add any relevant notes. I will attempt to respond to all issues as soon as possible.

Issue


Back to Top