PowerShell SnippetRace 25/26-2024

Clean, Logins, Inventory, Quotas

Events

The future of PowerShell remoting – PS Usergroup Austria Cafe with Danny Maertens from the PowerShell engineering Team – Juni 18th, register now.

Expertslive.at Konferenz, June 26th 2024, – www.expertslive.at

PowerShell Conference Europe 2024, June 24th – www.psconf.eu

Snippets

Understanding the „Clean“ block

PowerShell functions, and i mean really well-written functions have a BEGIN, PROCESS and END block. With PowerShell 7.3. the CLEAN block has been introduced to cleanup things the functions may have left over. Read Mike F. Robbins blog on the CLEAN blog and make it your default for future functions.

Track down user logons with PowerShell and XPath

A nice little journey to decompose a Windows Eventlog and dig down to specific information written by Adam Bertram.

Setting up OneDrive quotas in M365

Diskspace is and has ever been an expensive resource, so lets see how Patrick sets disk quotas with PowerShell.

Building a Computer Inventory report

Another „Adam Bertram“ today with a nice write-up on inventorizing computers and process the retreived data step-by-step. It also contains some CMI-queries and CSV output.

Have a great time / R.

Foto von Denny Müller auf Unsplash