PowerShell SnippetRace 07/08-2023

List, enum, write-output, logged-on users, locked accounts

Events

  • In 2 weeks ! Exchange Online and PowerShell, Feb 23. 2023. ONLINE (Teams) only. Details are in the – Link
  • PowerShell and DevOps Summit. April 24-27, 2023. Link
  • Expertslive Konferenz June 21, 2023 Linz – Link

Snippets

List-type items and the enum statement

Patrick Grünauers blogposts always shine clarity and focus, and so does this one. Enums, most likely you see not very often in your scripts are a great way to deal with list-type items. Read his short blog and the examples and try yourself.

Write-Output – dont ignore – read the blogpost!

Write-Output might sound boring to you, but in the blogpost of Nicholas, there are some interesting examples! Or did you know hot to create a progress bar with Write-Output? Take 10 Minutes and learn new stuff with Write-output by reading this blogpost.

Unlock AD accounts with PowerShell

This one is for the day-do-day job of it-admins and service personell. Unlocking an account does happen often and is boring, so automation is a painkiller. Read Surender Kumars article on this topic and make your life easier.

View logged-on user in Windows

Another handy day-to-day topic which may help you to reduce boring tasks is this one. Leos Marek wrote a blog article to sole the problem of logged-on-users an a machine. Especially before reboot its goof to know if somebody is still on the machine. Read his blog and reproduce his thoughts.

Have a good one / R.

Foto von Alexandre Debiève auf Unsplash