Showing archive results for September 2008

Sep 4, 2008
Post comments count0
Post likes count0

Join Me Tonight on the PowerScripting Podcast

PowerShell Team
PowerShell Team

Tonight at 9pm EST (6pm PST) (UTC-4), I'll be one of Hal Rottenberg's guiests on his live Podcast.,  You can find the live show details at the top right corner of http://powerscripting.net.  Apparently you'll be able to ask questions but not throw beer bottles (the internet is awesome!).  I have no idea what we'll talk about so ...

Hal RottenbergPowerScriptingPodcast
Sep 3, 2008
Post comments count0
Post likes count0

Text Output Is Not a Contract

PowerShell Team
PowerShell Team

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 <...

Sep 2, 2008
Post comments count0
Post likes count0

Speeding Up PowerShell Startup – Updating Update-Gac.ps1

PowerShell Team
PowerShell Team

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 process...

Update-GAC
Sep 1, 2008
Post comments count0
Post likes count0

Get-Constructor Fun

PowerShell Team
PowerShell Team

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.GetConstr...

Get-Constructor