Use PowerShell to Persist Environment Variables

Persistent Environment Variables PowerShell

In PowerShell, you can easily create environment variables using a few different methods. However, these are only scoped to the current PowerShell process, and not to any process running inside the user’s profile, or any process running on the system. Here are a few examples of methods that you can …

Continue reading

Azure Functions Error Message

Microsoft Azure recently introduced a new feature called Azure Functions. This service is, in some ways, very similar to the Amazon Web Services (AWS) Lambda service. Both services enable software developers to create scalable microservices using a Platform-as-a-Service (PaaS) model. In Microsoft Azure, the Functions feature is actually a component …

Continue reading

Implementing a .NET Class in PowerShell v5

Introduction You might have heard that PowerShell version 5.0 has introduced support for building .NET classes. Indeed, this is a powerful, new capability that has not previously existed in native PowerShell syntax. Before the new class-building syntax existed, if you wanted to build custom objects in PowerShell, you generally would …

Continue reading

PowerShell: Measuring Download Speeds

Have you ever downloaded a file from the Internet? Probably. Have you ever downloaded a file with PowerShell? Maybe. Have you ever wondered how fast your download was going? Sure. Have you ever wondered how to get that information when you’re downloading a file with PowerShell? Maybe, but you didn’t …

Continue reading

PowerShell: Get the Windows Azure Certificate

Microsoft Windows Azure Logo

If you’re automating Windows Azure using Windows PowerShell, one of the first things you’ll probably notice is that you need a management certificate to connect to the Windows Azure subscription that you’re attempting to view or modify. Management certificates are associated to a Windows Azure subscription inside the Management Portal, …

Continue reading

Octopus: A .NET Release Management Tool

Introduction To give you a little background, I started a job back in mid-January which has taken me from doing Microsoft infrastructure engineering to doing more software development related work. I’ve never worked in a professional development environment before, and this job has been a real eye-opener for me in …

Continue reading

PowerShell: Finding Friday the 13th

Update (2012-01-13): Justin Dearing (aka @zippy1981) informed me that it would be more efficient to look at the 13th of each month, and test if it was a Friday. In theory at least, he’s absolutely correct; I wrote the function the first way I thought of it, and I always …

Continue reading