PowerShell for Admins Tips and Tricks

ICYMI: PowerShell Week of 8-March-2019

Mark Roloff
2 min read
Share:

Topics include the Graph API, status pages, test-driven development, getting your Google 2FA in the shell, and more.

Content curated by Robin Dadswell and Mark Roloff.

PowerShell and the Microsoft Graph API : Part 2 – Starting to explore

by James O’Neill on March 3rd

The Graph API is a vast and powerful tool in MS’s cloud. With a little help from James, we can start to poke around at what it brings to the table. Make sure oyu check out pt 1 to see how the connection is built.

Connect to Microsoft Graph for Intune with Powershell ISE Add-ons

by Martin Bengtsson on March 4th

Keeping with the Graph theme, Martin has a great tool for you Intune admins that are still using ISE.

Meet Statusimo – PowerShell generated Status Page

by Przemyslaw Klys on March 6th

Building on his PSWriteHTML module, Przemysław now unveils Statusimo, an impressive new module that can help you create professional looking status pages for your organization.

Google Authenticator in PowerShell

by HumanEquivalentUnit on March 7th

This is pretty cool! Don’t want to take out your phone to handle your 2FA login with Google? Get it in the shell!

PowerShell Line Counting

by Joel Bennett on March 6th

Asking how many lines are in a script is easy enough to answer but what about from PowerShell’s perspective? Joel uses the AST to find out how the PowerShell parser handles this.

Tweet of the Week

Not all heroes wear capes but umm… Somebody needs to buy Taylor Leonhardt a cape. With this little adjustment to VSCode, double-clicking a variable will now include the $ sign.

Youtube: How to do Test Driven Development/Design in PowerShell

Doug Finke gives a quick demo on how he approaches test-driven development.

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: