diff --git a/docs/Build-Virtual-Machine-on-ESXi-with-Windows-Worker.html b/docs/Build-Virtual-Machine-on-ESXi-with-Windows-Worker.html index 3c4ecc9..636557c 100644 --- a/docs/Build-Virtual-Machine-on-ESXi-with-Windows-Worker.html +++ b/docs/Build-Virtual-Machine-on-ESXi-with-Windows-Worker.html @@ -1037,46 +1037,46 @@
-if ${{virtualMachineBootLoaderIsBios}}
-then
-
- $ErrorActionPreference = "Stop"
- Import-Module VMware.VimAutomation.Core
-
- Connect-VIServer {vmwareVcenterNode.ip} `
- -User {vmwareVcenterUser.user} `
- -Password {vmwareVcenterUser.password}
-
- if ($? -eq $false) {
- Write-Host "Error: Not connected."
- exit 1
- }
-
- $vm = Get-VM -Name "{newVmNode.fqn}"
-
- # the device name of the hard disk to which to boot
- $strBootHDiskDeviceName = "Hard disk 1"
-
- # get the VirtualDisk device, then grab its Key (DeviceKey, used later)
- $intHDiskDeviceKey = ($vm.ExtensionData.Config.Hardware.Device | ?{$_.DeviceInfo.Label -eq $strBootHDiskDeviceName}).Key
-
- # bootable Disk BootOption device, for use in setting BootOrder (the corresponding VirtualDisk device is bootable, assumed)
- $oBootableHDisk = New-Object -TypeName VMware.Vim.VirtualMachineBootOptionsBootableDiskDevice -Property @{"DeviceKey" = $intHDiskDeviceKey}
-
- # bootable CDROM device (per the docs, the first CDROM with bootable media found is used)
- $oBootableCDRom = New-Object -Type VMware.Vim.VirtualMachineBootOptionsBootableCdromDevice
-
- $spec = New-Object VMware.Vim.VirtualMachineConfigSpec -Property @{
- "BootOptions" = New-Object VMware.Vim.VirtualMachineBootOptions -Property @{
- BootOrder = $oBootableHDisk, $oBootableCDRom
- } # end new-object
- } # end new-object
-
- # reconfig the VM to use the spec with the new BootOrder
- $vm.ExtensionData.ReconfigVM_Task($spec)
-
-else
- echo "Skipping for UEFI boot."
+if ${{virtualMachineBootLoaderIsBios}}
+then
+
+ $ErrorActionPreference = "Stop"
+ Import-Module VMware.VimAutomation.Core
+
+ Connect-VIServer {vmwareVcenterNode.ip} `
+ -User {vmwareVcenterUser.user} `
+ -Password {vmwareVcenterUser.password}
+
+ if ($? -eq $false) {
+ Write-Host "Error: Not connected."
+ exit 1
+ }
+
+ $vm = Get-VM -Name "{newVmNode.fqn}"
+
+ # the device name of the hard disk to which to boot
+ $strBootHDiskDeviceName = "Hard disk 1"
+
+ # get the VirtualDisk device, then grab its Key (DeviceKey, used later)
+ $intHDiskDeviceKey = ($vm.ExtensionData.Config.Hardware.Device | ?{$_.DeviceInfo.Label -eq $strBootHDiskDeviceName}).Key
+
+ # bootable Disk BootOption device, for use in setting BootOrder (the corresponding VirtualDisk device is bootable, assumed)
+ $oBootableHDisk = New-Object -TypeName VMware.Vim.VirtualMachineBootOptionsBootableDiskDevice -Property @{"DeviceKey" = $intHDiskDeviceKey}
+
+ # bootable CDROM device (per the docs, the first CDROM with bootable media found is used)
+ $oBootableCDRom = New-Object -Type VMware.Vim.VirtualMachineBootOptionsBootableCdromDevice
+
+ $spec = New-Object VMware.Vim.VirtualMachineConfigSpec -Property @{
+ "BootOptions" = New-Object VMware.Vim.VirtualMachineBootOptions -Property @{
+ BootOrder = $oBootableHDisk, $oBootableCDRom
+ } # end new-object
+ } # end new-object
+
+ # reconfig the VM to use the spec with the new BootOrder
+ $vm.ExtensionData.ReconfigVM_Task($spec)
+
+else
+ echo "Skipping for UEFI boot."
fi
diff --git a/docs/Perform-Deploy-ESXi-Drivers-to-a-Drop-Directory-with-Windows-Worker.html b/docs/Perform-Deploy-ESXi-Drivers-to-a-Drop-Directory-with-Windows-Worker.html
index b70b98b..59ad1d2 100644
--- a/docs/Perform-Deploy-ESXi-Drivers-to-a-Drop-Directory-with-Windows-Worker.html
+++ b/docs/Perform-Deploy-ESXi-Drivers-to-a-Drop-Directory-with-Windows-Worker.html
@@ -206,8 +206,16 @@ - - Step 1 - Deploy ESXi Drivers to a Drop Directory with Windows Worker + + Step 1 - Deploy ESXi Drivers with Windows Worker + +
+ + + ++ + Step 2 - Move ESXi Drivers to Drop Directory with Windows Worker
@@ -301,9 +309,9 @@-
Deploys ESXi drivers to the drivers drop in directory at {automationWorkerWindowsBaseDirectory}/drivers-{newVmNode.fqn}
.
Deploys ESXi drivers to /c$/software/drivers-{newVmNode.fqn}
.
-{automationWorkerWindowsBaseDirectory}/drivers-{newVmNode.fqn}, relative to the home directory
+/c$/software/drivers-{newVmNode.fqn}
+ Execute the following script: +
+
+
+$CURRENT_PATH = "C:\software\drivers-{newVmNode.fqn}"
+$DEST_FOLDER = "{automationWorkerWindowsBaseDirectory}"
+
+Write-Host "CURRENT_PATH=${CURRENT_PATH}\n DEST_FOLDER=${DEST_FOLDER}"
+Move-Item -Path "${CURRENT_PATH}" -Destination "${DEST_FOLDER}"
+
+
+