To run a script with parameters you need to use the ...

[Pages:4] To run a script with parameters you need to use the example below. (Script Parameters in BLUE)

Add arguments:

?Noninteractive ?Noprofile -Nologo -ExecutionPolicy Bypass ?File "C:\Users\Administrator\Documents\WindowsPowerShell\Scripts\GetProvHardwareMaintOutdated.ps1" -DueDays 60 -ReportFolder "C:\ProvanceReports\"

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download