s
sri kanth

Posted on 25th February 2024|62 views

0
votes

Powershell Default Parameter

How to Create and Use default Parameters in Powershell?

Answers
P
jordan chris

Posted on 25th February 2024

In Powershell, We can use default arguments through the automatic variable “$args”. “$args” variable contains unnamed arguments, and they are given to the PowerShell script, while it is running. By passing the path of the script to the “$args” variable, we can create the default parameters.

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo
  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos