PowerShell for Admins Tips and Tricks

ICYMI: PowerShell Week of 26-July-2019

Mark Roloff
2 min read
Share:

Topics include an in-depth tutorial, extending PS with Rust, mail archives, and Pester reports.

Special thanks to Robin Dadswell, Prasoon Karunan V, and Mark Roloff.

PowerShell Tutorial Mini-Course: Building a Server Inventory Script

by Adam Bertram on July 22nd

Stepping from one-liners to a full script can be a daunting threshold. Fortunately, Adam has a great tutorial that walks you through his thought-process behind piecing together a reusable tool.

Extending PowerShell with Rust

by Doug Finke on July 21st

Need to squeeze more performance out of your PowerShell but the thought of writing C# isn’t sitting well with you? Well, how about Rust?

Mission Impossible Code Part 2: Extreme Multilingual IaC (via Standard Code for Preflight TCP Connect Testing a List of Endpoints in Both Bash and PowerShell)

by Darwin Sanoy on July 23rd

Join Darwin’s trip down the rabbit hole of working out a xplat method for validating critical network connectivity before onboarding new systems.

Disconnect, migrate and reconnect your PST with PowerShell

by Damien Van Robaeys on July 23rd

I’ve long believed that PSTs are the handiwork of Satan but they’re often a necessary evil that we endure. Fortunately, locating and migrating them is a snap with Damien’s script.

Pester Result Reporting With Suggestions And XSL Support

by Prasoon Karunan V on July 25rd

Desiring nicer looking test results, Prasoon extends Pester, allowing it to generate browser-friendly reports.

Tweet of the Week

It’s always cool to see what new PowerShell tools the InfoSec community comes up with. ThreatHunt simulates attack methods by raising alerts for you to practice hunting down.

Youtube: Powershell and Selenium

Presenting at the St. Louis User Group, Ken Maglio covers everything you need to know to start automating Chrome with the help of Selenium.

Related Articles

Jul 8, 2021

So you want to start a User Group

But where do you begin?

I’ve blogged about this from the reversed perspective on my own blog about finding user groups with a small section about what you can do if your thinking about getting one off the ground which you can read at http://blog.kilasuit.org/2016/04/17/how-to-find-local-user-groups-events-my-experience/ and it was only natural to eventually blog from the other side too although this has come up a bit earlier than I had planned to but alas it gets it done Smile

Dec 16, 2020

Media Sync: Organize Your Photos and Videos with PowerShell

Do you have photos and videos that you have taken over the years that are scattered all over the place? Do you want to have all your photos and videos organized? Do you want all your photos and videos to have a standardized naming scheme? If you answered YES to these questions, then this is the post for you. In this post, I will provide you with the PowerShell code and examples for how to use the Media Sync script. The Media Sync script utilizes the Shell.Application COM object to gather file metadata. Only files that have a picture or video metadata type will be processed. The script uses the date taken for pictures and the media created metadata fields to organize the photos and videos. If there is no date taken or media created available for a given file, the script will use the modify date instead. The script also ensures that you won’t have any duplicate files by checking the file hashes of the two files in question. If the script detects duplicate files, it will only keep one copy of the file. There are also tools included to help you cleanup unwanted files or folders, delete empty directories and find duplicate files. The script has a simple menu driven PowerShell GUI similar to what I did in a previous post . The Media Sync PowerShell script provides the following features: