I have a strange problem, i have a very simple function.
This is my powershell code
$exclude = @()
function GetOracleDb {
param([string]$servername)
$exclude += $servername
}
GetOracleDb "Myserver2"
$exclude
Why my $exclude array is empty?
Thanks for your help