Skip to content

Commit

Permalink
Enable LocalAccounts for Windows 10/11.
Browse files Browse the repository at this point in the history
  • Loading branch information
alanbach committed Nov 28, 2023
1 parent 141f736 commit fbcbf53
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions windows/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ ifneq ($(strip $(PKEY)),)
sed -i s#@PKEY@#${PKEY}#g http/Autounattend.xml
sed -i 's/<!--<ProductKey>/<ProductKey>/;s/<\/ProductKey>-->/<\/ProductKey>/' http/Autounattend.xml
endif

ifeq ($(strip $(VERSION)),10)
sed -i 's/<!--<LocalAccounts>/<LocalAccounts>/;s/<\/LocalAccounts>-->/<\/LocalAccounts>/' http/Autounattend.xml
else ifeq ($(strip $(VERSION)),11)
sed -i 's/<!--<LocalAccounts>/<LocalAccounts>/;s/<\/LocalAccounts>-->/<\/LocalAccounts>/' http/Autounattend.xml
endif

${PACKER} build -var iso_path=${ISO} windows.json

clean:
Expand Down

0 comments on commit fbcbf53

Please sign in to comment.