PowerShell SnippetRace 34-2021

$MyInvocation, MSInfo32, VS-Code, Multi-Value Arrays

Events

  • Expertslive Konferenz 3. September
    Full Day event with all around Azure, OnPrem and M365, stay tuned on www.expertslive.at.

Snippets

Doing more aith $MyInvocation

Running a Script of function always generates the $MyInvocation automatic variable. It isnt very well documented, but pretty usefull. Spend 30 Minutes reading this blog and you will change your way of scripting forever.

Generating System reports with MSInfo32 and PowerShell

I did start my IT-carreer with MS-DOS 3.x and saw the raise of windows since Windows 3.0. It seems to ms MSInfo32 was there forever to generate reports of the system environment.
Read the blog from Adam Listek and learn how to create system reports.

VS-Code Extension update

Microsoft is working extensively to make VS-Code the better ISE. With the new PowerShell VS-Code extension your coding live should be much easier. Read the updates here.

How to create Multi-Value Arrays

We all know to create arrays (simple data fields). If it comes to more complex data structures Serkar Aydin made some thoughts on combining Arrays and Hashtables, which makes „multi-value-arrays. You should definetely give this a try !

Regards/Roman

Thanks for the picture to Clark Tibbs on Unsplash