Windows Classroom Session – 25/Sept/2020

Powershell (Contd..)

  • Ensure Visual Studio code is installed
  • Install the Powershell Extension

Building Expressions Using Powershell Operators

  • -eq : equals
  • -ne : not equals
  • -gt : greater than
  • -lt : less than
  • -le : less than or equals to
  • -ge : greater than or equals to
  • -contains:

Conditionals & looping

  • Traditional way: Refer Here

  • Powershell New Approach:

    1. ForEach-Object cmdlet: Refer Here for the example with changes

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About learningthoughtsadmin