Passing Parameters to a PowerShell Script

Passing Parameters to a PowerShell Script

Hello

I have a PowerShell script (defined in OpManager as Script Template), as mentioned in the help I can pass the IP and the name of the device using the command line (cmd /c powershell.exe -ExecutionPolicy Unrestricted .\${FileName}.ps1 -serverIP ${IPAddress} -serverName ${DeviceName})

My script will be called by different devices, the question is, can I pass other parameters to that script.

For know, I have to copy the script for each device, and in each version I am specifying different values for the variables.

Thanks,
Ridwan

                New to ADSelfService Plus?