Tommy Maynard avatar

Use PowerShell to Edit a CSV, Revisited

17 hours ago | Tommy Maynard

1. Back in January 2019, I started writing on another website. In December of that same year, I modified how I was doing things. Instead of just writing a full post there, I would start a new post there and then finish the post here, on my site. I did that through June 2020. All […] The post Use PowerShell to Edit a CSV, Revisited appeared first on tommymaynard.com.

Matthew Dowst avatar

PowerShell Weekly – January 21, 2022

19 hours ago | Matthew Dowst

Here is your weekly round up of what is happening in the world of PowerShell. Do you have a suggestion for this post? Do you know something that should be included? Let me know in the comments below, or on twitter.

Adam Bertram avatar

Exploring Processes and Applications with 1E Tachyon

2 days ago | Adam Bertram

Learn to use the PowerShell and Tachyon integration to solve a specific use-case scenario.

Kelvin Tegelaar avatar

Automating with PowerShell: Getting new Secure App Model tokens

2 days ago | Kelvin Tegelaar

Since I’ve released CIPP I’ve been getting a load of questions about the Secure Application Model, one of the most common occurrences happens to be that users somehow don’t get their tokens setup completely, and need to retrieve these again. Setting all the permissions and such can be a hassle so you don’t want to... Read More

Jeff Hicks avatar

Behind the PowerShell Pipeline

2 days ago | Jeff Hicks

Last week I made some passing references on Twitter to a new project I am working on this year. I thought I’d take a little time to explain it and hopefully entice a few of you into joining me. I’ve been blogging here for about ten years, if not longer. I typically share technical tutorials...

Jeff Hicks avatar

Tell PowerShell What You Want

3 days ago | Jeff Hicks

I saw a question on Twitter the other day about how to include the Notes property when running the Get-VM Hyper-V cmdlet. I’m reading between the lines, but I think the desired goal was to include the Notes property. Here are a few ways you might tackle this problem. And even if you don’t use...

Tommy Maynard avatar

PowerShell Painting

3 days ago | Tommy Maynard

I have no idea what you thought you might be getting into when you followed a link to this post. Maybe some painting in the ConsoleHost, because if that is not a thing, it should be. Anyway, that is not what this post is about. My daughter has come up a few times during my years […] The post PowerShell Painting appeared first on tommymaynard.com.

Kelvin Tegelaar avatar

Monitoring with PowerShell: Monitoring battery health

3 days ago | Kelvin Tegelaar

This one was requested by several users for a while, I added this to some script libraries but never actually released it on the blog so I figured it’s a good way to get back into blogging. The monitor is pretty simple; first we run a command to check each battery in the system, we... Read More

Jeff Hicks avatar

Profile PowerShell Functions

4 days ago | Jeff Hicks

I’ve published a stable release of the PSFunctionTools module to the PowerShell Gallery. Previously, it was pre-release. The module requires PowerShell 7.1 and later. Although, as I have mentioned in the past, you are welcome to fork the repository and create a version that will run on Windows PowerShell. I wanted to point out a...

Przemyslaw Klys avatar

Mentioning users in notifications using PSTeams PowerShell Module

5 days ago | Przemyslaw Klys

Microsoft Teams over the last few years have grown into an excellent and flexible tool for both small and big companies. Having the ability to chat with users, store files or have all sorts of data in one place makes it easy and functional. Of course, it has its fair share of issues, but it's getting better. One of the cool features of Microsoft Teams is being able to send notifications to Microsoft Teams Channels using WebHook Notifications.

Tommy Maynard avatar

Learning PowerShell

6 days ago | Tommy Maynard

Every few weeks or so, over the last 10 years or so, there is a new post somewhere, where somebody is asking about the best way to learn PowerShell. It has probably been a thing beginning in 2006. While I have not been evaluating this since then, I have noticed it long enough to feel […] The post Learning PowerShell appeared first on tommymaynard.com.

Matthew Dowst avatar

PowerShell Weekly – January 14, 2022

7 days ago | Matthew Dowst

Here is your weekly round up of what is happening in the world of PowerShell. Do you have a suggestion for this post? Do you know something that should be included? Let me know in the comments below, or on twitter.

Darren Robinson avatar

Using WordPress API’s with PowerShell

8 days ago | Darren Robinson

This blog uses WordPress. Why WordPress? Well, it was the most prevalent platform when I started this blog back in 2016 and it was more powerful and extensible than Blogger which I had used previously. Anyway, that’s rather irrelevant for this post which about accessing WordPress APIs with PowerShell.… keep reading The post Using WordPress API’s with PowerShell appeared first on darrenjrobinson - Bespoke Identity and Access Management Solutions.

Jeff Hicks avatar

Prerelease of PSFunctionTools for PowerShell

8 days ago | Jeff Hicks

At the end of last year wrote a series of blog posts describing tools and techniques for working with PowerShell scripts and functions. My goal was to build a framework of tools that I could use to automate PowerShell scripting work, such as creating a new module from a group of existing files. I’ve finally...

Jeff Hicks avatar

Copy PowerShell History Command

10 days ago | Jeff Hicks

I thought I’d share a short but useful PowerShell utility. This is something that is very handy when I am writing. As you know, PowerShell maintains a command history in your PowerShell session. You can view history with the Get-History cmdlet or its alias h. To re-rerun a command use Invoke-History or its alias r,...

Bradley Wyatt avatar

A PowerShell Game you can Compete with People Online – Feature Update to PSWordle

10 days ago | Bradley Wyatt

Usually, when I update items such as modules, functions, and other projects, I don’t make a new post but rather adjust the original post. But, in this case there are so many changes and new features, I felt that I had too. I will still be updating the original post so if anyone stumbles upon it they won’t be given old information. A HUGE Thank You to Lee Holmes whose PowerShell code of the Wordle logic was so good, I ended up re-writing about 90% of this module! What is the Game? The game is a clone of Wordle which I came across reading a New York Times article and based off my Twitter feed, is quite a popular game.

Jeff Hill avatar

SQLServer, sp_configure and PowerShell

14 days ago | Jeff Hill

How to use PowerShell to look at and change sp_configure options.

Tommy Maynard avatar

It is All About the PowerShell Users

14 days ago | Tommy Maynard

There was a recent series of Twitter posts from Jeffery Snover, the inventor of PowerShell himself. It started with the 15th birthday of PowerShell, which happened recently. I think I have captured it all here; have a read. You may have missed it and … I do not think that anyone should. Jeffery said, “The […] The post It is All About the PowerShell Users appeared first on tommymaynard.

Matthew Dowst avatar

PowerShell Weekly – January 7, 2022

14 days ago | Matthew Dowst

Here is your weekly round up of what is happening in the world of PowerShell. Do you have a suggestion for this post? Do you know something that should be included? Let me know in the comments below, or on twitter.

Jeff Hicks avatar

Discovering Pester Tags Revisited

15 days ago | Jeff Hicks

Yesterday I shared some PowerShell code I wrote to discover tags in a Pester test. It works nicely and I have no reason to complain. But as usual, there is never simply one way to do something in PowerShell. I got a suggestion from @FrodeFlaten on Twitter on an approach using the new configuration object...

Jeff Hicks avatar

Discovering Pester Tags with the PowerShell AST

16 days ago | Jeff Hicks

As I resolved at the end of last year, I am doing more with Pester in 2022. I’m getting a bit more comfortable with Pester 5 and as my tests grow in complexity I am embracing the use of tags. You can add tags to different Pester test elements. Then when you invoke a Pester...

Mike Kanakos avatar

Jumpstart: PowerShell Learning Resources

16 days ago | Mike Kanakos

Need to find an excellent resource for learning PowerShell?? Check out this comprehensive list of links and resources to help you get started.

Bradley Wyatt avatar

Play Wordle, the Puzzle Game Using PowerShell

17 days ago | Bradley Wyatt

I recently came across a NYTimes article talking about a new game called, ‘Wordle.’ If you are not familiar with the game, its a text-based game where you have 6 tries to guess the word. Letters in a Gray box are not letters found in the word. Letters in a Yellow box are found in the word, but are in the incorrect spot. And finally, letters in a Green box are in the word and in the correct location.

Tommy Maynard avatar

Bye-Yee ISE – Hey Yo VS Code

17 days ago | Tommy Maynard

It is official — as official as it is going to get anyway — but I am in the final six-month stretch of my eight-year consecutive run of writing about PowerShell. Not that I will be done after eight years, but I have been at this awhile. What is also official is that I have […] The post Bye-Yee ISE – Hey Yo VS Code appeared first on tommymaynard.com.

Jonathan Medd avatar

Automating SonarCloud with PowerShell – Part 3 Onboarding a User

17 days ago | Jonathan Medd

Warning: this post contains unsupported API calls, so use at your own risk Similar to the situation in Part 2 for onboarding a project into SonarCloud, onboarding a user into an organization is also not supported via the public API. In the API documentation there is no entry for api/organizations This was confirmed by a … Continue reading Automating SonarCloud with PowerShell – Part 3 Onboar

Matthew Dowst avatar

2021: A PowerShell Year in Review

18 days ago | Matthew Dowst

2021 was quite the year for PowerShell. We saw a lot of first and improvements in the platform. Not just from Microsoft but the community as a whole. I also personally hit a few milestones. First and foremost, happy 15th birthday to PowerShell. This year was also a huge year for me. My book Practical […]

Mike Kanakos avatar

Video Intro to Secret Management with PowerShell

18 days ago | Mike Kanakos

The Secret management module does the hard work of managing secrets. This demo covers the basics on installation and usage, along with some information on using Secret Management module with AZ KeyVault.

Kelvin Tegelaar avatar

Ending the year with PowerShell: a 2021 retrospective

22 days ago | Kelvin Tegelaar

As most of you have noticed I haven’t blogged for a bit, and that’s because I’ve been trying to enjoy some vacation time. I just can’t let this slip as it’s just one more day until the new year. I’ve had the most amazing year, even with the pandemic and everyone seemingly losing their minds... Read More

Jeff Hicks avatar

Accelerate Pester Test Development

24 days ago | Jeff Hicks

The other day I shared my PowerShell plans for 2022. And needless to say, I didn’t wait to dig in. I am working on a new module and since it won’t be published until next month, I went ahead and marked it as Core only. I also started writing a set of Pester 5.x tests...

Jeff Hicks avatar

PowerShell Plans for 2022

25 days ago | Jeff Hicks

I’m not much for writing year in review pieces. Nor, to be honest, do I often write New Year’s resolutions. But I’ve been thinking about the work I’ve done this past year and what I might be doing in 2022 so I thought I’d share some thoughts on what 2022 will look like for me,...

Jonathan Medd avatar

Automating SonarCloud with PowerShell – Part 2 Onboarding a Project

one month ago | Jonathan Medd

Warning: this post contains unsupported API calls, so use at your own risk One of the main reasons I started looking at the SonarCloud api was to be able to automate the onboarding of new GitLab projects into SonarCloud. We didn’t want to have to do that manually via the UI, rather via a pipeline … Continue reading Automating SonarCloud with PowerShell – Part 2 Onboarding a Project

Darren Robinson avatar

Connecting to Microsoft Graph using the Authorization Code with PKCE Flow and PowerShell

one month ago | Darren Robinson

I’ve authored numerous posts on using the Microsoft Authentication Libraries to connect to Microsoft Graph using PowerShell and Python. They cover using both public and confidential client methods. But what about a method that can be either? In this post I show how to use the Authorization Code with PKCE Flow and PowerShell to authenticate and authorize against Azure Active Directory for Microsoft Graph access.

Jeff Hill avatar

Nth Day of Month

one month ago | Jeff Hill

Quick script to find the Nth day of a month.

Darren Robinson avatar

Generating PKCE codes with PowerShell

one month ago | Darren Robinson

Proof Key for Code Exchange (PKCE) is a mechanism often used with an OAuth2 Authorization Code Grant flow to provide an enhanced level of security when authenticating to an Identity Provider such as Microsoft Graph to get an access token. In order to use PKCE a code_verifier is generated along with a code_challenge.… keep reading The post Generating PKCE codes with PowerShell appeared first on darrenjrobinson - Bespoke Identity and Access Management Solutions.

Jeff Hicks avatar

Building a PowerShell Module Inception-Style

one month ago | Jeff Hicks

Over the course of the last week or so, I’ve been sharing PowerShell functions and scripts for working with PowerShell functions and scripts. I showed PowerShell functions to export functions to a script file and code to convert scripts to functions It has all been very Inception-like. To wrap this all up I thought I’d...

Matthew Dowst avatar

PowerShell Weekly – December 17, 2021

one month ago | Matthew Dowst

Here is your weekly round up of what is happening in the world of PowerShell. Do you have a suggestion for this post? Do you know something that should be included? Let me know in the comments below, or on twitter.

Kelvin Tegelaar avatar

Monitoring with PowerShell: Detecting Log4J files

one month ago | Kelvin Tegelaar

Hey all, so this is a pretty quick one, to add onto the already many scripts released for this. In this script we’re trying to get all the files that could suffer from the Log4J issue in CVE-2021-44228. I’m saying could, because the script detects a class that is also used in other products, Hence... Read More

Luke Murray avatar

Whitelisting your Public IP with Azure Bicep and PowerShell

one month ago | Luke Murray

Allowing and restricting Azure resources by being accessible by specific Public IP (Internet Protocol) addresses has been around for years; most Azure resources support it, a Storage account is no different. In this article, I will be using PowerShell to obtain my current public IP, then parse that variable into my Azure Bicep deployment to create a storage account, with the firewall rule allowing ONLY my public IP address.

Matthew Dowst avatar

PowerShell Weekly – December 10, 2021

one month ago | Matthew Dowst

Here is your weekly round up of what is happening in the world of PowerShell. Do you have a suggestion for this post? Do you know something that should be included? Let me know in the comments below, or on twitter.

Thomas Lee avatar

Viewing PowerShell Files in Preview within WIndows Explorer

one month ago | Thomas Lee

Windows Explorer has a nice feature that shows the contents of a selected file. Click on a file and in the right pane you can see the contents. This is a great feature, except it does not work for ALL filetypes out of the box. So would you wish to view a .PS1 file this way - you are out of luck. By defaultBy default, the preview pane is disabled. So you must first enable it. With the latest versions of Windows 11, it looks like this:But even after enabling this, you still can not view .

Przemyslaw Klys avatar

Finding duplicate SPN with PowerShell

one month ago | Przemyslaw Klys

Duplicate SPNs aren't very common but can happen in any Active Directory as there's no built-in way that tracks and prevent duplicate SPN's. One has to either know all SPN's in the environment, track them or check each time whether it already exists or not. Things get more complicated with larger Active Directory environments as people change, new apps are added, old apps are forgotten, but SPNs prevail.

Przemyslaw Klys avatar

Solving typo problems with Fuzzy Search in PSWriteHTML

one month ago | Przemyslaw Klys

One of the everyday use cases with PSWriteHTML is to create a simple view of PowerShell data in a table. While PowerShell comes with a built-in cmdlet ConvertTo-Html, it's basic in its functionality. It makes an HTML representation of PowerShell data, but it brings no CSS, JavaScript, or other functionality. While for some use cases, it's enough, the other times, you need to make an effort to make it usable.

Kelvin Tegelaar avatar

Automating with PowerShell: Deploying External e-mail markers

one month ago | Kelvin Tegelaar

A while back I’ve blogged about deploying e-mail spoofing warnings. These warns inject a little bit of HTML into e-mails to let people know a e-mail is external or not trusted. For a while now Microsoft has a native option for this. You do need a somewhat recent version of Outlook but the native version... Read More

Przemyslaw Klys avatar

Active Directory Domain Services could not replicate the directory partition – The replication operation encountered a database error

one month ago | Przemyslaw Klys

If you ever encounter an error while trying to create a new domain within a forest saying, "The replication operation encountered a database error," it makes you sweat a bit. Your brain tells you it will be a nightmare to fix, do I have proper backups to make it happen, and the question "why now" shows up. The post Active Directory Domain Services could not replicate the directory partition – The replication operation encountered a database error appeared first on Evotec.

Jerome Bezet-Torres avatar

Customize HydrationKit

one month ago | Jerome Bezet-Torres

Today we are going to talk about the HydrationKit maintained by Johan Arwidmark @jarwidmark which allows you to set up a complete modern deployment environment for operating systems. To start I created two WPF applications with MahApps and PowerShell of course. They allow you to modify the complete environment of the hydrationKit. You can modify the following parameters: Computers Name Network addresses Domain Name DHCP configuration Passwords To use these two applications you have to wait a little more because Johan 😉 has not yet released the version based on Windows Server 2022.

Jonathan Medd avatar

Automating SonarCloud with PowerShell – Part 1 Introduction

2 months ago | Jonathan Medd

SonarCloud is the SaaS version of SonarQube, a tool to detect and fix issues in your code by examining code quality and security vulnerabilities. I needed to automate the onboarding of both users and code projects into SonarCloud to take away the need to manually provision these items into the system. SonarCloud has a Web … Continue reading Automating SonarCloud with PowerShell – Part

Kelvin Tegelaar avatar

Monitoring with PowerShell: Monitoring WLAN reports

2 months ago | Kelvin Tegelaar

This is a bit of a short one, but I’m trying to get back to two blogs a week slowly, today we’re talking about a pretty cool feature that Microsoft has made for Windows, but doesn’t get the attention it deserves. When you’re troubleshooting WLAN issues there’s a lot of locations to investigate – If... Read More

Matthew Dowst avatar

PowerShell Weekly – November 19, 2021

2 months ago | Matthew Dowst

Here is your weekly round up of what is happening in the world of PowerShell. Do you have a suggestion for this post? Do you know something that should be included? Let me know in the comments below, or on twitter.

Jeff Hill avatar

Update Portable VSCode

2 months ago | Jeff Hill

Make updating the portable version of VSCode easier.

Shane O'Neill avatar

Table Column Differences Part 03 – Compare-SqlTableColumns

2 months ago | Shane O'Neill

Words: 470 Time to read: ~ 2 minutes Don’t talk to me about it! Four years ago (I know, where did the time go?), I wrote about Table Column Differences with T-SQL and PowerShell. A Michal commented on the post, asking how to get a specific output from his search. Hi, Thanks for your sharing. … Continue reading "Table Column Differences Part 03 – Compare-SqlTableColumns"