Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Bob Tanner
packer-windows
Commits
e88c9a83
Unverified
Commit
e88c9a83
authored
Sep 02, 2017
by
Stefan Scherer
Browse files
Revert "Update sysprep command, remove unattend.xml"
This reverts commit
dd992ccb
.
parent
dd992ccb
Changes
3
Show whitespace changes
Inline
Side-by-side
README-shutdown_command.md
View file @
e88c9a83
...
@@ -9,7 +9,7 @@ Normally we use something like this to shutdown the VM in packer.
...
@@ -9,7 +9,7 @@ Normally we use something like this to shutdown the VM in packer.
Replace it with
Replace it with
```
json
```
json
"shutdown_command"
:
"c:/windows/system32/sysprep/sysprep.exe
/oobe
/generalize /
shutdown /mode:vm
"
,
"shutdown_command"
:
"c:/windows/system32/sysprep/sysprep.exe /generalize /
oobe /quiet /shutdown /unattend:a:/unattend.xml
"
,
```
```
O
n the first
`vagrant up`
the box will boot with an out-of-box-experience (OOBE)
and o
n the first
`vagrant up`
the box will boot with an out-of-box-experience (OOBE)
scripts/unattend.xml
0 → 100644
View file @
e88c9a83
<?xml version="1.0" encoding="utf-8"?>
<unattend
xmlns=
"urn:schemas-microsoft-com:unattend"
>
<settings
pass=
"generalize"
>
<component
name=
"Microsoft-Windows-Security-SPP"
processorArchitecture=
"amd64"
publicKeyToken=
"31bf3856ad364e35"
language=
"neutral"
versionScope=
"nonSxS"
xmlns:wcm=
"http://schemas.microsoft.com/WMIConfig/2002/State"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
>
<SkipRearm>
0
</SkipRearm>
</component>
<!--
<component name="Microsoft-Windows-PnpSysprep" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<PersistAllDeviceInstalls>false</PersistAllDeviceInstalls>
<DoNotCleanUpNonPresentDevices>false</DoNotCleanUpNonPresentDevices>
</component>
-->
</settings>
<settings
pass=
"oobeSystem"
>
<component
name=
"Microsoft-Windows-Shell-Setup"
processorArchitecture=
"amd64"
publicKeyToken=
"31bf3856ad364e35"
language=
"neutral"
versionScope=
"nonSxS"
xmlns:wcm=
"http://schemas.microsoft.com/WMIConfig/2002/State"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
>
<OOBE>
<HideEULAPage>
true
</HideEULAPage>
<ProtectYourPC>
3
</ProtectYourPC>
<NetworkLocation>
Work
</NetworkLocation>
<HideWirelessSetupInOOBE>
true
</HideWirelessSetupInOOBE>
<SkipUserOOBE>
true
</SkipUserOOBE>
<SkipMachineOOBE>
true
</SkipMachineOOBE>
</OOBE>
<AutoLogon>
<Password>
<Value>
vagrant
</Value>
<PlainText>
true
</PlainText>
</Password>
<Enabled>
true
</Enabled>
<LogonCount>
1
</LogonCount>
<Username>
vagrant
</Username>
</AutoLogon>
</component>
</settings>
<settings
pass=
"specialize"
>
<component
name=
"Microsoft-Windows-Shell-Setup"
processorArchitecture=
"amd64"
publicKeyToken=
"31bf3856ad364e35"
language=
"neutral"
versionScope=
"nonSxS"
xmlns:wcm=
"http://schemas.microsoft.com/WMIConfig/2002/State"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
>
<ComputerName>
vagrant-2012
</ComputerName>
<CopyProfile>
false
</CopyProfile>
</component>
</settings>
</unattend>
windows_2012_r2.json
View file @
e88c9a83
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
"./scripts/disable-winrm.ps1"
,
"./scripts/disable-winrm.ps1"
,
"./scripts/enable-winrm.ps1"
,
"./scripts/enable-winrm.ps1"
,
"./scripts/microsoft-updates.bat"
,
"./scripts/microsoft-updates.bat"
,
"./scripts/unattend.xml"
,
"./scripts/win-updates.ps1"
"./scripts/win-updates.ps1"
],
],
"vmx_data"
:
{
"vmx_data"
:
{
...
@@ -54,6 +55,7 @@
...
@@ -54,6 +55,7 @@
"./scripts/disable-winrm.ps1"
,
"./scripts/disable-winrm.ps1"
,
"./scripts/enable-winrm.ps1"
,
"./scripts/enable-winrm.ps1"
,
"./scripts/microsoft-updates.bat"
,
"./scripts/microsoft-updates.bat"
,
"./scripts/unattend.xml"
,
"./scripts/win-updates.ps1"
,
"./scripts/win-updates.ps1"
,
"./scripts/oracle-cert.cer"
"./scripts/oracle-cert.cer"
],
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment