Forum Discussion

SMKCS's avatar
SMKCS
Copper Contributor
Mar 04, 2021

Get-VirtualDisk | Where-Object ResiliencySettingName -eq Parity

Hello Geeks,

 

I'm not familiar with powershell, Can somebody help me to understand this command please. why and where and when this command will be used.

"powershell.exe -ExecutionPolicy Restricted -Command "$Res = 0; $VDisks = (Get-VirtualDisk | Where-Object ResiliencySettingName -eq Parity); if ($null -ne $VDisks) { $Res = 1 }; Write-Host 'Final result:',$Res;]"

 

Best Regards,

Kumar

 

Resources