Windows Vista Forums

Suggestion: Add the 6 missing standard aliases to PowerShell

  1. #1


    Alex K. Angelopoulos [MVP] Guest

    Suggestion: Add the 6 missing standard aliases to PowerShell

    https://connect.microsoft.com/feedba...3514&SiteID=99

    Currently we have 6 standard aliases for core cmdlets that are not set in
    the PowerShell internal startup script, probably through oversight. Because
    people will expect these aliases to be there, I believe they should be
    added.



    With the exception of two families (cmdlets using the verb Format or the
    noun Object) the PS-designed aliases are uniform and can generally have verb
    and noun abbreviations mixed-and-matched. Even the Format and Object
    aliasing exceptions are internally consistent and exist for good ergonomic
    reasons (note that one remaining inconsistency, New-Object, has been bugged
    elsewhere).

    The 8 logical aliasing statements for the missing aliases are the following:

    Set-Alias ahy Add-History
    Set-Alias am Add-Member
    Set-Alias gh Get-Host
    Set-Alias np New-ItemProperty
    Set-Alias nsv New-Service
    Set-Alias ssv Set-Service



      My System SpecsSystem Spec

  2. #2


    Jeffrey Snover [MSFT] Guest

    Re: Suggestion: Add the 6 missing standard aliases to PowerShell

    Good catch! I really appreciate these.

    --
    Jeffrey Snover [MSFT]
    Windows PowerShell Architect
    Microsoft Corporation
    This posting is provided "AS IS" with no warranties, no confers rights.
    "Alex K. Angelopoulos [MVP]" <a k a @ m v p s . o r g> wrote in message
    news:ux1%23d3jlGHA.2344@TK2MSFTNGP04.phx.gbl...
    > https://connect.microsoft.com/feedba...3514&SiteID=99
    >
    > Currently we have 6 standard aliases for core cmdlets that are not set in
    > the PowerShell internal startup script, probably through oversight.
    > Because people will expect these aliases to be there, I believe they
    > should be added.
    >
    > With the exception of two families (cmdlets using the verb Format or the
    > noun Object) the PS-designed aliases are uniform and can generally have
    > verb and noun abbreviations mixed-and-matched. Even the Format and Object
    > aliasing exceptions are internally consistent and exist for good ergonomic
    > reasons (note that one remaining inconsistency, New-Object, has been
    > bugged elsewhere).
    >
    > The 8 logical aliasing statements for the missing aliases are the
    > following:
    >
    > Set-Alias ahy Add-History
    > Set-Alias am Add-Member
    > Set-Alias gh Get-Host
    > Set-Alias np New-ItemProperty
    > Set-Alias nsv New-Service
    > Set-Alias ssv Set-Service
    >
    >




      My System SpecsSystem Spec

Suggestion: Add the 6 missing standard aliases to PowerShell

Similar Threads
Thread Thread Starter Forum Replies Last Post
Companyweb has gone missing from SBS 2008 Standard SP2, Sharepoint peripatus SBS Server 1 13 Mar 2010
windows explorer standard toolbar missing the UP button tritonsenior Vista file management 4 17 Jul 2008
Suggestion: PowerShell FAQ (make sticky).. GINTER PowerShell 0 09 Dec 2007
Automatically expanding standard aliases Alex K. Angelopoulos [MVP] PowerShell 12 11 Oct 2006
Suggestion: Consider shorter standard names for Alias.Function, and Variable PSDrives Alex K. Angelopoulos [MVP] PowerShell 0 20 Jun 2006