Skip to content

minor typo corrections, change to Credential auth #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Scripts/backup-esxi-host-configuration.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Keyword: Backup Configuration ESXi Host

$serverIp = Read-Host 'What is the server ip address:'
$path = Read-Host 'Give path where backup configuration will be stored:'
$serverPass = Read-Host 'What is the server root password:' -AsSecureString
$serverCred = Get-Credential -Message 'What is the server root password:' -UserName "root"
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false
Connect-VIServer serverip -user "root" -password $serverPass
Get-VMHostFirmware -vmhost serverip -BackupConfiguration -DestinationPath $path
Connect-VIServer $serverIp -Credential $serverCred
Get-VMHostFirmware -vmhost $serverIp -BackupConfiguration -DestinationPath $path