Article Archive
December 2013

PowerShell offers a couple different methods for formatting text making it easy to get the output you want. The most commonly used methods are the format operator or using composite formatting. This a...
November 2013

Frequently, objects in .NET will use enums in their methods or constructors. Because of this it's important to understand how to reference an enum in PowerShell. Commonly used types like StreamReader,...
Creating .NET objects in PowerShell is fairly straightforward using the New-Object cmdlet, but eventually you might have a situation where you need to create an instance of a nested class which is les...
A PowerShell profile is a way to add resources to your session each time you start PowerShell. The most common things to put into a profile include: functions, powershell drives, variables, and import...
October 2013

The Get-Member cmdlet is arguably the most useful cmdlet in PowerShell and often goes unnoticed by new PowerShell users. You can think of Get-Member as your detective's magnifying glass. The cmdlet al...
I wanted to drop a plug for my Windows Phone app that is currently being featured in the Windows App Store in 50+ markets. The app is called...
Have you ever wanted to write a script that will get the weather forecast or maybe travel directions? Many sites expose web services that you can tap into from PowerShell to do things like converting ...
Getting the raw html of a website can be helpful when you want to search for specific text or are building a web scraping application. It can also be handy if you need to set up some kind of automatio...
September 2013

At some point you might find yourself outside of SQL Server Management Studio and need to get the contents of a stored procedure. Maybe you want to edit the proc or just list the source in sqlcmd. Eit...
PowerShell supports multiple methods for starting a process with the most common being the...
It's fairly common in .NET to have methods with a "ref" or "out" keyword on one of the parameters. This often brings up the question: How do you call such a method from PowerShell? Fortunately, PowerS...

© 2024 Embrs.net