Rob Sewell avatar

Hitting the Wall – #TSQL2sDay

2 hours ago | Rob Sewell

Photo by Farrel Nobel on Unsplash Welcome to another edition of T-SQL Tuesday! This T-SQL Tuesday is hosted by Wayne Sheffield ( blog | twitter ) and he has asked us to talk about […] a time when you ran up against your own brick wall, and how you worked it out or dealt with it. Hitting The Wall When stuck in a problem […]

Mike Robbins avatar

Determine the Day of the Week in 11 Days from Now with PowerShell

5 hours ago | Mike Robbins

A couple of days ago, one of my kids asked me “What day of the week will it be in 11 days from now?“. My response was “I’m not sure, but I can tell you how to figure out the answer for yourself“. Open up PowerShell, wrap Get-Date in parentheses, place a dot or period afterwards, followed by AddDays,  then 11 in another set of parentheses, and finally another dot or period followed by DayOfWeek.

Tommy Maynard avatar

An Array of Hash Tables

21 hours ago | Tommy Maynard

Welcome to the 293rd post on It’s countdown to 300! If you’ve ever looked into Pester and TestCases, then maybe you’ve seen what I’m about to mention. While today’s post has nothing to do with Pester, this feature in Pester uses an array of hash tables. Neat, right? While adding a couple New-PSDrive commands […]

Mike Robbins avatar

PowerShell Saturday Chattanooga Post-Mortem

yesterday | Mike Robbins

PowerShell Saturday Chattanooga was this past weekend. I attended the all-day preconference presented by Jeff Hicks on Friday which saw a great turn out of about 50 people or so. I presented two 45-minute sessions as part of the Saturday event. One on “Writing award winning PowerShell functions and script modules” and another on “Recreate MOF based DSC resources as Class based DSC resources“.

Stephanos Constantinou avatar

Get Group Membership Changes

yesterday | Stephanos Constantinou

Get Group Membership Changes Scenario: Get Group Membership Changes There are sometimes that we would like to know when a member has been removed or added in groups in Active Directory. The script that we will discuss below, is checking groups to find out if any member has been added or removed from groups based... Read More The post Get Group Membership Changes appeared first on Stephanos Constantinou Blog.

Kieran Jacobsen avatar

Planet PowerShell is now HTTPS only

3 days ago | Kieran Jacobsen

Planet PowerShell I'm happy to announce that Planet PowerShell is now enforcing HTTPS for all aggregated sites. I gave some extra time for authors to make the change. In the end only 3 authors opted out of moving to HTTPS, so I'm happy with the result. I've been making some changes to how CloudFlare cache settings.

Stephanos Constantinou avatar

PowerShell Automatic Variables

6 days ago | Stephanos Constantinou

PowerShell Automatic Variables In this tutorial we will see about PowerShell Automatic Variables. As Microsoft describes, these variables store state information for PowerShell. They are created automatically and maintained by PowerShell. Ideally, PowerShell Automatic Variables are considered to be read-only. Although you are able to write to them, you should avoid writing to those variables... Read More The post PowerShell Automatic Variables appeared first on Stephanos Constantinou Blog.

Mark Wragg avatar

Copy files with hash difference via PowerShell

6 days ago | Mark Wragg

Copy-FileHash is a PowerShell cmdlet to enable file copies between directory trees for any files where the Get-FileHash calculated hash value differs.

Mike Kanakos avatar

Learn about PowerShell scheduled jobs and how to create them

6 days ago | Mike Kanakos

Learn what are PowerShell scheduled jobs, how they work and how to create them

Dan Franciscus avatar

Using Invoke-VMScript for running remote scripts on VMs with PowerCLI

7 days ago | Dan Franciscus

Invoke-VMScript allows you to run PowerShell, batch, and Bash scripts on remote VMware virtual machines from PowerShell. Not only that but since you are actually authenticating to vCenter or ESXi, it does not require network connectivity to the server you want to run the script on. VMware has long supported the use of PowerShell for managing+ Read More The post Using Invoke-VMScript for running remote scripts on VMs with PowerCLI appeared first on WinSysBlog.

David Christian avatar

AWS PowerShell - EC2 Key Pairs, Credentials and Connecting

7 days ago | David Christian

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.

Mike Kanakos avatar

I'm attending PowerShell Saturday in Chattanooga!

8 days ago | Mike Kanakos

I'll be attending the PowerShell Saturday conference in Chattanooga, Tennessee on August 10th and 11th!

Kevin Marquette avatar

Powershell: How to create a Standard Library Binary Module

10 days ago | Kevin Marquette

I recenty had an idea for module that I wanted to implement as a binary module. I have yet to create one using the PowerShell Standard Library so this felt like a good opportunity. I was able to use the Creating a cross-platform binary module guide to create this module...

Dan Franciscus avatar

The Future of PowerShell is in the Youth

11 days ago | Dan Franciscus

I love PowerShell. It has been the single most important skill I have learned in my career as it has allowed me to benefit and grow financially and skill-wise. I care deeply about the community and perhaps more importantly about the future of this beloved language. Starting at the next PowerShell Summit in Bellvue, the+ Read More The post The Future of PowerShell is in the Youth appeared first on WinSysBlog.

Stephanos Constantinou avatar

PowerShell Type Operators

11 days ago | Stephanos Constantinou

PowerShell Type Operators In this tutorial we will see about PowerShell Type Operators. Thee operators are able to check if a value is a specific type of data or try to change the data to the specific type. There are only three PowerShell Type Operators. Below is the list of the operators: -is – Returns TRUE... Read More The post PowerShell Type Operators appeared first on Stephanos Constantinou Blog.

Kurt Roggen [BE] avatar

Are you using LDAP over SSL/TLS?

11 days ago | Kurt Roggen [BE]

Today, many applications and devices connect to Active Directory over LDAP. Many of those are still performing unsecure LDAP “simple binds” where credentials are transferred in clear text over the network. Those exposed credentials typically include the “service account” used to connect to LDAP, but also include the user credentials used during the application login. […]

Mike Robbins avatar

Determine if a Mailbox is On-Premises or in Office 365 with PowerShell

12 days ago | Mike Robbins

One of the companies that I support is currently in the process of migrating from an on-premises Exchange Server environment to Office 365. They’re currently running in hybrid mode. While it seems like wanting to know what mailboxes still exist onsite versus which ones are in the cloud would be an all too common task, there doesn’t seem to be an easy way to get that information with PowerShell.

Thomas Rayner avatar

Find Me At Techmentor For A Free Sticker

13 days ago | Thomas Rayner

Are you going to be at Techmentor Redmond next week? I will be! You can catch me at my workshop on Monday and learn some Master Powershell tricks, or at my session on Tuesday to learnRead More...

Stephanos Constantinou avatar

PowerShell Try Catch Finally

13 days ago | Stephanos Constantinou

PowerShell Try Catch Finally In this tutorial we will see about PowerShell Try Catch Finally. We will see what it does and some example on how we are able to use it. It is used to handle and respond to terminating errors. When a terminating error occurs, Windows PowerShell will stop running a script or... Read More The post PowerShell Try Catch Finally appeared first on Stephanos Constantinou Blog.

Rob Sewell avatar

A PowerShell Conference In A Book

13 days ago | Rob Sewell

A Question Shortly after the European PowerShell Conference and the PowerShell and Devops 2018 summit in the USA Mike Robbins b | t contacted me with a question. Interested in writing a chapter in a PowerShell book? I was intrigued and read on. A Conference in a Book There was more to this book than […]

Prateek Singh avatar

Publish AWS CloudWatch custom metrics with PowerShell

13 days ago | Prateek Singh

Amazon CloudWatch is a monitoring service for Amazon Web Services (AWS) that provides robust monitoring of your entire AWS infrastructure resources and applications. It can collect data, gain insights, and... The post Publish AWS CloudWatch custom metrics with PowerShell appeared first on Ridicurious.

Stephanos Constantinou avatar

PowerShell Wildcards

15 days ago | Stephanos Constantinou

PowerShell Wildcards In this tutorial we will see about PowerShell Wildcards. Wildcards can be used in cases you want to match multiple characters. Wildcards are used to create patterns in your commands. For example when you are trying to filter results wildcards can be useful by creating a pattern of characters to match. Below is... Read More The post PowerShell Wildcards appeared first on Stephanos Constantinou Blog.

Emmanuel Demilliere avatar

Get EventLog Event Details Content PowerShell

15 days ago | Emmanuel Demilliere

Get EventLog Event Details Content PowerShell Hello, Windows eventlog are great to log data. Search inside them is quite easy with the EventVwr.msc management console. But search through them programmatically can be a bit tricky. Especially when you want only some key information from the event. Get EventLog Event Details Content PowerShell Let’s take eventid 5719 for example: Get EventLog Event Details Content PowerShell – Event Overview As you may agree, the important information there is “D2K16TP4”.

Dan Franciscus avatar

How to centralize PowerShell transcript logs

18 days ago | Dan Franciscus

One of the logs that can trace an attacker’s activity is a transcript log. Transcript logs are basically an “over-the-shoulder” method of seeing what’s occurring in any given PowerShell session. It shows which commands the user is running and any output printed to the console. In this article, I will show how to centralize these+ Read More The post How to centralize PowerShell transcript logs appeared first on WinSysBlog.

Alain Alain avatar

PowerShell: XenServer Count Function

18 days ago | Alain Alain

Intro I’ve been hesitant to dive into XenServer PowerShell cmdlets, but there’s no rational reason to not do it. Citrix continues to make great strides in expanding and updating PowerShell for XenServer, PVS, and XenDesktop. Today, we’ll go over a function that queries an array of XenServer Poolmasters and returns the total VM count on […]

Tommy Maynard avatar

Add a Single Space Between Characters

19 days ago | Tommy Maynard

Welcome to the 292nd post on It’s countdown to 300! Even though we’ve been doing this PowerShell thing awhile, we don’t always write our own solutions. You, like me, just might go looking for someone else’s solution, before spending a few minutes of your own time, writing a solution. I’m guilty. That’s said, there’s […]

Stephanos Constantinou avatar

Notify Users for Password Expiration

19 days ago | Stephanos Constantinou

Notify Users for Password Expiration Scenario: Notify Users for Password Expiration The script that we will discuss below is about notifying domain users via email when the password will expire. Based on the policy of each company, you set the rules in Group Policy for the password to expire on the specified time. When the... Read More The post Notify Users for Password Expiration appeared first on Stephanos Constantinou Blog.

Mike Robbins avatar

Displaying Toast Notifications for a Different User when PowerShell Module Updates are Available

19 days ago | Mike Robbins

A couple of months ago, Josh King presented a session on “Using BurntToast to Display Timely Notifications” for our June 2018 Mississippi PowerShell User Group virtual meeting. I was previously planning to write something to display balloon notifications in Windows and I learned that they’re now called toast notifications. I also learned that Josh had created a module named BurntToast which performs most of the heavy lifting so I could simply take advantage of it instead of writing my own code.

Rob Sewell avatar

A PowerShell Pester Check for parsing SQL scripts

19 days ago | Rob Sewell

I like to write Pester checks to make sure that all is as expected! This is just a quick post as much to help me remember this script 🙂 This is a quick Pester test I wrote to ensure that some SQL Scripts in a directory would parse so there was some guarantee that they […]

Alain Alain avatar

RTP PowerShell User Group: Adding Scheduled Jobs to your PowerShell Toolbox – July 25th.

20 days ago | Alain Alain

July 25th, the Research Triangle PowerShell User Group will host Jeff Hicks. He will cover implementing PowerShell scripts with Scheduled Jobs. It proves to be an informative meeting. Check more at MeetUp – Thanks, Alain  

Thomas Rayner avatar

Working With Azure Automation From The PowerShell AzureRM CLI

20 days ago | Thomas Rayner

Back in March, I had the opportunity to link up with Microsoft Cloud Advocate Damian Brady and record an episode of The DevOps Lab. We chatted a little bit about the MVP Summit and being anRead More...

Dirk Bremen avatar

PowerShell Get-Command -Syntax output explained

20 days ago | Dirk Bremen

In this post, I would like to provide a detailed explanation of the Get-Command -Syntax output. While the output is documented (the format used is actually called a syntax diagram) I found parts of it rather confusing. As an example throughout this post, we will use the output of the command: The output looks quite […]

David Christian avatar

AWS PowerShell - Creating Ec2 Instances and Basic Machine Management

20 days ago | David Christian

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 for Powershell and start managing EC2 from your shell today Creating EC2 Instances Instance Size Choosing a key pair Passing User Data Choosing Security Groups So Many More Options EC2 Lifecycle Creating EC2 Instances Creating an EC2 instance with all the defaults couldn’t be simpler.

Josh King avatar

Copying Office 365 User Licensing

21 days ago | Josh King

Spoiler alert: this post didn't end up the way I expected it to when I started writing...

Dirk Bremen avatar

Find out in which version a PowerShell Cmdlet was introduced

25 days ago | Dirk Bremen

Some days ago Thomas Rayner (whom I admire for his passion and consistency when it comes to sharing his knowledge) posted about the same topic on his blog. He mentioned a method on how to utilize GitHub in order to find out the earliest Version a PowerShell Cmdlet was introduced. When I read the Thomas’s […]

Emmanuel Demilliere avatar

Regular Expression PowerShell RegEx

25 days ago | Emmanuel Demilliere

Regular Expression PowerShell RegEx Hello, Regular Expression is a great concept that can be used by a lot of language. It allows you to recognize string patterns. This is the kind of feature that webmaster use to be sure that you enter your phone number or email address in the expected format. PowerShell can also use RegEx, thanks to the -match and -Replace operators. Get-Help About_Operators Regular Expression PowerShell RegEx – Match Help Get-Help about_Comparison_Operators Regular Expression PowerShell RegEx – Detailed Match Help Regular Expression PowerShell RegEx – Example 'OnlyLetters' -replace '[A-Z]','1' Regular Expression PowerShell – Example This is a pretty simple example of letters replacement by number 1.

David Christian avatar

AWS PowerShell - Finding the Right EC2 Image

25 days ago | David Christian

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.

Dirk Bremen avatar

Get .net Format Strings for given input

26 days ago | Dirk Bremen

Yet again, long time no post! .net Format Strings are very useful when it comes to taking control over the output of your scripts. e.g.: The problem with those Format Strings is, that hardly anyone can remember them. While there they are thoroughly documented and several nice folks have created cheat-sheets (e.g. here), I thought […]


26 days ago

I’m proud, grateful, and excited to report that my chapter on Azure Functions in The PowerShell Conference Book has just been published! We made this book for one reason: We needed a PowerShell version of The Simpsons classic 22 Short Films About Springfield episode. You are Lisa, and we’re all just trying to help. Ok, maybe that wasn’t the only reason. Mike Robbins wrote more about the project’s genesis.

Mike Robbins avatar

Use PowerShell to Determine What Your System is Talking to

26 days ago | Mike Robbins

Recently, while troubleshooting a problem with a newly installed application, I wanted to see what it was communicating with. My only requirement was that I wanted to use PowerShell if at all possible. I couldn’t remember if there was a PowerShell command for accomplishing this task or not, but I remembered seeing something about it in Patrick Gruenauer’s chapter (PowerShell as an Enterprise Network Tool) in The PowerShell Conference Book.

Jeremy Murrah avatar

Continue..Return..Break OhMy!

26 days ago | Jeremy Murrah

Do you ever have one of those things that you know, until someone asks you about it? Like when someone asks you to define hegemony, or pernicious. Or in my case when I was talking to some coworkers about using continue and break in a script, and they asked me if I was sure that’s how those worked. Well it turned out I wasn’t, not exactly. I had a pretty good idea about how to use them, and hadn’t run into any major issues, but I realized I couldn’t explain the difference between continue, break, and return, not in any concrete way.

Prateek Singh avatar

Monaco Editor – Full Code Editor experience in Azure Cloud Shell

27 days ago | Prateek Singh

Introduction This is chapter-5 of my Azure Cloud Shell Web Series and today we are discussing – Monaco Editor  which is the open source web-based editor that powers the Visual... The post Monaco Editor – Full Code Editor experience in Azure Cloud Shell appeared first on Ridicurious.

Mike Kanakos avatar

Raleigh Triangle Powershell User Group - July Meeting

27 days ago | Mike Kanakos

The Raleigh Triangle PowerShell user group will hold our monthly meeting on July 25th. Jeff Hicks will be speaking this month in person and the topic will be PowerShell Scheduled Jobs

Thomas Rayner avatar

Finding Out When A PowerShell Cmdlet Was Introduced

27 days ago | Thomas Rayner

In the PowerShell Slack (invite yourself at, there was a very brief debate over when the Expand-Archive cmdlet was introduced to PowerShell. This is absolutely information that can be found online, but there’s a few differentRead More...

Matt Bobke avatar

JAMFIT’s LDAP Sync Script – Converted from Python 2 to PowerShell

28 days ago | Matt Bobke

During the time that I spent on a temporary assignment on Blizzard’s End User Computing team, work began on implementing Jamf. Being a global company, Blizzard has more than a few office locations and departments that are all represented across Active Directory. A script that Jamf’s IT team hosts on GitHub enables easy syncing from...

Tommy Maynard avatar

The PowerShell Conference Book – My Chapter

28 days ago | Tommy Maynard

Welcome to the 291st post on It’s countdown to 300! Well, it’s happened. My chapter has gone live in The PowerShell Conference Book. This is one of those moments I’ll never forget. Even so, it may not be entirely for the reason you might think. Sure, I’ve got my name alongside some of the […]

Mike Kanakos avatar

I'm published!

28 days ago | Mike Kanakos

The book is authored by over 30 different contributors who are subject matter experts in different areas and all (100%) of the royalties from “The PowerShell Conference Book” are automatically donated to the OnRamp Scholarship program through the “Leanpub for Causes” program.

Sergey Vasin avatar

sthModuleScope – functions for working with elements in module’s scope.

28 days ago | Sergey Vasin

sthModuleScope - functions for working with elements in module's scope.… Continue reading →

Sergey Vasin avatar

sthModuleScope — функции для работы с элементами в области модуля.

28 days ago | Sergey Vasin

sthModuleScope — это модуль, содержащий четыре функции, предназначенные для работы с элементами в области модуля. Если вы создаете собственные модули, где некоторые из функций и переменных предназначены только для внутреннего использования, то этот модуль может помочь при их диагностике и… Читать далее →

Alex Neihaus avatar

PowerShell how to create multiple Azure virtual networks in multiple subscriptions

29 days ago | Alex Neihaus

Compare Azure PowerShell to Azure Resource Manager templates