I have a PowerShell script that takes an array as an input parameter:
Param(
Parameter(Mandatory=$true)]
[System.String[]] $Adapters
)
Write-Output "Disabling network adapter(s)."
foreach ($adapter in $Adapters) {
Disable-NetAdapterBinding -Name $adapter -ComponentID ms_tcpip6
Write-Host $adapter
}
I get the following error when I call the function from an MDT 2013 task sequence:
+ ..."E:\Deploy\Scripts\Disable-IPV6.ps1" -Adapters @(Teamed_NIC1, Teamed_... Missing argument in parameter list.
This is what my call to the function in MDT 2013 looks like:
I suspect that MDT is handling the quotation marks in an unexpected way.