Skip to content
This repository was archived by the owner on May 6, 2025. It is now read-only.

Commit 445af93

Browse files
authored
Remove C:\script.bat inside sysprep.bat script (#117)
1 parent 3e8be0a commit 445af93

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "daily"
7-
labels:
8-
- "dependencies"
97
- package-ecosystem: "gitsubmodule"
108
directory: "/"
119
schedule:

my_windows.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"winrm_insecure": "true",
3434
"headless": "{{ user `headless` }}",
3535
"output_directory": "{{ user `name` }}-qemu",
36-
"shutdown_command": "del C:\\script.bat & A:\\sysprep.bat",
36+
"shutdown_command": "A:\\sysprep.bat",
3737
"shutdown_timeout": "15m",
3838
"accelerator": "kvm",
3939
"qemuargs": [
@@ -71,7 +71,7 @@
7171
"headless": "{{ user `headless` }}",
7272
"output_directory": "{{ user `name` }}-virtualbox-iso",
7373
"guest_additions_mode": "attach",
74-
"shutdown_command": "del C:\\script.bat & A:\\sysprep.bat",
74+
"shutdown_command": "A:\\sysprep.bat",
7575
"shutdown_timeout": "15m",
7676
"hard_drive_interface": "sata",
7777
"disk_size": "{{ user `disk_size` }}",

scripts/win-common/sysprep.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
if exist C:\script.bat del C:\script.bat
2+
13
mkdir %WINDIR%\Setup\Scripts
24

35
rem Disable password expiration for vagrant and Administrator users

windows.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"winrm_insecure": "true",
3737
"headless": "{{ user `headless` }}",
3838
"output_directory": "{{ user `name` }}-qemu",
39-
"shutdown_command": "del C:\\script.bat & A:\\sysprep.bat",
39+
"shutdown_command": "A:\\sysprep.bat",
4040
"shutdown_timeout": "15m",
4141
"accelerator": "kvm",
4242
"qemuargs": [
@@ -74,7 +74,7 @@
7474
"headless": "{{ user `headless` }}",
7575
"output_directory": "{{ user `name` }}-virtualbox-iso",
7676
"guest_additions_mode": "attach",
77-
"shutdown_command": "del C:\\script.bat & A:\\sysprep.bat",
77+
"shutdown_command": "A:\\sysprep.bat",
7878
"shutdown_timeout": "15m",
7979
"hard_drive_interface": "sata",
8080
"disk_size": "{{ user `disk_size` }}",

0 commit comments

Comments
 (0)