Keeping my GitHub Forks up to date

In a previous post I wrote about when I updated the command Update-AzureRM to only update modules that has a newer version available and not download and overwrite modules that already are up to date. Unless I use the -Force parameter of course. Once I’ve done the change and was satisfied I thought that maybe someone else […]

Real world DevOps training

I’m an Ops guy, I have a history of working in IT operations and I think of myself as a “technician” or “ITPro”. To be honest, I don’t know what to call it, but my point is that I do not have a background as programmer. I’ve been talking with other Ops-persons about integrating and […]

Updating AzureRM only when needed

I stumbled upon this great post by Ian Farr the other day about Automagically Keep the Azure PowerShell Module Up-To-Date. In this post Ian tells us how keeps his help and azure module up to date by starting a background job from his profile script. In the end, Ian mentions that he recently added the command […]

Problem with Pending Reboot when using Desired State Configuration

On Knowledge Factory, the company I work for, every one get’s their own lab-server. Nothing fancy, but it helps a lot when I want to test something in a controlled environment. I’ve been playing around a bit with desired state configuration on my lab server lately. And especially with the great module VirtualEngineLab which I’ve […]

PowerShell functions and Parameter Sets

A PowerShell function can have different parameters depending on how it is called. This is called Parameter Sets. For example, Get-Process has a non mandatory parameter called Name which specifies which processes to Get by Name. But is also has a parameter called ID which also specifies which processes to get, this time by ID. […]

Reset password in Active Directory using PowerShell

I’ve previously written about how to generate a random password and how to output a password in phonetic alphabet. Today I’m going to put those two functions to use in a practical example. Scenario: Carl is a helpdesk agent and today he is feeling a bit stressed out. There has been an outage on one […]

Using PowerShell Profiles

Some times I need to configure specific settings that will apply every time I open PowerShell or load certain functions or variables. This can easily be achieved by using a PowerShell profile script. A profile script could be described as a startup script and is a script that will be run in current scope every […]