Commit 4c390dbc authored by Patrick Lang's avatar Patrick Lang

Fixing autounattend

parent 399cd2ee
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
<RequiresUserInput>true</RequiresUserInput> <RequiresUserInput>true</RequiresUserInput>
</SynchronousCommand> </SynchronousCommand>
<SynchronousCommand wcm:action="add"> <SynchronousCommand wcm:action="add">
<CommandLine>C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File a:\disable-winrm.ps1</CommandLine> <CommandLine>C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File e:\disable-winrm.ps1</CommandLine>
<Description>Disable WinRM</Description> <Description>Disable WinRM</Description>
<Order>3</Order> <Order>3</Order>
<RequiresUserInput>true</RequiresUserInput> <RequiresUserInput>true</RequiresUserInput>
...@@ -161,18 +161,18 @@ ...@@ -161,18 +161,18 @@
<!-- WITH WINDOWS UPDATES --> <!-- WITH WINDOWS UPDATES -->
<!-- <!--
<SynchronousCommand wcm:action="add"> <SynchronousCommand wcm:action="add">
<CommandLine>cmd.exe /c a:\microsoft-updates.bat</CommandLine> <CommandLine>cmd.exe /c e:\microsoft-updates.bat</CommandLine>
<Order>98</Order> <Order>98</Order>
<Description>Enable Microsoft Updates</Description> <Description>Enable Microsoft Updates</Description>
</SynchronousCommand> </SynchronousCommand>
<SynchronousCommand wcm:action="add"> <SynchronousCommand wcm:action="add">
<CommandLine>cmd.exe /c C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File a:\disable-screensaver.ps1</CommandLine> <CommandLine>cmd.exe /c C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File e:\disable-screensaver.ps1</CommandLine>
<Description>Disable Screensaver</Description> <Description>Disable Screensaver</Description>
<Order>99</Order> <Order>99</Order>
<RequiresUserInput>true</RequiresUserInput> <RequiresUserInput>true</RequiresUserInput>
</SynchronousCommand> </SynchronousCommand>
<SynchronousCommand wcm:action="add"> <SynchronousCommand wcm:action="add">
<CommandLine>cmd.exe /c C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File a:\win-updates.ps1</CommandLine> <CommandLine>cmd.exe /c C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File e:\win-updates.ps1</CommandLine>
<Description>Install Windows Updates</Description> <Description>Install Windows Updates</Description>
<Order>100</Order> <Order>100</Order>
<RequiresUserInput>true</RequiresUserInput> <RequiresUserInput>true</RequiresUserInput>
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
"builders": [ "builders": [
{ {
"boot_command": [ "boot_command": [
"<enter><enter>" "<enter>"
], ],
"boot_wait": "2s", "boot_wait": "1s",
"communicator": "winrm", "communicator": "winrm",
"cpu": 2, "cpu": 2,
"disk_size": "{{user `disk_size`}}", "disk_size": "{{user `disk_size`}}",
...@@ -124,7 +124,6 @@ ...@@ -124,7 +124,6 @@
"execute_command": "{{ .Vars }} cmd /c \"{{ .Path }}\"", "execute_command": "{{ .Vars }} cmd /c \"{{ .Path }}\"",
"scripts": [ "scripts": [
"./scripts/set-winrm-automatic.bat", "./scripts/set-winrm-automatic.bat",
"./scripts/compile-dotnet-assemblies.bat",
"./scripts/uac-enable.bat", "./scripts/uac-enable.bat",
"./scripts/compact.bat" "./scripts/compact.bat"
], ],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment