My Profile Photo

${Graham Beer} = blog


System Engineer, PowerShell Developer, WinOps and a huge automation fan!


  1. Working with Azure Active Directory part 1

    This article, which will be in two parts, is about getting started with Azure Active Directory. So what is Azure Active Directory? Microsoft themselves say: “Azure Active Directory (Azure AD) is Microsoft’s multi-tenant, cloud based directory and identity management service.” These two articles will contain the following content: Workflow Connect to Azure Make connection to Azure Active Directory Create a Security group Create a user Create a new RBAC Assign role to group assign user...…


  2. What is my name in Binary?

    This idea came to me with a book i’ve just started reading by Charles Petzold. The book is called ‘Code’. It was actually the front cover of the book, the word Code written and below it binary code underneath each letter. How could i convert letters to binary ? Even better could I convert my name to Binary ? The first part of the script was a function that prompted for a name. This was...…


  3. What's my Alias? Write less for the same results

    PowerShell Cmdlets are by nature verbose. When you write a script those helpful cmdlets make a script easier to understand. But when working with the shell interactively, its useful and quicker to adopt less is more approach. Well, if you are like me and want to type less ! Take a simple example: 1 get-content 'D:\temp\machinelist.csv' | select-string -SimpleMatch "Server" The commandline above gets the content of a csv file with a list of machines,...…


  4. A date with PowerShell

    Also seen on PowerShell.org ! At the beginning of July, we welcomed our 3rd son into the world. As days past my wife and I would say, “wow, he’s 11 days old. Can you believe it?!”. I’m sure parents out there are relating to this! This gave me an idea for a fun script that would get your age in years, months and days, tell you how many days until your birthday and your star...…


  5. To ping or not to ping..The PowerShell way

    As Seen on PowerShell.org !!! The inspiration for this blog came from a forum post on Powershell.org that I helped contributed on. The question asked was, how to display the name of failed ping, i.e. $computer is offline. There were some great responses, the one I most liked which I slightly amended into a function was: function test-ping { $args | % {[pscustomobject]@{online = test-connection $_ -Count 1 -quiet;computername = $_}} } The simplicity and...…