Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 176483

VCD Guest Customization fail to complete before vmtools reboots Server

$
0
0

Hi All,

 

Looking for some help. I am attempting to run a powershell script at post customization. This script works fine if run standalone. The issue I can see from the logs is the vmware tools marks the script as complete once run the initiates a system reboot. This obviously stops my powershell from finishing. The script is copying files to the guest to then perform an install.

 

So my question is does anyone know how to either stop vmtools from initiating the reboot until my script is finished or how to to tell my script to stop the vmtools from starting the reboot. I still want the tools to finish, but not until my script is done.

 

I have tried adding various command to the script with no joy, i think this is because vmtools starts the power shell command then considers/marks it complete and moves on regardless of what is happening. This is for Windows 2008 R2 servers and im using VCD 5.1.

 

Any ideas would be appreciated.

 

Paul

 

Message was edited by: Cart3r This is the customization script under the properties for the VM @echo off if "%1%" == "precustomization" ( echo Do precustomization tasks ) else if "%1%" == "postcustomization" ( echo Do postcustomization tasks powershell.exe -ExecutionPolicy Unrestricted -file C:\vCD\install-local-agent.ps1 )


Viewing all articles
Browse latest Browse all 176483

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>