PowerShell SnippetRace 12/13-2022

Storage, GPO, Log-Backup, Resolve-SID, Crescendo(GA)

Events and Workshops

  • April 25-29 2022 – PowerShell+DevOps Global Summit powershell.org
  • June 20-23 2022 – European PowerShell Conference in VIENNA psconf.eu
  • June 29th 2022 – Expertslive Konferenz www.expertslive.at
  • ARCHIVE: The PowerShell Workshop is now archived here.

Snippets

The PowerShell Storage module is shipped with Windows PowerShell, but not many people know about it. Surender Kumar dived into it and explains about dealing with partitions, USB-Disk formatting and a lot more down under at the storage-level. Give this a try before downloading the next bloatware to format your USB-disk.

Group Policies (GPO) coming with PowerShell 7 on Windows

Running PowerShell savely on Windows came as big security initiative with Windows PowerShell 5.1. With PowerShell 7 there is even one more setting „Console Session Configuration“. Learn in this blog how to configure Execution Policies, Logging, Transscriptions and help setting by reading this excellent blog.

Event Log Backup to SQL Express

Krishnamoorthi Gopal wrote a module named ADSecurityLogArchivingManager. It can log Security Event Log entries to SQL Express. Love it ! Read it and learn.

Resolve-SID

SIDs are acommony used representation of an object in Active Directory, bt unfortunately the SID doesnt tell us which person this is. Jeffrey Hicks wrote a smart function which resolves the SID to the appropriate user object.

Crescendo is generally available

One of the side-projects of the PowerShell team is Crescendo, a „development accelerator“. If you ask yourself why you whould wrap PowerShell around your well-known console commands ? The anwser is OBJECTS. GA ships with documentation, examples and bunch of semi-intelligence to build Crescendo commands fast and smooth.

Have a nice week ! R.

Photo by Atlas Kadrów on Unsplash