Happy Holidays – Festive Fun!

DISCLAIMER: my idea of fun and your idea of fun may well differ! Ho, Ho, Ho! Here's some PowerShell frolics I recently had with a customer. How we laughed! The task – take the contents of a log file and reverse it with a loop. Oh, the joy! Here's what I came up with: $log =…

0

Use PowerShell to Add a Vendor-Specific Class to Windows DHCP

I'm helping a customer migrate from an Infoblox appliance to Windows IPAM. One of the tasks I've just completed is to take vendor-specific DHCP classes and option definitions from an Infoblox appliance (ISC) dump and convert it to something that Windows Server 2012 DHCP understands. A vendor-specific class ensures that vendor-specific scope options are delivered to just the vendor's…

0

Security Focus: sIDHistory / sID Filtering Sanity Check – Part 2

Last week, as well as posting my 100th blog post, I also talked about using PowerShell to look for sIDHistory in your forest. This week, I'll show you how to check whether sID Filtering is disabled on your trusts. With sID Filtering disabled the trusting domain will accept sIDs from domains other than the trusted domain. This relaxed approach…

0

Security Focus: sIDHistory / sID Filtering Sanity Check – Part 1 – aka Post #100!

 100 posts! Who’d have thought it? I started out wanting to evangelise PowerShell. 100 posts later, that desire is as strong as ever! Along the way, it seems that I have helped some folks out, made others laugh, confused some, talked about PoSh chickens… and had a jolly good time of it, too! Anyway, enough…

3

iSCSI Storage for My Cluster Test Lab – Part 2

Continuation Welcome back! As promised, this week I'm going to continue writing about some recent test lab configuration fun: You want an iSCSI target on Windows Server? You got it (last week)! You want shared storage presented to a laptop-lab failover cluster? You got it (this week, in fact – see below)! You want all that done with…

0

iSCSI Storage for My Cluster Test Lab – Part 1

Introduction Hello! This week I'm going to write about some recent test lab configuration fun: You want an iSCSI target on Windows Server? You got it! You want shared storage presented to a laptop-lab failover cluster? You got it! You want all that done with PowerShell? You got it (well, mostly)! Yours, Mr. PoSh Chap Esq.  …

2

One-Liner: Get Latest Windows Server Technical Preview Image

Recently, I created a new version of my 'Build an Active Directory Forest in Microsoft Azure' script to deploy a test lab for Windows Server Technical Preview. All I did was replace the line that finds the latest Windows Server 2012 R2 image with one that finds the latest Windows Server Technical Preview image. Simple. In doing so, I thought I…

0

Differentiate Between Automatic Variables and User Created Variables

I was delivering a PowerShell Work Shop the other week. One of the questions asked by a Mr T. T. was this: "…How do you show variables created by you in a session?…" So… Mr T. T. wanted to know how to distinguish between Automatic Variables and user-created variables. A jolly good question and one…

1

Copy To or From a PowerShell Session

Copy-Item now lets you copy to or from a PowerShell sessions in WMF5!     Very cool. Let's see it in action. First of all, copy some local files to a remote session: $TargetSession = New-PSSession -ComputerName HALOMEM03 Copy-Item -ToSession $TargetSession -Path "C:\Users\Administrator\desktop\scripts\" -Destination "C:\Users\administrator.HALO\desktop\" -Recurse     Now, copy some files from a remote…

1

Security Focus: More on Defender and PowerShell

Now, I know that AV isn't a magic bullet. It's not going to make every computer in the world safe from the nefarious forces that seemingly lurk around every metaphorical, digital corner, however, it should be part of your 'defence in depth' strategy. Having AV capture all those known-about beasties is better than not detecting them at…

0