How Do I Resolve This?

How do I resolve this?It's the question every computer asks... when their DNS is old... wrong... or special.  Time to get to work fixing!

DNS?  Domain Name System... doing the job of... name resolution?  That's right.  If you type in and the computer doesn't know how to resolve that name to an IP address, you have DNS problems!

There are four main scenarios that cause three problems.
Your computers have statically set DNS servers on their network cards that are incorrect.Your computers are reaching to DHCP and it's giving them bad DNS info.The is a bad DNS entry on your DNS server.Everything is set correct but your computer needs an exception set in the HOST file.Today, we're going to tackle... one of those four... #1.

Change Static DNS On A Remote Computer's Network Card That's right!  Let's start off by getting the relevant module from PSGallery.

You can do that by using the following command in PowerShell ISE as Administrator.


Is That Really My Target System?

Using PowerShell for User Support can be wonderful!  But there can really be some funny business sometimes, especially in larger environments, if you don't keep your eye out.  In this post, we're going to cover how to make sure, when you're aiming to support a user's system, that you're hitting the right system before you start making changes.

To start, go ahead and install Everyday Powershell's December-2018 module using:

Find-Module "edps_122018*" | Install-Module -Force

You can verify things worked by typing:

Get-Command -Module edps*

You should see the command named Confirm-TargetSystem.  That's the one we'll be using today.

If you have a computer name readily available of a computer you know is online and has PSRemoting enabled, you can try out the function by running:

Confirm-TargetSystem -sysID [yourcomputername]

The script will then reach out, with your current credentials, and attempt to talk to that computer, confirm that it is, in fact, tha…

Get-PipeByPart ... Understanding Pipe Processing

An interesting question was posed to me the other day that, I suppose, I've just taken for granted over time.  When I first got into PowerShell, very early on, I learned quite emphatically, how English-friendly PowerShell is.  Because that's how it was framed for me as I learned, I never asked certain questions.

A fellow at work stopped me and asked to explain the order that PowerShell reads piped commands.  He knew the export of the results needed to be at the end but wasn't sure which order the other elements needed to be in.

It's a reasonable question.  Some human languages present things from left to right, others from right to left.  Some coding languages do the same.  Math can flip-flop.  Even PowerShell does it in different directions based on what you're doing.

For instance, in PowerShell:

$ImReallySomething = 4 * 4

In the case above, actions happen on the right and then the result ends up assigned to the left.

But I never really thought about the order of things…