Tuesday, March 1, 2016

PowerShell v2 Function Get TypeAccelerators

I totally pilfered this from Hal who seems to have gotten it from Shay Levy.  All I am doing here is wrapping it in a function so I can get it more easily when I want to remember what I can use:
function Get-TypeAccelerators {
[PSObject].Assembly.GetType(System.Management.Automation.TypeAccelerators)::Get.GetEnumerator() | sort key | select key
}
This is totally a place holder so I can remember it later. Not pretending I came up with it...

Related Post:

0 comments:

Post a Comment

 
Copyright 2009 Information Blog
Powered By Blogger