Internet

Linux

MAC

PC General

Windows

NOTE! Before using any of those informations, be sure you read the Disclaimer! Thank you.

Home » Powershell

Use parameters to your Powershell scripts

Submitted by No Comment

here’s how to use parameters to your script

Ex: ./myscript.ps1-path “c: \ temp”-a value

Param ([string] $ path, [int] $ value)
Write-host “the path is: $ path and the value is $ value”

Tips and tutorials references:

how to use parameter for powershell scripts , powershell get temperature apc

Leave a Reply