Hi,
I am unable to set the setting for below script as I am getting the output as below
Please help!!
Get-VMHost ESX01 | ForEach-Object -Process {
$esxcli = Get-EsxCli -VMHost $_ -V2
$esxcli.storage.nmp.device.list.Invoke() | where { $_.Device -match "^eui\.\w{16}(6c9ce9|6C9CE9)\w{10}"} |
ForEach-Object -Process {
$sSet = @{
device = $_.device
psp = 'VMW_PSP_RR'
}
$esxcli.storage.nmp.device.set.CreateArgs()
}
}
Output
You should call the Invoke method instead of the CreateArgs method.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
You should call the Invoke method instead of the CreateArgs method.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Got it...Thank you very much