Hi everyone.
I'm fairly new to PowerShell. I was tasked with verifying all of our scripts run in PowerShell 7. Currently they are running in PowerShell 5. When used in PowerShell 5, the Get-NcVol command works perfectly, but in PowerShell 7 it misses nearly all of our volumes. I installed the latest version of NetApp PowerShell Toolkit (ver. 9.17.1), but no change. I'm puzzled by this behavior.
The main issue right now is the command: Get-NcVol.
Example: PowerShell 5.
PS C:\Users\_dhiggins> $volumes = Get-NcVol
PS C:\Users\_dhiggins> $volumes.count
566 <-- this is correct
Example: PowerShell 7:
PS C:\Users\_dhiggins> $volumes = Get-NcVol
PS C:\Users\_dhiggins> $volumes.count
23 <-- Why?? Nothing changed.
We are using Windows Server 2022 Standard, ver. 21H2 (PowerShell 7 is running in Visual Studio Code), fully updated.
Has anyone encountered this? Do I need to use the Get-NcVol command differently in PS7?? I am unable to find a solution. I contacted NetApp and they directed me here.
Thank you, Doug