1
0
mirror of https://github.com/jaapbrasser/SharedScripts.git synced 2025-12-24 21:51:38 +02:00

Added Get-TypeAccelerator function 🆕

This commit is contained in:
Jaap Brasser
2020-11-16 22:43:20 +01:00
parent b60e9dee6e
commit e2fb9e407d

View File

@@ -0,0 +1,19 @@
function Get-TypeAccelerator {
<#
.SYNOPSIS
Display all available PowerShell type accelerators
.DESCRIPTION
Display all available PowerShell type accelerators, sorted alphabetically
.EXAMPLE
Get-TypeAccelerator
Returns all available PowerShell type accelerators:
```
Key Value
--- -----
adsi System.DirectoryServices.DirectoryEntry
adsisearcher System.DirectoryServices.DirectorySearcher...
```
#>
[psobject].Assembly.GetType('System.Management.Automation.TypeAccelerators')::Get.GetEnumerator() | Sort-Object -Property Key
}