Articles

PowerShell articles, tutorials, and guides from community experts.

James Petty

Website & Forum Updates

The migration is completed and we are happy to announce that the new forums are live and ready to go. If you had an existing powershell.org account you will need to reset your password. Once you have done that you can configure your logging with Twitter, Discord, GitHub, Microsoft 365, and Linkedin SSO options.

The new link is https://forums.powershell.org but we will put in a redirect for powershell.org/forums as well.

For instructions on how to do this, you can follow this post. https://forums.powershell.org/t/welcome-to-the-new-powershell-forums/7

Robin Dadswell
In Case You Missed It

ICYMI: PowerShell Week of 08-January-2021

Topics include Phishing, DSC, Regex and more…
Special thanks to Robin Dadswell, Prasoon Karunan V, Kiran Patnayakuni and Kevin Laux

Set Windows Timezone via Location Services

by Dan Tsekahnskiy on 4th January
This post aims to help those of you trying to set the Windows time zone without relying on DHCP options or similar solutions.

Getting Started with PowerShell and Regex

by Christopher Bisset on 5th January
In this article, you’re going to learn the basics of working with regex and PowerShell.

Mike Kanakos
Announcements

PowerShell + DevOps Global Summit 2021: Calling All Speakers!

Hello PowerShell and Automation family!

I hope you’re getting excited for the PowerShell + DevOps Global Summit 2021! I can’t wait to get back to seeing fantastic demos, exploring new topics and learning from others. I have written in the past about how the Summit 2021 event will be a little different because of it being a virtual event. But even though we won’t be together in person, there is one thing about Summit you expect over the years: AWESOME DEMOS!

n2501r
PowerShell for Admins

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: