PowerTip: Find a List of PowerShell Type Accelerators

PowerTip: Find a List of PowerShell Type Accelerators

  • Comments 4
  • Likes

Summary: Use Windows PowerShell to list type accelerators.

Hey, Scripting Guy! Question How can I find a list of type accelerators available in Windows PowerShell?

Hey, Scripting Guy! Answer Use the Get property from TypeAccelerators class:

[PSObject].Assembly.GetType("System.Management.Automation.TypeAccelerators")::Get

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • Wouldn't a shorter version be: [accelerators]::Get

  • @Burt Harris
    There isn't a type accelerator for that. You would have to do this in order to get a type accelerator available.

    $accelerator = [PSObject].Assembly.GetType('System.Management.Automation.TypeAccelerators')
    $null = $accelerator::Add('accelerator',$accelerator)

  • thank you

  • Thanks for the tips!