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

Reply
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

Reply
0 Kudos