I would like to use a variable with variable name in 2 examples
Example 1:
$Myvalue1 = "$AutomateProcessing"
I want to put $false
in my variable $AutomateProcessing
using
$"$Myvalue1" = $false
(in place of $AutomateProcessing = $false
)
Example 2:
$Myvalue2 = "AutomateProcessing"
Get-EXOMailbox $MyMBX | set-CalendarProcessing -$Myvalue2 $MyConfig
(in place of Get-EXOMailbox $MyMBX | set-CalendarProcessing -AutomateProcessing $MyConfig
)
With this, I could create a loop with a lot of parameters I want to modifiy.
Is it possible to do with PowerShell?
Thank you in advance