I want to run the following in a c# loop but I just don't know how to pass a multi value for a parameter with a comma. The actual cmdlet would be below and does work in exchange powershell:
Set-CalendarProcessing –ResourceDelegates [email protected],[email protected] -identity [email protected] –AutomateProcessing AutoUpdate
I know my code connection works but it's the "–ResourceDelegates [email protected],[email protected]" I don't know how to pass, shown below:
Sample part of the code is here:
command.AddCommand("Set-CalendarProcessing");
command.AddParameter("-ResourceDelegates", "[email protected],[email protected]");
command.AddParameter("-Identity", "[email protected]");
command.AddParameter("-AutomateProcessing", "AutoUpdate");
Thanks Steve