My Profile Photo

${Graham Beer} = 'blog'


Infrastructure Engineer, authored chapter in the PowerShell Conference Book, co-founder of the PowerShell user group in the South Coast and Top 50 Blogger 2018


PowerShell Conf Book Planet PowerShell Top 50 PowerShell
  1. The PowerShell Here-String – Preserve text formatting

    Like many other high-level languages, PowerShell gives us the ability to preserve line breaks, tabs, whitespace, and other text formatting with the here-string. I’m going to be looking how you create and use a here-string in PowerShell. Many other languages use the here-string, and it is not PowerShell specific. Other languages call the here-string by a different name: here-document, here-text, heredoc, and hereis to name a few. Unix shells like bash and zsh first used...…


  2. Parameter binding in the PowerShell pipeline

    We know we can pass objects down the PowerShell pipeline, but how do we know which parameter accepts objects from the pipeline and how it binds them? Understanding parameter binding in the PowerShell pipeline is essential if you want to create your own tools. 4sysops article continues here… …


  3. camelCasing, PascalCasing, lowercase, and UPPERCASE in PowerShell

    Capitalization rules for identifiers were created to help make types, members, and parameters easier to read. There are several types of casing used, depending on the identifier: camelCasing, PascalCasing, lowercase, and UPPERCASE. Writing good code isn’t just about how it performs or its usability. Writing code that is clean and well presented is just as important. I will be looking at how to format and case your code for better readability in .NET. 4sysops article...…


  4. The System.IO.FileSystemWatcher .NET Class: Raise file system notifications in PowerShell

    The use of .NET classes can extend PowerShell’s reach. In this article I will be looking at the System.IO.FileSystemWatcher .NET class and how you can use it to raise notifications on files and directories. PowerShell doesn’t do restrictions, and when you can’t achieve something one way, there is most probably another way with PowerShell’s extension ability. To use an example of notifying about file system changes, we can delve into .NET classes. 4sysops article continues...…


  5. Start and stop an EC2 instance with a PowerShell class

    My PowerShell class (AwsInstance) requires the AWS Tools for Windows PowerShell. The AWS Tools documentation is very clear with good examples. The cmdlets themselves for controlling the state of an EC2 instance are good, but I wanted an all-in-one tool with some extra features. The AWS module uses PowerShell Core 6 and its very rich in its content. 4sysops article continues here… …