2 years ago
#6417
l.jablonski
Microsoft Deployment Workbench chocolatey problem
I am currently testing Microsoft Deployment Workbench for automated Windows installation.
I have created a workflow with Windows 11 and would like to install the various programs via chocolatey after the Windows 11 installation.
Here you can see my workflow:
chocolatey is installed with a
.bat
script using:command line:
cmd.exe /c "%SCRIPTROOT%\BTNHD\chocoinstall.bat"
with the following content:
@powershell -noProfile -ExecutionPolicy unrestricted -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
then we restart the computer
then the script is started with the different programs, which looks like this:
command line:
cmd.exe /c "%SCRIPTROOT%\BTNHD\installtemplate.bat"
with the following content:
choco install firefox --yes choco install vlc --yes
Unfortunately it installs only the first software in the list at step 3, in my case Firefox and after that it takes a while and aborts with these error messages:
Now I have already tried the following things:
- the reboot removed unfortunately no improvement
- for each program a separate script and accordingly a separate installation step
- tested other programs
- changed the script
unfortunately there is nothing in the chocolatey log that can help me.
If I start the script manually, but everything works fine. I currently do not know what to do and hope someone can help me, if there is any information missing, please let me know.
Thank you!
windows
batch-file
deployment
server
chocolatey
0 Answers
Your Answer