You've already forked SharedScripts
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:
19
Get-TypeAccelerator/Get-TypeAccelerator.ps1
Normal file
19
Get-TypeAccelerator/Get-TypeAccelerator.ps1
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user