added message fir get-credential to know which host we are on

This commit is contained in:
2023-03-11 12:14:15 -05:00
parent e066cc3c31
commit 7e1cf65dd4

View File

@@ -16,7 +16,7 @@ $esxiHosts = @(
# Loop through each host
foreach ($esxiHost in $esxiHosts) {
#New-VICredentialStoreItem -host $esxiHost -user root -pass ((get-credential).GetNetworkCredential().password); continue
#New-VICredentialStoreItem -host $esxiHost -user root -pass ((get-credential -Message $esxiHost).GetNetworkCredential().password); continue
# Only move forward if host is online or else the rename will rename the host folder
if (Test-Connection -Count 1 -Quiet $esxiHost) {