Public/Disable-PasswordPeak.ps1

<#
    .DESCRIPTION
    Disables Password peaking in windows password prompts. Especially useful if providing remote support and needing to type in admin credentials.
 
    .Link
    https://github.com/TheTaylorLee/AdminToolbox
#>


function Disable-PasswordPeek {


    [CmdletBinding()]
    Param (
    )

    #Check for Admin Privleges
    Get-Elevation

    reg.exe ADD "HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CredUI" /v DisablePasswordReveal /t REG_DWORD /d 1 /f
}