First Code in PowerShell!!!

Writing the first code in PowerShell is very interesting.

How to load PowerShell:

  1. Point the mouse to the start button
  2. Right-click on the button
  3. From the given menu, select and click on the PowerShell Admin
  4. Change to the main C directory by typing cd..
  5. Press the enter key once
  6. Repeat step 4 and press the enter key again once

ALTERNATIVE 2

  • In the search bar, type PowerShell
  • Press the enter key once

THE FIRST CODE IN POWERSHELL

After the PowerShell has been launched, please need the system with the following commands:

line1

Write-Host "Hello, World!"

Press the enter key once.

NOTE:

  • Save the file with an extension. ps
  • Ensure to enter your filename first, for example, SURF.PS

Conclusion:

Congratulations! You have finally written your first code using PowerShell. More great advanced topics and lessons follow after those as mentioned earlier.

 

Related posts:

About Author


Discover more from SURFCLOUD TECHNOLOGY

Subscribe to get the latest posts sent to your email.

Leave a Reply

Your email address will not be published. Required fields are marked *

Discover more from SURFCLOUD TECHNOLOGY

Subscribe now to keep reading and get access to the full archive.

Continue reading