Using PowerShell to Delete Files [All the Ways]
Maintaining free disk space is crucial when managing servers and systems. As admins, you wouldn't want to get caught unaware of a 'disk full' situation. We all know where that situation leads - dismounted database, stopped services, inaccessible website, and the list goes on.
3 Tips to Build a 150,000-Reader/Month Technical Blog
Many engineers have blogs. If you're like me, you probably started up a blog to document the goings on in your job. Many of us start blogs for our own purposes as a way to record that obscure fix that worked in production or an interesting way to set up the latest software.
Resolve-DnsName: Monitoring DNS Records using PowerShell
If you're managing web or mail servers, you know how heavily these servers rely on adequately configured DNS records. Missing DNS records can cause all sorts of problems, including users not being able to find your website or non-delivery of emails. It is a good thing that the PowerShell Resolve-DnsName cmdlet exists, and with it, monitoring DNS records can be automated through scripting.
The Curse of Knowledge is Worse Than You Think
When you show someone how to solve a problem, acquire a new skill or accomplish a task, you're teaching. You're teaching that random Internet blog reader how to create a database, a coworker casually stopping by with that coding problem she can't figure out or even your son how to ride a bike.
Infrastructure as Code: Where Continuous Delivery All Begins
If you've ever created kind of cloud or virtual infrastructure on-prem manually, you'd know there's either a lot of clicking or a lot of typing going on. To provision anything in requires remembering which screen to go to or what command to run. If you're just playing around trying to learn Azure that's fine but once that playing turns into business-critical, production processes where time is money, something has to change.
Back to Basics: The PowerShell For Loop
When you use PowerShell scripts to manage systems or process bulk tasks, you'll undoubtedly encounter the need to use a loop construct as part of your scripts. There are many types of loops available in PowerShell, and one of them is the for loop. The PowerShell for loop can make running the same set of commands on multiple items quickly and produce consistent results.
The PowerShell Block Comment (And Creating Descriptive Comments)
When a newcomer to PowerShell begins to write scripts, they typically focus on the code. After all, the code is what makes things happen! Executable code is obviously important, but what happens when you write so much code, you forget what it does? This is when PowerShell comments can come in.
Running PowerShell Scripts in Azure DevOps Pipelines (2 of 2)
No one product will ever provide all of the built-in tools you need to get the job done. Scripts are like the glue that brings workflows together and the shims that make solutions work. in Azure DevOps (AzDo) Pipelines, PowerShell and Bash scripts are your best friends.