I am attempting to run a powershell script with parameters. If I was running it from the powershell command line I would do this:
E:\scripts\truncate-table.ps1 -server "localhost" -database "FIMData" -table "View500ADReporting_Delta"
I have tried to use the Powershell Function Operation.
First I am confused by "Module path" which sounds like might mean a PSSnapin. I assume this is supposed to mean script and enter "E:\scripts\truncate-table.ps1"
Next I am confused by "Function name". In the documentation there is a picture where the word "Execute" has been entered here. I tried that but wasn't too surprised when I got an error. I also cannot leave it blank.
Finally I enter this for the parameters:
So the question is: how am I supposed to fill in the fields so it calls the script with the parameters?
I think the documentation may need clarity. Also the form should be redesigned so someone who knows about powershell scripts, but not about "modules", can figure it out.
Customer support service by UserEcho