Hello
I'm using remote vb-scripts in the run once command of sysprep. Since the version 2.x this part of the vm customization wizard does not work. It starts only the cmd-window, without the second part of the command. This means, my script does not start.
I updated the infrastructure to v2.0.2. Since I've done this, we're not able to enter "\" in the "run once" window. The customization wizard does show an error:
Check if the name is properly formatted. Please use alphanumeric characters from a-z, A-Z and 0-9.[/i]
How can I use my remote vb-script like it was possible in VC 1.4?
Thanks,
Miguel
Remeber that if you use spacs you must quote!
If your command include spaces use double quotes in windows.
like exec "c:\My script.bat"
I didn't want you to enter spaces. Removing them would be better if you have any in the parameters.
Please gimme the parameters you entered for the customization.
I have exactly the same problem. Never had this issue with 2.0.1 - I am trying to specify a full path to a batch file, as follows:
c:\script\startup.cmd
It does not like the backslashes - however this is a completely valid runonce entry for sysprep.
Must be a bug, anyone seen a patch for this specific issue???
Thanks
Hmm. Could be a bug.
Try using quoting " or ' try using path variables like %System root% or something else
Hello,
I had the same issues. I did the following workaround. I created a batch file called master.cmd and put it to C:\windows\system32.
Afterwards I just specified master.cmd in the Customization Wizzard.
The master script itself executes other scripts via start /wait C:\somewhereElse\scriptForASpecificProblem.cmd
The major drawback of this workaround ist that the selection which scripts are executed is done in the template's operating system and not in the guest customization wizzard template.
With best regards
The way around this bug without having to modify your templates etc is to manually edit the xml specification file.
1)Create a specification file, for the runonce, just enter the name of the file to run(no path)
2)In the VI Client, select Edit>Customization Specifications
3)Right-Click and export the spec file you want, edit the file locally and change the runonce to the full path of the file and save it
4)Using the Customization specifications window, import it back in.