VMware Cloud Community
trevor12087
Contributor
Contributor

Question concerning -RescanAllHba & -RescanVmfs

When I use -RescanAllHba & -RescanVmfs to rescan for datastores on a host, will my next command wait until the rescan if fully complete?

If not, is there a way to ensure that the next part of my script does not continue until the datastores have been updated?

Thanks

0 Kudos
1 Reply
LucD
Leadership
Leadership

Normally, the script will wait till the scan is completed.

Note that there is no RunAsync switch on the Get-VMHostStorage cmdlet.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos