.NET Pointers
A blog about PowerShell, .NET, and other programming goodies...

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 article will discuss both ...

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, DateTime, and StreamWrit...

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 less obvious. Fortunately, P...

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 importing of modules. Anything ...

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 allows you to learn about a...

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 currency, getting news he...

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 automation that interacts with a w...

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. Either way, SQL Server inclu...

PowerShell supports multiple methods for starting a process with the most common being the...

© 2019 Embrs.net