Skip to content

Instantly share code, notes, and snippets.

@ProtoDroidBot
Last active May 3, 2019 16:24
Show Gist options
  • Save ProtoDroidBot/c71b842f04b5872ece72578ae776db05 to your computer and use it in GitHub Desktop.
Save ProtoDroidBot/c71b842f04b5872ece72578ae776db05 to your computer and use it in GitHub Desktop.
DEBUGforDetectionLab-Packer-050319-partialbuildsuccess
PS F:\1-Store\5-DetectionLabTEST1\DetectionLab-master> .\build.ps1 virtualbox -PackerPath C:\HashiCorp\Vagrant\bin\packer.exe
[preflight_checks] Running..
[preflight_checks] Checking if Packer is installed
[preflight_checks] Checking for bad packer version..
[preflight_checks] Checking if Vagrant is installed
[preflight_checks] Checking for pre-existing boxes..
[preflight_checks] Checking for vagrant instances..
[preflight_checks] Checking disk space..
[preflight_checks] Checking if vagrant-reload is installed..
The vagrant-reload plugin is required and not currently installed. This script will attempt to install it now.
Installing the 'vagrant-reload' plugin. This can take a few minutes...
Installed the plugin 'vagrant-reload (0.0.1)'!
[preflight_checks] Finished.
[packer_build_box] Running for windows_2016
Using Packer to build the windows_2016 Box. This can take 90-180 minutes depending on bandwidth and hardware.
virtualbox-iso output will be in this color.
==> virtualbox-iso: Retrieving ISO
==> virtualbox-iso: Trying https://software-download.microsoft.com/download/pr/Windows_Server_2016_Datacenter_EVAL_en-us_14393_refresh.ISO
==> virtualbox-iso: Trying https://software-download.microsoft.com/download/pr/Windows_Server_2016_Datacenter_EVAL_en-us_14393_refresh.ISO?checksum=md5%3A70721288BBCDFE3239D8F8C0FAE55F1F
==> virtualbox-iso: https://software-download.microsoft.com/download/pr/Windows_Server_2016_Datacenter_EVAL_en-us_14393_refresh.ISO?checksum=md5%3A70721288BBCDFE3239D8F8C0FAE55F1F => F:\1-Store\5-DetectionLabTEST1\DetectionLab-master\Packer\packer_cache\5b1055098d7ba8d2d635babf6bb76518512afbde.iso
==> virtualbox-iso: leaving retrieve loop for ISO
==> virtualbox-iso: Creating floppy disk...
virtualbox-iso: Copying files flatly from floppy_files
virtualbox-iso: Copying file: ./answer_files/2016/Autounattend.xml
virtualbox-iso: Copying file: ./floppy/WindowsPowershell.lnk
virtualbox-iso: Copying file: ./floppy/PinTo10.exe
virtualbox-iso: Copying file: ./scripts/unattend.xml
virtualbox-iso: Copying file: ./scripts/sysprep.bat
virtualbox-iso: Copying file: ./scripts/disable-screensaver.ps1
virtualbox-iso: Copying file: ./scripts/disable-winrm.ps1
virtualbox-iso: Copying file: ./scripts/enable-winrm.ps1
virtualbox-iso: Copying file: ./scripts/microsoft-updates.bat
virtualbox-iso: Copying file: ./scripts/win-updates.ps1
virtualbox-iso: Copying file: ./scripts/oracle-cert.cer
virtualbox-iso: Done copying files from floppy_files
virtualbox-iso: Collecting paths from floppy_dirs
virtualbox-iso: Resulting paths from floppy_dirs : []
virtualbox-iso: Done copying paths from floppy_dirs
==> virtualbox-iso: Creating ephemeral key pair for SSH communicator...
==> virtualbox-iso: Created ephemeral SSH key pair for communicator
==> virtualbox-iso: Creating virtual machine...
==> virtualbox-iso: Creating hard drive...
==> virtualbox-iso: Attaching floppy disk...
==> virtualbox-iso: Creating forwarded port mapping for communicator (SSH, WinRM, etc) (host port 3546)
==> virtualbox-iso: Executing custom VBoxManage commands...
virtualbox-iso: Executing: modifyvm WindowsServer2016 --memory 2048
virtualbox-iso: Executing: modifyvm WindowsServer2016 --cpus 2
==> virtualbox-iso: Starting the virtual machine...
==> virtualbox-iso: Waiting 2m0s for boot...
==> virtualbox-iso: Typing the boot command...
==> virtualbox-iso: Using winrm communicator to connect: 127.0.0.1
==> virtualbox-iso: Waiting for WinRM to become available...
==> virtualbox-iso: Connected to WinRM!
virtualbox-iso: WinRM connected.
==> virtualbox-iso: #< CLIXML
==> virtualbox-iso: <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj><Obj S="progress" RefId="1"><TNRef RefId="0" /><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>
==> virtualbox-iso: Uploading VirtualBox version info (6.0.6)
==> virtualbox-iso: Provisioning with windows-shell...
==> virtualbox-iso: Provisioning with shell script: ./scripts/vm-guest-tools.bat
virtualbox-iso: C:\Users\vagrant>if not exist "C:\Windows\Temp\7z920-x64.msi" (powershell -Command "Start-Sleep 5; Invoke-WebRequest -Uri 'https://astuteinternet.dl.sourceforge.net/project/sevenzip/7-Zip/9.20/7z920-x64.msi' -Outfile 'C:\Windows\Temp\7z920-x64.msi'" 0<NUL )
virtualbox-iso: C:\Users\vagrant>if not exist "C:\Windows\Temp\7z920-x64.msi" (powershell -Command "Start-Sleep 5; Invoke-WebRequest -Uri 'http://www.7-zip.org/a/7z920-x64.msi' -Outfile 'C:\Windows\Temp\7z920-x64.msi')" 0<NUL )
virtualbox-iso: C:\Users\vagrant>msiexec /qb /i C:\Windows\Temp\7z920-x64.msi
virtualbox-iso: C:\Users\vagrant>if "virtualbox-iso" EQU "vmware-iso" goto :vmware
virtualbox-iso: C:\Users\vagrant>if "virtualbox-iso" EQU "virtualbox-iso" goto :virtualbox
virtualbox-iso: C:\Users\vagrant>if exist "C:\Users\vagrant\VBoxGuestAdditions.iso" (move /Y C:\Users\vagrant\VBoxGuestAdditions.iso C:\Windows\Temp )
virtualbox-iso: C:\Users\vagrant>if not exist "C:\Windows\Temp\VBoxGuestAdditions.iso" (powershell -Command "(New-Object System.Net.WebClient).DownloadFile('http://download.virtualbox.org/virtualbox/5.2.16/VBoxGuestAdditions_5.2.16.iso', 'C:\Windows\Temp\VBoxGuestAdditions.iso')" 0<NUL )
virtualbox-iso: C:\Users\vagrant>cmd /c ""C:\Program Files\7-Zip\7z.exe" x C:\Windows\Temp\VBoxGuestAdditions.iso -oC:\Windows\Temp\virtualbox"
virtualbox-iso: 7-Zip [64] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
virtualbox-iso: Processing archive: C:\Windows\Temp\VBoxGuestAdditions.iso
virtualbox-iso: Extracting 32Bit
virtualbox-iso: Extracting 32Bit\Readme.txt
virtualbox-iso: Extracting 64Bit
virtualbox-iso: Extracting 64Bit\Readme.txt
virtualbox-iso: Extracting AUTORUN.INF
virtualbox-iso: Extracting OS2
virtualbox-iso: Extracting OS2\VBoxControl.exe
virtualbox-iso: Extracting OS2\VBoxGuest.sys
virtualbox-iso: Extracting OS2\VBoxReplaceDll.exe
virtualbox-iso: Extracting OS2\VBoxService.exe
virtualbox-iso: Extracting OS2\gengradd.dll
virtualbox-iso: Extracting OS2\libc06.dll
virtualbox-iso: Extracting OS2\libc061.dll
virtualbox-iso: Extracting OS2\libc062.dll
virtualbox-iso: Extracting OS2\libc063.dll
virtualbox-iso: Extracting OS2\libc064.dll
virtualbox-iso: Extracting OS2\libc065.dll
virtualbox-iso: Extracting OS2\libc066.dll
virtualbox-iso: Extracting OS2\readme.txt
virtualbox-iso: Extracting OS2\vboxmouse.sys
virtualbox-iso: Extracting VBoxLinuxAdditions.run
virtualbox-iso: Extracting VBoxSolarisAdditions.pkg
virtualbox-iso: Extracting VBoxWindowsAdditions.exe
virtualbox-iso: Extracting VBoxWindowsAdditions-amd64.exe
virtualbox-iso: Extracting VBoxWindowsAdditions-x86.exe
virtualbox-iso: Extracting autorun.sh
virtualbox-iso: Extracting cert
virtualbox-iso: Extracting cert\VBoxCertUtil.exe
virtualbox-iso: Extracting cert\vbox-sha1.cer
virtualbox-iso: Extracting cert\vbox-sha256.cer
virtualbox-iso: Extracting runasroot.sh
virtualbox-iso: Everything is Ok
virtualbox-iso: Folders: 4
virtualbox-iso: Files: 27
virtualbox-iso: Size: 57560865
virtualbox-iso: Compressed: 57976832
virtualbox-iso: C:\Users\vagrant>certutil -addstore -f "TrustedPublisher" C:\Windows\Temp\virtualbox\cert\vbox-sha256-r3.cer
virtualbox-iso: TrustedPublisher "Trusted Publishers"
virtualbox-iso: DecodeFile returned The system cannot find the file specified. 0x80070002 (WIN32: 2 ERROR_FILE_NOT_FOUND)
virtualbox-iso: CertUtil: -addstore command FAILED: 0x80070002 (WIN32: 2 ERROR_FILE_NOT_FOUND)
virtualbox-iso: CertUtil: The system cannot find the file specified.
virtualbox-iso: C:\Users\vagrant>certutil -addstore -f "TrustedPublisher" C:\Windows\Temp\virtualbox\cert\vbox-sha256.cer
virtualbox-iso: TrustedPublisher "Trusted Publishers"
virtualbox-iso: Certificate "Oracle Corporation" added to store.
virtualbox-iso: CertUtil: -addstore command completed successfully.
virtualbox-iso: C:\Users\vagrant>certutil -addstore -f "TrustedPublisher" C:\Windows\Temp\virtualbox\cert\vbox-sha1.cer
virtualbox-iso: TrustedPublisher "Trusted Publishers"
virtualbox-iso: Certificate "Oracle Corporation" added to store.
virtualbox-iso: CertUtil: -addstore command completed successfully.
virtualbox-iso: C:\Users\vagrant>cmd /c C:\Windows\Temp\virtualbox\VBoxWindowsAdditions.exe /S
virtualbox-iso: C:\Users\vagrant>rd /S /Q "C:\Windows\Temp\virtualbox"
virtualbox-iso: C:\Users\vagrant>goto :done
virtualbox-iso: C:\Users\vagrant>msiexec /qb /x C:\Windows\Temp\7z920-x64.msi
==> virtualbox-iso: Provisioning with shell script: ./scripts/enable-rdp.bat
virtualbox-iso: C:\Users\vagrant>netsh advfirewall firewall add rule name="Open Port 3389" dir=in action=allow protocol=TCP localport=3389
virtualbox-iso: Ok.
==> virtualbox-iso: Provisioning with Powershell...
==> virtualbox-iso: Provisioning with powershell script: ./scripts/debloat-windows.ps1
virtualbox-iso: Downloading debloat zip
virtualbox-iso: Disable Windows Defender
virtualbox-iso: Success Restart Needed Exit Code Feature Result
virtualbox-iso: ------- -------------- --------- --------------
==> virtualbox-iso: Restarting Machine
==> virtualbox-iso: Waiting for machine to restart...
==> virtualbox-iso: A system shutdown is in progress.(1115)
virtualbox-iso: VAGRANT-2016 restarted.
==> virtualbox-iso: #< CLIXML
==> virtualbox-iso: Machine successfully restarted, moving on
==> virtualbox-iso: <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>
==> virtualbox-iso: Provisioning with windows-shell...
==> virtualbox-iso: Provisioning with shell script: ./scripts/pin-powershell.bat
virtualbox-iso: C:\Users\vagrant>rem https://connect.microsoft.com/PowerShell/feedback/details/1609288/pin-to-taskbar-no-longer-working-in-windows-10
virtualbox-iso: C:\Users\vagrant>copy "A:\WindowsPowerShell.lnk" "C:\Users\vagrant\AppData\Local\Temp\Windows PowerShell.lnk"
virtualbox-iso: 1 file(s) copied.
virtualbox-iso: C:\Users\vagrant>A:\PinTo10.exe /PTFOL01:'C:\Users\vagrant\AppData\Local\Temp' /PTFILE01:'Windows PowerShell.lnk'
virtualbox-iso: C:\Users\vagrant>exit /b 0
==> virtualbox-iso: Provisioning with shell script: ./scripts/set-winrm-automatic.bat
virtualbox-iso: C:\Users\vagrant>echo Set WinRM start type to auto
virtualbox-iso: Set WinRM start type to auto
==> virtualbox-iso: Provisioning with shell script: ./scripts/compile-dotnet-assemblies.bat
virtualbox-iso: C:\Users\vagrant>sc config winrm start= auto
virtualbox-iso: [SC] ChangeServiceConfig SUCCESS
virtualbox-iso: C:\Users\vagrant>if "AMD64" == "AMD64" goto 64BIT
virtualbox-iso: C:\Users\vagrant>C:\Windows\microsoft.net\framework\v4.0.30319\ngen.exe update /force /queue 1>NUL
virtualbox-iso: C:\Users\vagrant>C:\Windows\microsoft.net\framework64\v4.0.30319\ngen.exe update /force /queue 1>NUL
virtualbox-iso: C:\Users\vagrant>C:\Windows\microsoft.net\framework\v4.0.30319\ngen.exe executequeueditems 1>NUL
virtualbox-iso: C:\Users\vagrant>C:\Windows\microsoft.net\framework64\v4.0.30319\ngen.exe executequeueditems 1>NUL
virtualbox-iso: C:\Users\vagrant>exit 0
==> virtualbox-iso: Provisioning with shell script: ./scripts/uac-enable.bat
virtualbox-iso: C:\Users\vagrant>reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /f /v EnableLUA /t REG_DWORD /d 1
virtualbox-iso: The operation completed successfully.
==> virtualbox-iso: Provisioning with shell script: ./scripts/compact.bat
virtualbox-iso: C:\Users\vagrant>if "virtua" == "hyperv" (
virtualbox-iso: echo "Skip compact steps in Hyper-V build."
virtualbox-iso: goto :eof
virtualbox-iso: )
virtualbox-iso: C:\Users\vagrant>if not exist "C:\Windows\Temp\7z920-x64.msi" (powershell -Command "(New-Object System.Net.WebClient).DownloadFile('http://www.7-zip.org/a/7z920-x64.msi', 'C:\Windows\Temp\7z920-x64.msi')" 0<NUL )
virtualbox-iso: C:\Users\vagrant>msiexec /qb /i C:\Windows\Temp\7z920-x64.msi
virtualbox-iso: C:\Users\vagrant>if not exist "C:\Windows\Temp\ultradefrag.zip" (powershell -Command "(New-Object System.Net.WebClient).DownloadFile('http://downloads.sourceforge.net/project/ultradefrag/stable-release/6.1.0/ultradefrag-portable-6.1.0.bin.amd64.zip', 'C:\Windows\Temp\ultradefrag.zip')" 0<NUL )
virtualbox-iso: C:\Users\vagrant>if not exist "C:\Windows\Temp\ultradefrag-portable-6.1.0.amd64\udefrag.exe" (cmd /c ""C:\Program Files\7-Zip\7z.exe" x C:\Windows\Temp\ultradefrag.zip -oC:\Windows\Temp" )
virtualbox-iso: 7-Zip [64] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
virtualbox-iso: Processing archive: C:\Windows\Temp\ultradefrag.zip
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\About.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\Analysis.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\bc_s.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\bdwn.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\BestPractice.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\Blank.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\Boot.html
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\BootTimeScan.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\BootTimeScript.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\closed.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\Compressed.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\Console.html
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\Credits.html
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\Credits.js
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\custom_doxygen.css
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\Defragment.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\Development.html
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\Directory.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\doxygen.css
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\dynsections.js
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\FAQ.html
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\FDL.html
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\fixed.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\Fragmented.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\FreeSpace.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\ftv2blank.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\ftv2cl.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\ftv2doc.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\ftv2folderclosed.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\ftv2folderopen.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\ftv2lastnode.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\ftv2link.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\ftv2mlastnode.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\ftv2mnode.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\ftv2mo.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\ftv2node.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\ftv2ns.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\ftv2plastnode.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\ftv2pnode.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\ftv2splitbar.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\ftv2vertline.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\FullOptimize.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\GPL.html
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\GUI.html
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\Help.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\index.html
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\Installation.html
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\Introduction.html
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\jquery.js
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\LGPL_2_0.html
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\LGPL_3_0.html
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\MFTzone.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\navtree.css
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\navtree.js
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\navtreeindex0.js
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\nav_f.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\nav_g.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\nav_h.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\NotFragmented.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\open.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\OptimizeMFT.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\Options.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\pages.html
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\Pause.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\QuickOptimize.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\removable.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\Repeat.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\Report.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\Reports.html
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\resize.js
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\Schedule.html
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\sflogo.gif
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\Stop.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\sync_off.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\sync_on.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\System.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\tabs.css
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\tab_a.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\tab_b.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\tab_h.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\tab_s.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\Tips.html
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\Troubleshooting.html
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\udefrag80x15-colored-light.gif
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\handbook\UnusedBlock.png
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\hibernate4win.exe
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\HISTORY.TXT
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Albanian.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Arabic.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Armenian.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Belarusian.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Bengali.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Bosnian.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Bulgarian.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Burmese (Padauk).lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Catalan.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Chinese (Simplified).lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Chinese (Traditional).lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Croatian.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Czech.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Danish.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Dutch.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\English (GB).lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\English (US).lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Estonian.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Farsi.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Filipino (Tagalog).lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Finnish.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\French.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Galician.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Georgian.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\German.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Greek.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Hebrew.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Hindi.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Hungarian.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Icelandic.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Iloko.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Indonesian (Bahasa Indonesia).lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Indonesian.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Italian.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Japanese.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Javanese.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Kapampangan.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Korean.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Latin.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Latvian.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Lithuanian.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Macedonian.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Malay.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Norwegian.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Polish.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Portuguese (BR).lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Portuguese.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Romanian.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Russian.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Serbian.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Slovak.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Slovenian.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Spanish (AR).lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Spanish (ES).lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Spanish (MEX).lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Swedish.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Tamil.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Thai.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\translation.template
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Turkish.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Ukrainian.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Vietnamese.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Waray-Waray.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\i18n\Yiddish.lng
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\lua5.1a.dll
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\lua5.1a.exe
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\lua5.1a_gui.exe
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\options
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\options.lua
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\options\readme.txt
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\README.TXT
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\scripts
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\scripts\udreport.css
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\scripts\udreportcnv.lua
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\scripts\udsorting.js
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\scripts\upgrade-options.lua
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\udefrag.dll
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\udefrag.exe
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\ultradefrag.exe
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\wgx.dll
virtualbox-iso: Extracting ultradefrag-portable-6.1.0.amd64\zenwinx.dll
virtualbox-iso: Everything is Ok
virtualbox-iso: Folders: 5
virtualbox-iso: Files: 166
virtualbox-iso: Size: 2433004
virtualbox-iso: Compressed: 768893
virtualbox-iso: C:\Users\vagrant>if not exist "C:\Windows\Temp\SDelete.zip" (
virtualbox-iso: powershell -Command "(New-Object System.Net.WebClient).DownloadFile('http://download.sysinternals.com/files/SDelete.zip', 'C:\Windows\Temp\SDelete.zip')" 0<NUL
virtualbox-iso: powershell -Command "(New-Object System.Net.WebClient).DownloadFile('https://vagrantboxes.blob.core.windows.net/box/sdelete/v1.6.1/sdelete.exe', 'C:\Windows\Temp\sdelete.exe')" 0<NUL
virtualbox-iso: )
virtualbox-iso: C:\Users\vagrant>if not exist "C:\Windows\Temp\sdelete.exe" (cmd /c ""C:\Program Files\7-Zip\7z.exe" x C:\Windows\Temp\SDelete.zip -oC:\Windows\Temp" )
virtualbox-iso: C:\Users\vagrant>msiexec /qb /x C:\Windows\Temp\7z920-x64.msi
virtualbox-iso: C:\Users\vagrant>net stop wuauserv
==> virtualbox-iso: The Windows Update service is not started.
virtualbox-iso: C:\Users\vagrant>rmdir /S /Q C:\Windows\SoftwareDistribution\Download
==> virtualbox-iso: More help is available by typing NET HELPMSG 3521.
virtualbox-iso: C:\Users\vagrant>mkdir C:\Windows\SoftwareDistribution\Download
==> virtualbox-iso: System error 1058 has occurred.
virtualbox-iso: C:\Users\vagrant>net start wuauserv
==> virtualbox-iso: The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.
virtualbox-iso: C:\Users\vagrant>if "virtualbox-iso" NEQ "hyperv-iso" (
virtualbox-iso: SET UD_LOG_FILE_PATH=C:\Windows\Temp\udefrag.log
virtualbox-iso: START /WAIT C:\Windows\Temp\ultradefrag-portable-6.1.0.amd64\udefrag.exe --optimize C:
virtualbox-iso: cmd /c C:\Windows\System32\reg.exe ADD HKCU\Software\Sysinternals\SDelete /v EulaAccepted /t REG_DWORD /d 1 /f
virtualbox-iso: cmd /c C:\Windows\Temp\sdelete.exe -q -z C:
virtualbox-iso: )
virtualbox-iso: The operation completed successfully.
virtualbox-iso: SDelete - Secure Delete v1.61
virtualbox-iso: Copyright (C) 1999-2012 Mark Russinovich
virtualbox-iso: Sysinternals - www.sysinternals.com
virtualbox-iso: SDelete is set for 1 pass.
Free space cleaned on C:\
virtualbox-iso: 1 drives zapped
==> virtualbox-iso: Uploading ./answer_files/2016/Autounattend_sysprep.xml => c:/Windows/Temp/Autounattend_sysprep.xml
==> virtualbox-iso: Gracefully halting virtual machine...
virtualbox-iso: C:\Users\vagrant>net stop tiledatamodelsvc
virtualbox-iso: The Tile Data model server service is stopping.
virtualbox-iso: The Tile Data model server service was stopped successfully.
virtualbox-iso: C:\Users\vagrant>c:\windows\system32\sysprep\sysprep.exe /generalize /oobe /shutdown /unattend:a:\unattend.xml
virtualbox-iso: Removing floppy drive...
==> virtualbox-iso: Preparing to export machine...
virtualbox-iso: Deleting forwarded port mapping for the communicator (SSH, WinRM, etc) (host port 3546)
==> virtualbox-iso: Exporting virtual machine...
virtualbox-iso: Executing: export WindowsServer2016 --output output-virtualbox-iso\WindowsServer2016.ovf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment