Skip to content
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