I have a hash table like this:
$Arguments = @{
Name = $DataSourceName
DriverName = "MS Access"
SetPropertyValue = @(
"Server=$ServerIpAddress",
"Description=$Description"
"CurrentDomain=$DomainName"
)
ErrorAction = 'Stop'
}
If I want to insert entries into the array SetPropertyValue. How can I achieve this? I tried:
$Arguments.SetPropertyValue.Add("Database=$DatabaseName")
But this does not work.
Add()method (see Microsoft Docs).