Update define.sh

This commit is contained in:
Kroese 2024-05-19 10:01:30 +02:00 committed by GitHub
parent bad0175d9c
commit 53aed34e35
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1987,61 +1987,68 @@ configXP() {
find "$target" -maxdepth 1 -type f -iname winnt.sif -exec rm {} \; find "$target" -maxdepth 1 -type f -iname winnt.sif -exec rm {} \;
{ echo "[Data]" { echo "[Data]"
echo "AutoPartition=1" echo " AutoPartition=1"
echo "MsDosInitiated=\"0\"" echo " MsDosInitiated=\"0\""
echo "UnattendedInstall=\"Yes\"" echo " UnattendedInstall=\"Yes\""
echo "AutomaticUpdates=\"Yes\"" echo " AutomaticUpdates=\"Yes\""
echo "" echo ""
echo "[Unattended]" echo "[Unattended]"
echo "UnattendSwitch=Yes" echo " UnattendSwitch=Yes"
echo "UnattendMode=FullUnattended" echo " UnattendMode=FullUnattended"
echo "FileSystem=NTFS" echo " FileSystem=NTFS"
echo "OemSkipEula=Yes" echo " OemSkipEula=Yes"
echo "OemPreinstall=Yes" echo " OemPreinstall=Yes"
echo "Repartition=Yes" echo " Repartition=Yes"
echo "WaitForReboot=\"No\"" echo " WaitForReboot=\"No\""
echo "DriverSigningPolicy=\"Ignore\"" echo " DriverSigningPolicy=\"Ignore\""
echo "NonDriverSigningPolicy=\"Ignore\"" echo " NonDriverSigningPolicy=\"Ignore\""
echo "OemPnPDriversPath=\"Drivers\viostor;Drivers\NetKVM;Drivers\sata\"" echo " OemPnPDriversPath=\"Drivers\viostor;Drivers\NetKVM;Drivers\sata\""
echo "NoWaitAfterTextMode=1" echo " NoWaitAfterTextMode=1"
echo "NoWaitAfterGUIMode=1" echo " NoWaitAfterGUIMode=1"
echo "FileSystem-ConvertNTFS" echo " FileSystem-ConvertNTFS"
echo "ExtendOemPartition=0" echo " ExtendOemPartition=0"
echo "Hibernation=\"No\"" echo " Hibernation=\"No\""
echo "" echo ""
echo "[GuiUnattended]" echo "[GuiUnattended]"
echo "OEMSkipRegional=1" echo " OEMSkipRegional=1"
echo "OemSkipWelcome=1" echo " OemSkipWelcome=1"
echo "AdminPassword=$password" echo " AdminPassword=$password"
echo "TimeZone=0" echo " TimeZone=0"
echo "AutoLogon=Yes" echo " AutoLogon=Yes"
echo "AutoLogonCount=65432" echo " AutoLogonCount=65432"
echo "" echo ""
echo "[UserData]" echo "[UserData]"
echo "FullName=\"$username\"" echo " FullName=\"$username\""
echo "ComputerName=\"*\"" echo " ComputerName=\"*\""
echo "OrgName=\"Windows for Docker\"" echo " OrgName=\"Windows for Docker\""
echo "ProductKey=$key" echo " ProductKey=$key"
echo "" echo ""
echo "[Identification]" echo "[Identification]"
echo "JoinWorkgroup = WORKGROUP" echo " JoinWorkgroup = WORKGROUP"
echo "" echo ""
echo "[Networking]" echo "[Networking]"
echo "InstallDefaultComponents=Yes" echo " InstallDefaultComponents=Yes"
echo "" echo ""
echo "[Branding]" echo "[Branding]"
echo "BrandIEUsingUnattended=Yes" echo " BrandIEUsingUnattended=Yes"
echo "" echo ""
echo "[URL]" echo "[URL]"
echo "Home_Page = http://www.google.com" echo " Home_Page = http://www.google.com"
echo "Search_Page = http://www.google.com" echo " Search_Page = http://www.google.com"
echo "" echo ""
echo "[RegionalSettings]" echo "[RegionalSettings]"
echo "Language=00000409" echo " Language=00000409"
echo "" echo ""
echo "[TerminalServices]" echo "[TerminalServices]"
echo "AllowConnections=1" echo " AllowConnections=1"
echo "" echo ""
echo "[Display]"
echo " Vrefresh=75"
echo " AutoConfirm=1"
echo " BitsPerPel=32"
echo " Xresolution=1920"
echo " Yresolution=1080"
echo ""
} | unix2dos > "$target/WINNT.SIF" } | unix2dos > "$target/WINNT.SIF"
{ echo "Windows Registry Editor Version 5.00" { echo "Windows Registry Editor Version 5.00"