Are you over 18 and want to see adult content?
More Annotations
A complete backup of spelloutloud.com
Are you over 18 and want to see adult content?
A complete backup of exclusivechiangmai.com
Are you over 18 and want to see adult content?
A complete backup of oregonfoodbank.org
Are you over 18 and want to see adult content?
A complete backup of limterfcandfactua.tk
Are you over 18 and want to see adult content?
A complete backup of ascensionpress.com
Are you over 18 and want to see adult content?
Favourite Annotations
A complete backup of https://yapstone.com
Are you over 18 and want to see adult content?
A complete backup of https://dessign.net
Are you over 18 and want to see adult content?
A complete backup of https://parc-vosges-nord.fr
Are you over 18 and want to see adult content?
A complete backup of https://icmpoker.com
Are you over 18 and want to see adult content?
A complete backup of https://marcnyte.com
Are you over 18 and want to see adult content?
A complete backup of https://knxvtv.biz
Are you over 18 and want to see adult content?
A complete backup of https://asciinema.org
Are you over 18 and want to see adult content?
A complete backup of https://doglistener.co.uk
Are you over 18 and want to see adult content?
A complete backup of https://flaglerlive.com
Are you over 18 and want to see adult content?
A complete backup of https://pngfacts.com
Are you over 18 and want to see adult content?
A complete backup of https://coin-hero.de
Are you over 18 and want to see adult content?
A complete backup of https://joomla.org
Are you over 18 and want to see adult content?
Text
Powershell
INTRODUCTION TO POWERSHELL CLASSES This is going to be the first in a series of posts regarding classes. I want to talk more about DSC and especially some of the cool things you can do with class based resources. Before we get to the advanced use cases, we need to cover the basics. The Good Stuff: An introduction to PowerShell classes.AWS POWERSHELL
EXPLORING POWERSHELL 6 PowerShell Core 6.0 is out! There’s a ton of new features and even some old commands are getting some love. Today we’re gonna talk about some of the improvements that made it into Split-Path. Let’s dive in and see what the team brought us. The Good Stuff: There’s a new improved Split-Path with a couple quality of life changes, checkit out!
EXPLORING POWERSHELL 6 Exploring PowerShell 6 - Character Ranges. PowerShell Core 6.0 is now out and available for download. Today I want to talk about a feature that may have taken PowerShell golf to a new level. New with this release we can now enumerate character ranges, and skip the whole castto
EXPLORING POWERSHELL 6 PowerShell Core 6.0 is here! One of the new features is some enhancements to the ValidateRange attribute. As part of the update, you can now pass predefined ranges making common scenarios a little easier. Let’s dive in and take a look. The Good Stuff: ValidateRange now has predefined shortcuts that you can leverage in PowerShell 6. A REAL WORLD PESTER EXAMPLE FROM THE POWERSHELL GITHUB A hobby of my mine is to peruse the PowerShell Github page for open issues and pull requests. Its a direct way to interact with the team, see what features are being worked on and actually make a difference. I understand that putting yourself out there can be scary but everyone is incredibly friendly and its a great place to get constructivefeedback.
WORKING WITH PLASTER If you haven’t yet, I would definitely check out Plaster. Plaster is a PowerShell scaffolding module. What that means for you is that its an easy way to keep your modules and functions consistent and following best practices. Its fully customizable and you can get started in just a few minutes. The Good Stuff: Go check out plaster, a template-based file and project generator written inSYSADMIN BASICS
TROUBLESHOOTING DSC
While I know everyone out there writes perfect code first try, I am not so lucky. I’m a little superstitious but I think if your code works first try, it’s bad luck. We’ve all been there, you’ve been chugging away at a new project, go to run it and it blows up. Even worse, sometimes you have a resource that’s been working great, but chokes on a particular server. OVERPOWEREDSHELL.COM The AWS Tools for PowerShell let you manage all your EC2 instances with cmdlets. With full coverage for machine creation, deletion and updating, virtually all settings are configurable from the PowerShell console. Let’s dive in and learn to create and manage EC2 Instances from PowerShell! The Good Stuff: Check out the AWS Tools forPowershell
INTRODUCTION TO POWERSHELL CLASSES This is going to be the first in a series of posts regarding classes. I want to talk more about DSC and especially some of the cool things you can do with class based resources. Before we get to the advanced use cases, we need to cover the basics. The Good Stuff: An introduction to PowerShell classes.AWS POWERSHELL
EXPLORING POWERSHELL 6 PowerShell Core 6.0 is out! There’s a ton of new features and even some old commands are getting some love. Today we’re gonna talk about some of the improvements that made it into Split-Path. Let’s dive in and see what the team brought us. The Good Stuff: There’s a new improved Split-Path with a couple quality of life changes, checkit out!
EXPLORING POWERSHELL 6 Exploring PowerShell 6 - Character Ranges. PowerShell Core 6.0 is now out and available for download. Today I want to talk about a feature that may have taken PowerShell golf to a new level. New with this release we can now enumerate character ranges, and skip the whole castto
EXPLORING POWERSHELL 6 PowerShell Core 6.0 is here! One of the new features is some enhancements to the ValidateRange attribute. As part of the update, you can now pass predefined ranges making common scenarios a little easier. Let’s dive in and take a look. The Good Stuff: ValidateRange now has predefined shortcuts that you can leverage in PowerShell 6. A REAL WORLD PESTER EXAMPLE FROM THE POWERSHELL GITHUB A hobby of my mine is to peruse the PowerShell Github page for open issues and pull requests. Its a direct way to interact with the team, see what features are being worked on and actually make a difference. I understand that putting yourself out there can be scary but everyone is incredibly friendly and its a great place to get constructivefeedback.
WORKING WITH PLASTER If you haven’t yet, I would definitely check out Plaster. Plaster is a PowerShell scaffolding module. What that means for you is that its an easy way to keep your modules and functions consistent and following best practices. Its fully customizable and you can get started in just a few minutes. The Good Stuff: Go check out plaster, a template-based file and project generator written inSYSADMIN BASICS
TROUBLESHOOTING DSC
While I know everyone out there writes perfect code first try, I am not so lucky. I’m a little superstitious but I think if your code works first try, it’s bad luck. We’ve all been there, you’ve been chugging away at a new project, go to run it and it blows up. Even worse, sometimes you have a resource that’s been working great, but chokes on a particular server. OVERPOWEREDSHELL.COM The AWS Tools for PowerShell let you manage all your EC2 instances with cmdlets. With full coverage for machine creation, deletion and updating, virtually all settings are configurable from the PowerShell console. Let’s dive in and learn to create and manage EC2 Instances from PowerShell! The Good Stuff: Check out the AWS Tools forPowershell
SYSADMIN BASICS
Whether you like it or not, at some point in your career you will be working with IPs. I recently ran into a challenge at work with variable length subnet masks that inspired this post. I needed to brush off some old networking skills and got to play with a little PowerShell along the way. With that in mind, let’s get into it. The Good Stuff: A couple of tricks to make working with IPs aSYSADMIN BASICS
The reason I wanted to include WMIC is because there are still a lot of references to it online. It’s not obvious at first, but the above WMIC.exe command is performing a query against Win32_Product.Due to this, it suffers from all of the same limitationsAWS POWERSHELL
Now that we know how to provision machines, I want to dive deeper into KeyPairs and how we can connect. When working with on perm machines, credentials are easy. Traditionally all you have to pass is your domain credentials and go. While you can extend active directory to the cloud (or use a hosted version), this is becoming less and less common. Let’s dig in and see how we can use key pairs CREATING A DSC CLASS-BASED RESOURCE Now that we know what a PowerShell class is, it’s time we start putting them to use. Classes are new with version 5 and one of the best places for them is DSC. While the syntax maybe different, all the DSC concepts are the same. If you need a refresher on the basics of a PowerShell class, please see my previous post, Intro to PowerShell Classes. The Good Stuff: How to create a DSC ClassAWS POWERSHELL
It’s almost impossible to talk about DevOps these days without mentioning the cloud. People are incredibly passionate about which service is the best and why. Whatever your opinion, it’s undeniable that Amazon Web Services (AWS) is one of the most mature and feature-rich providers in this space. They treat PowerShell like a first-class citizen and best of all, you can run AWS tools forAWS POWERSHELL
Now that we have the AWS Tools installed and our shell setup, it’s time to start creating machines. The most basic and probably most used feature of AWS is EC2. There are literally thousands of different images to choose from. With so many options and settings to tweak, finding the right image and starting a machine can sometimes feeloverwhelming.
MODULE TOOLS
Next up in our series of working with Module Tools is folder layout. In our first post, we used Plaster to scaffold our new module. Now let’s dive into the folder structure and how this layout can simplify our development. The Good Stuff: Make your module development easier by writing small functions and keeping them in own PS1 files.MODULE TOOLS
So the bad news is we have to write help for our modules. The good news is PlatyPS streamlines the process and makes it a lot more bearable. Plus all of the help can be written in Markdown and packaged up for easy distribution. I promise, even though we’re writing help, it won’t be too bad. The Good Stuff: Start using PlatyPS to buildyour help files.
TOOLS MODULE AUTHORS SHOULD LEVERAGE Writing a PowerShell module is hard. A lot harder than it used to be. Honestly it’s your fault. Not just you, but the whole PowerShell community. Apparently we’re a mature language now and everybody is demanding more. I mean I was just starting to accept that fact that I have to include Pester tests, but now I need documentation too? What else does it take to write a professional quality OVERPOWEREDSHELL.COM The AWS Tools for PowerShell let you manage all your EC2 instances with cmdlets. With full coverage for machine creation, deletion and updating, virtually all settings are configurable from the PowerShell console. Let’s dive in and learn to create and manage EC2 Instances from PowerShell! The Good Stuff: Check out the AWS Tools forPowershell
INTRODUCTION TO POWERSHELL CLASSES This is going to be the first in a series of posts regarding classes. I want to talk more about DSC and especially some of the cool things you can do with class based resources. Before we get to the advanced use cases, we need to cover the basics. The Good Stuff: An introduction to PowerShell classes.AWS POWERSHELL
EXPLORING POWERSHELL 6 PowerShell Core 6.0 is out! There’s a ton of new features and even some old commands are getting some love. Today we’re gonna talk about some of the improvements that made it into Split-Path. Let’s dive in and see what the team brought us. The Good Stuff: There’s a new improved Split-Path with a couple quality of life changes, checkit out!
EXPLORING POWERSHELL 6 Exploring PowerShell 6 - Character Ranges. PowerShell Core 6.0 is now out and available for download. Today I want to talk about a feature that may have taken PowerShell golf to a new level. New with this release we can now enumerate character ranges, and skip the whole castto
EXPLORING POWERSHELL 6 PowerShell Core 6.0 is here! One of the new features is some enhancements to the ValidateRange attribute. As part of the update, you can now pass predefined ranges making common scenarios a little easier. Let’s dive in and take a look. The Good Stuff: ValidateRange now has predefined shortcuts that you can leverage in PowerShell 6. CREATING A DSC CLASS-BASED RESOURCE Now that we know what a PowerShell class is, it’s time we start putting them to use. Classes are new with version 5 and one of the best places for them is DSC. While the syntax maybe different, all the DSC concepts are the same. If you need a refresher on the basics of a PowerShell class, please see my previous post, Intro to PowerShell Classes. The Good Stuff: How to create a DSC Class A REAL WORLD PESTER EXAMPLE FROM THE POWERSHELL GITHUBDEFINE PESTERPESTER POWER MARKETING A hobby of my mine is to peruse the PowerShell Github page for open issues and pull requests. Its a direct way to interact with the team, see what features are being worked on and actually make a difference. I understand that putting yourself out there can be scary but everyone is incredibly friendly and its a great place to get constructivefeedback.
WORKING WITH PLASTER If you haven’t yet, I would definitely check out Plaster. Plaster is a PowerShell scaffolding module. What that means for you is that its an easy way to keep your modules and functions consistent and following best practices. Its fully customizable and you can get started in just a few minutes. The Good Stuff: Go check out plaster, a template-based file and project generator written inSYSADMIN BASICS
OVERPOWEREDSHELL.COM The AWS Tools for PowerShell let you manage all your EC2 instances with cmdlets. With full coverage for machine creation, deletion and updating, virtually all settings are configurable from the PowerShell console. Let’s dive in and learn to create and manage EC2 Instances from PowerShell! The Good Stuff: Check out the AWS Tools forPowershell
INTRODUCTION TO POWERSHELL CLASSES This is going to be the first in a series of posts regarding classes. I want to talk more about DSC and especially some of the cool things you can do with class based resources. Before we get to the advanced use cases, we need to cover the basics. The Good Stuff: An introduction to PowerShell classes.AWS POWERSHELL
EXPLORING POWERSHELL 6 PowerShell Core 6.0 is out! There’s a ton of new features and even some old commands are getting some love. Today we’re gonna talk about some of the improvements that made it into Split-Path. Let’s dive in and see what the team brought us. The Good Stuff: There’s a new improved Split-Path with a couple quality of life changes, checkit out!
EXPLORING POWERSHELL 6 Exploring PowerShell 6 - Character Ranges. PowerShell Core 6.0 is now out and available for download. Today I want to talk about a feature that may have taken PowerShell golf to a new level. New with this release we can now enumerate character ranges, and skip the whole castto
EXPLORING POWERSHELL 6 PowerShell Core 6.0 is here! One of the new features is some enhancements to the ValidateRange attribute. As part of the update, you can now pass predefined ranges making common scenarios a little easier. Let’s dive in and take a look. The Good Stuff: ValidateRange now has predefined shortcuts that you can leverage in PowerShell 6. CREATING A DSC CLASS-BASED RESOURCE Now that we know what a PowerShell class is, it’s time we start putting them to use. Classes are new with version 5 and one of the best places for them is DSC. While the syntax maybe different, all the DSC concepts are the same. If you need a refresher on the basics of a PowerShell class, please see my previous post, Intro to PowerShell Classes. The Good Stuff: How to create a DSC Class A REAL WORLD PESTER EXAMPLE FROM THE POWERSHELL GITHUBDEFINE PESTERPESTER POWER MARKETING A hobby of my mine is to peruse the PowerShell Github page for open issues and pull requests. Its a direct way to interact with the team, see what features are being worked on and actually make a difference. I understand that putting yourself out there can be scary but everyone is incredibly friendly and its a great place to get constructivefeedback.
WORKING WITH PLASTER If you haven’t yet, I would definitely check out Plaster. Plaster is a PowerShell scaffolding module. What that means for you is that its an easy way to keep your modules and functions consistent and following best practices. Its fully customizable and you can get started in just a few minutes. The Good Stuff: Go check out plaster, a template-based file and project generator written inSYSADMIN BASICS
OVERPOWEREDSHELL.COM The AWS Tools for PowerShell let you manage all your EC2 instances with cmdlets. With full coverage for machine creation, deletion and updating, virtually all settings are configurable from the PowerShell console. Let’s dive in and learn to create and manage EC2 Instances from PowerShell! The Good Stuff: Check out the AWS Tools forPowershell
ABOUT – OVERPOWEREDSHELL.COM – BY DAVID CHRISTIAN David is an IT professional with over a decade of experience. He has a passion for automation and all things PowerShell. Lately this passion has driven him to DevOps, configuration management and large scale private and hybrid cloud environments.SYSADMIN BASICS
Whether you like it or not, at some point in your career you will be working with IPs. I recently ran into a challenge at work with variable length subnet masks that inspired this post. I needed to brush off some old networking skills and got to play with a little PowerShell along the way. With that in mind, let’s get into it. The Good Stuff: A couple of tricks to make working with IPs aSYSADMIN BASICS
The reason I wanted to include WMIC is because there are still a lot of references to it online. It’s not obvious at first, but the above WMIC.exe command is performing a query against Win32_Product.Due to this, it suffers from all of the same limitations CREATING A DSC CLASS-BASED RESOURCE Now that we know what a PowerShell class is, it’s time we start putting them to use. Classes are new with version 5 and one of the best places for them is DSC. While the syntax maybe different, all the DSC concepts are the same. If you need a refresher on the basics of a PowerShell class, please see my previous post, Intro to PowerShell Classes. The Good Stuff: How to create a DSC ClassAWS POWERSHELL
It’s almost impossible to talk about DevOps these days without mentioning the cloud. People are incredibly passionate about which service is the best and why. Whatever your opinion, it’s undeniable that Amazon Web Services (AWS) is one of the most mature and feature-rich providers in this space. They treat PowerShell like a first-class citizen and best of all, you can run AWS tools for ADDING SUDO TO POWERSHELL Lets be honest, before PowerShell the windows command line was a joke and the Linux guys were running circles around us. One of the best functions from Linux is sudo. Sudo is used when you need to run a command with elevated privileges, similar to running a program as administrator in windows. Here’s my implementation of sudo for PowerShell. The Good Stuff: A script that implementsAWS POWERSHELL
Now that we have the AWS Tools installed and our shell setup, it’s time to start creating machines. The most basic and probably most used feature of AWS is EC2. There are literally thousands of different images to choose from. With so many options and settings to tweak, finding the right image and starting a machine can sometimes feeloverwhelming.
TROUBLESHOOTING DSC
While I know everyone out there writes perfect code first try, I am not so lucky. I’m a little superstitious but I think if your code works first try, it’s bad luck. We’ve all been there, you’ve been chugging away at a new project, go to run it and it blows up. Even worse, sometimes you have a resource that’s been working great, but chokes on a particular server.MODULE TOOLS
So the bad news is we have to write help for our modules. The good news is PlatyPS streamlines the process and makes it a lot more bearable. Plus all of the help can be written in Markdown and packaged up for easy distribution. I promise, even though we’re writing help, it won’t be too bad. The Good Stuff: Start using PlatyPS to buildyour help files.
OVERPOWEREDSHELL.COMBy David Christian
Blog About
AWS POWERSHELL - INTRO TO POWERSHELL LAMBDAS, CREATING AN AUTOMATIC SHUTDOWN POLICY FOR EC2 INSTANCES AWS has finally released support for PowerShell lambdas! Lambdas are pieces of code that can be called from just about anywhere in AWS (or outside for that matter). Even better lambdas don’t require a server to run, this means that you only pay for the compute that you actually use. Don’t worry the first 1M hits per month are free. Let’s dive in and see how we can start using our existing PowerShell skills to start building lambdas. THE GOOD STUFF: Start writing AWS Lambdasin PowerShell.
Read More
AWS POWERSHELL - EC2 TAGS AND FILTERING One of the biggest shifts in moving to the cloud is getting used to the fact that servers don’t matter. You have a workload, you build a couple of instances and it runs. If there’s an issue you’re not going to troubleshoot a server. Tear it down and spin up a new one. With all these servers coming and going, it’s important to be able to keep everything organized. One way AWS solves this is through the use of instance tags. Let’s dive in and learn to work with them inPowerShell.
THE GOOD STUFF: Start leveraging tags to organize your AWS instances!Read More
AWS POWERSHELL - EC2 KEY PAIRS, CREDENTIALS AND CONNECTING Now that we know how to provision machines, I want to dive deeper into KeyPairs and how we can connect. When working with on perm machines, credentials are easy. Traditionally all you have to pass is your domain credentials and go. While you can extend active directory to the cloud (or use a hosted version), this is becoming less and less common. Let’s dig in and see how we can use key pairs to create credentials and connect. THE GOOD STUFF: Helper functions that speed up PsSession and RDP Creation for Windows EC2 Instances.Read More
AWS POWERSHELL - CREATING EC2 INSTANCES AND BASIC MACHINE MANAGEMENT The AWS Tools for PowerShell let you manage all your EC2 instances with cmdlets. With full coverage for machine creation, deletion and updating, virtually all settings are configurable from the PowerShell console. Let’s dive in and learn to create and manage EC2 Instancesfrom PowerShell!
THE GOOD STUFF: Check out the AWS Tools for Powershell and start managing EC2 from your shell todayRead More
AWS POWERSHELL - FINDING THE RIGHT EC2 IMAGE Now that we have the AWS Tools installed and our shell setup, it’s time to start creating machines. The most basic and probably most used feature of AWS is EC2. There are literally thousands of different images to choose from. With so many options and settings to tweak, finding the right image and starting a machine can sometimes feel overwhelming. Luckily with the AWS tools for PowerShell, we’ll have everything we need to find the right image. THE GOOD STUFF: Learn how to find and start an EC2 Image withPowerShell.
Read More
AWS POWERSHELL - SETTING UP AWS TOOLS ON POWERSHELL CORE It’s almost impossible to talk about DevOps these days without mentioning the cloud. People are incredibly passionate about which service is the best and why. Whatever your opinion, it’s undeniable that Amazon Web Services (AWS) is one of the most mature and feature-rich providers in this space. They treat PowerShell like a first-class citizen and best of all, you can run AWS tools for Powershell in PowerShell core! THE GOOD STUFF: Check out AWS Tools for Windows PowerShellRead More
EXPLORING POWERSHELL 6 - A BETTER SPLIT-PATH PowerShell Core 6.0 is out! There’s a ton of new features and even some old commands are getting some love. Today we’re gonna talk about some of the improvements that made it into Split-Path. Let’s dive in and see what the team brought us. THE GOOD STUFF: There’s a new improved Split-Path with a couple quality of life changes, check it out!Read More
EXPLORING POWERSHELL 6 - SPEEDFREAKS PowerShell Core 6.0 is out! Along with all the new features, there has been a ton of performance improvements. But just really how much faster is it? Today I’m going to revisit an old article by Dave Wyatt and see if version 6 has the numbers to back up all the claims. So with that, let’s dive into the filtering performance improvements in the latest version. THE GOOD STUFF: PowerShell version 6, now with faster filters!Read More
EXPLORING POWERSHELL 6 - CHARACTER RANGES PowerShell Core 6.0 is now out and available for download. Today I want to talk about a feature that may have taken PowerShell golf to a new level. New with this release we can now enumerate character ranges, and skip the whole cast to char step! Let’s dive in and takea look.
THE GOOD STUFF: Take a look at "a".."z" and enumerate characters theeasy way.
Read More
EXPLORING POWERSHELL 6 - SERVICE CMDLETS EASY MODE I’m not sure if you guys have heard, but PowerShell Core 6.0 is out. Today I want to talk about some of my favorite quality of life improvements. There have been some changes to the *-Service cmdlets. Let’s dive in and take a look. THE GOOD STUFF: Start playing with the new features on the Service cmdlets in PowerShell 6.Read More
EXPLORING POWERSHELL 6 - VALIDATERANGE ENHANCEMENTS PowerShell Core 6.0 is here! One of the new features is some enhancements to the ValidateRange attribute. As part of the update, you can now pass predefined ranges making common scenarios a little easier. Let’s dive in and take a look. THE GOOD STUFF: ValidateRange now has predefined shortcuts that you can leverage in PowerShell 6.Read More
EXPLORING POWERSHELL 6 - BACKGROUNDING PIPELINES PowerShell Core 6.0 is here and with it are a ton of new features. I’ve been going through some of the release notes and Github pages trying to find cool stuff to play with. On the docket for today is backgrounding the pipeline. THE GOOD STUFF: Check out background pipes using & in PowerShell 6.0.Read More
FINDING AN AVAILABLE FILE NAME The last couple of weeks I’ve been doing a lot of reorganizing of some of my media files. Part of this reorg has been shifting files around and consolidating folders. One challenge I ran into was having files with conflicting names. Since I don’t want to accidentally override any files, I created this helper function to test if a file name already exists. If it does detect a conflict, it will keep appending a number until it finds an available name. THE GOOD STUFF: Use Get-AvailableFileName to help find a name that’s not already in use.Read More
MODULE TOOLS - ADDING CMDLET HELP WITH PLATYPS So the bad news is we have to write help for our modules. The good news is PlatyPS streamlines the process and makes it a lot more bearable. Plus all of the help can be written in Markdown and packaged up for easy distribution. I promise, even though we’re writing help, it won’t be too bad. THE GOOD STUFF: Start using PlatyPS to build your help files.Read More
MODULE TOOLS - FOLDER LAYOUT Next up in our series of working with Module Tools is folder layout.In our first post,
we used
Plaster to scaffold our new module. Now let’s dive into the folder structure and how this layout can simplify our development. THE GOOD STUFF: Make your module development easier by writing small functions and keeping them in own PS1 files.Read More
MODULE TOOLS - STARTING OFF This is going to be the first in a series of posts related to working with module tools. In my previous article,
I talked about what tools module authors should leverage. Now I want to walk through using these tools and demonstrate how they all come together. To do this, we will be creating a new module called HideWindowsExplorerDrives. The purpose of this module is to make hiding and showing explorer drives easier. The code is beside the point. I want to focus more on how we can use some of these community projects to take our module to the next level. THE GOOD STUFF: Setting up a new module project using my PlasterTemplate.
Read More
TOOLS MODULE AUTHORS SHOULD LEVERAGE Writing a PowerShell module is hard. A lot harder than it used to be. Honestly it’s your fault. Not just you, but the whole PowerShell community. Apparently we’re a mature language now and everybody is demanding more. I mean I was just starting to accept that fact that I have to include Pester tests, but now I need documentation too? What else does it take to write a professional quality module these days? THE GOOD STUFF: The skills you should be investing in to take your modules to the next level.Read More
SYSADMIN BASICS - WORKING WITH IP ADDRESSES Whether you like it or not, at some point in your career you will be working with IPs. I recently ran into a challenge at work with variable length subnet masks that inspired this post. I needed to brush off some old networking skills and got to play with a little PowerShell along the way. With that in mind, let’s get into it. THE GOOD STUFF: A couple of tricks to make working with IPs a littleless painful.
Read More
SYSADMIN BASICS - FINDING A SPECIFIC DATE Dates are hard, that makes scheduling hard. Ever had someone tell you to be ready on the first Monday of the month? Don’t forget patches come out on the second Tuesday. My personal favorite is the fourth Thursday in November (Thanksgiving here in the states). While these types of dates are easy to remember, they can be hard to build automation around. Don’t worry with a couple of tricks and my helper function, I’ll make sure you never miss Mother’s Day again (secondSunday in May).
THE GOOD STUFF: Get-SpecificDate,
a function to find day of week occurrences in a given month.Read More
USING INHERITANCE TO BUILD DSC RESOURCES Today we are going to use inheritance to create multiple DSC resource from a base class. I’m the first to admit I’m lazy and always trying to get the most bang for my lines of code. Inheritance is a great way to reduce code duplication and pretty easy once you wrap your head around it. THE GOOD STUFF: My DSC FileWatcher moduleand an example of
building resources with inheritance.Read More
NON-INTERACTIVE PLASTER I have a talk coming up on Plaster. It’s been almost 2 months since my post on it and I’ve been playing around the last couple of days to get comfortable. One thing that hit me was that Plaster will turn the parameters in your manifest into dynamic parameters of the Invoke-Plaster cmdlet. What this means is you could pull a list from anywhere and run that through a Plaster manifest, all without steppingthrough the wizard!
THE GOOD STUFF: Make sure you’re using Plaster’s dynamicparameters.
Read More
TROUBLESHOOTING DSC
While I know everyone out there writes perfect code first try, I am not so lucky. I’m a little superstitious but I think if your code works first try, it’s bad luck. We’ve all been there, you’ve been chugging away at a new project, go to run it and it blows up. Even worse, sometimes you have a resource that’s been working great, but chokes on a particular server. No way around it, debugging and troubleshooting are part of the game. This article will take your existing debugging knowledge and help you apply it to DSC. THE GOOD STUFF: How to Debug a DSC Resource.Read More
DSC CLASSES - USING HELPER METHODS This is going to be part two on DSC Classes. Today we are going to cover a resource with more than the standard Get,Set and Test methods. Helper methods are a great way to organize your resource. By making use of class properties and methods, we can create a clean resource with no code duplication. THE GOOD STUFF: Use helper functions to organize your Class-Basedresources.
Read More
CREATING A DSC CLASS-BASED RESOURCE Now that we know what a PowerShell class is, it’s time we start putting them to use. Classes are new with version 5 and one of the best places for them is DSC. While the syntax maybe different, all the DSC concepts are the same. If you need a refresher on the basics of a PowerShell class, please see my previous post, Intro to PowerShellClasses.
THE GOOD STUFF:
How to create a DSC Class-Based Resource.Read More
INTRODUCTION TO POWERSHELL CLASSES This is going to be the first in a series of posts regarding classes. I want to talk more about DSC and especially some of the cool things you can do with class based resources. Before we get to the advanced use cases, we need to cover the basics. THE GOOD STUFF: An introduction to PowerShell classes.Read More
SYSADMIN BASICS - GETTING INSTALLED SOFTWARE I spent a few years consulting in the field and one question would always come up. How do I tell whats installed on my servers? There’s tons of advice on how to do this, some good and some bad, lets go thruit.
THE GOOD STUFF: A function to get installed programs from the registry. Get-InstalledProgramRead More
A REAL WORLD PESTER EXAMPLE FROM THE POWERSHELL GITHUB A hobby of my mine is to peruse the PowerShell Github page for open issues and pull requests. Its a direct way to interact with the team, see what features are being worked on and actually make a difference. I understand that putting yourself out there can be scary but everyone is incredibly friendly and its a great place to get constructive feedback. Aren’t that good at C#? Add some documentation or a Pester test. Anything helps and there’s a ton to do. THE GOOD STUFF: Go to the PowerShell Github Page and start contributing!Read More
WORKING WITH PLASTER If you haven’t yet, I would definitely check out Plaster. Plaster is a PowerShell scaffolding module. What that means for you is that its an easy way to keep your modules and functions consistent and following best practices. Its fully customizable and you can get started in just a few minutes.THE GOOD STUFF:
Go check out plaster, a template-based file and project generator written in PowerShell. Plaster Project PageRead More
GETTING SOME RANDOM HELP? I think one of the biggest hurdles learning PowerShell is trying to find what command to run. What i use to do is read a different help file every morning. Now i don’t expect anyone to be able to look at a help file once and instantly know the ins and outs of a command. But forcing yourself to read a random help file can get the mental juices flowing. The goal of this script is to just start learning whatPowerShell CAN do.
THE GOOD STUFF: A script to get a random help file. Open-PSCommandHelp.ps1.
Read More
ADDING SUDO TO POWERSHELL Lets be honest, before PowerShell the windows command line was a joke and the Linux guys were running circles around us. One of the best functions from Linux is sudo. Sudo is used when you need to run a command with elevated privileges, similar to running a program as administrator in windows. Here’s my implementation of sudo forPowerShell.
THE GOOD STUFF: A script that implements sudo in Powershell. Start-ElevatedProcess.ps1Read More
__ __
__
__
Details
Copyright © 2024 ArchiveBay.com. All rights reserved. Terms of Use | Privacy Policy | DMCA | 2021 | Feedback | Advertising | RSS 2.0