PowerShell Team

Automating the world one-liner at a time…

Text Output Is Not a Contract

In PS V1, this is what you get for GET-COMMAND -SYNTAX PS> Get-Command Get-Process -SyntaxGet-Process [[-Name] <String[]>] [-ComputerName <String[]>] [-Module] [-FileVersionInfo] [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-WarningAction <ActionPreference>] [-ErrorVariable <String>] [-WarningVariable...

Speeding Up PowerShell Startup – Updating Update-Gac.ps1

Have I ever mentioned how much I love the community?  Today Kirill Osenkov posted a comment on the blog pointing out that there was an API to get the .NET Framework install path:  RuntimeEnvironment.GetRuntimeDirectory() .  I didn' t know that and now I do.  :-) I took the opportunity to rewrite Update-Gac.ps1 and in the ...

Get-Constructor Fun

Here is a quick and dirty function I wrote after getting PO'd at having to look up documentation for constructors: NOTE:  Jim Truher thinks long typenames are useful so I added a switch (-FullName) so you could get them if you want them. function get-Constructor ([type]$type, [Switch]$FullName){    foreach ($c in $type....