My Profile Photo

${Graham Beer} = 'blog'


Infrastucture Engineer, PowerShell Developer, WinOps and Automation


  1. Working with Azure Active Directory part 2

    Following on from part 1, i’m going to delve into creating a custom RBAC (Role-based access control), then assigning this role to the group we created and finally adding our user to the group. Before I start to create a custom role, lets see what is already available. The cmdlet we will use is in the AzureRM.Resources module. Like the other modules we have used in part 1, you can find this module in the...…


  2. 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...…


  3. 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...…


  4. 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,...…


  5. 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...…