PureStorage-OpenConnect / powershell-toolkit

The Pure Storage PowerShell Toolkit provides a number of different cmdlets ranging from core Windows Server, WMI, WSMAN, & .NET assemblies. The intention of the toolkit is to provide a library for customers and the Pure Storage field to use in troubleshooting, FlashArray reporting & other useful scenarios.
Apache License 2.0
22 stars 6 forks source link

iSCSI tests in Test-WindowsBestPractices errors on nic with spaces in name #61

Closed mikenelson-io closed 2 years ago

mikenelson-io commented 2 years ago

Any NICs retrieved with a name that contains spaces (ex. "SLOT 1 Port 2") cause the Get-NetAdapaterAdvancedProperty cmdlet to fail with the -AllProperties parameter. Around line 3017.

mikenelson-io commented 2 years ago

Fix is to not use quotes around name. Use SLOT 1 Port 2, not "SLOT 1 Port 2". For multiple entries (likely), use: SLOT 1 Port 1,SLOT 1 Port 2