This commit is contained in:
Michael H.G. Schmidt 2021-01-10 00:22:42 +01:00
parent 8c19df6f61
commit bb34d2e85c
21 changed files with 424 additions and 129 deletions

7
.gitignore vendored
View File

@ -1,7 +1,10 @@
*.swp
*.wim
*.iso
*.exe
*.dll
null
log.txt
Packages.txt
distribution
*.swp
SOFTWAREBKP

View File

@ -1,22 +1,35 @@
@echo off
set TARGET=D:
set TESTSCRIPT=1st-logon.cmd
set TARGET=D:\
set SOURCES=c:\TEMP\Win10\sources
echo ####### %0 #######
echo using drive %TARGET% ...
if NOT EXIST %TARGET% (
echo ERROR: drive %TARGET% not found!
exit /b
)
:ask
set /p answer="BIOS or UEFI setup (B/U)? "
if /i "%answer:~,1%" EQU "B" (
copy /Y autounattend_BIOS.xml %TARGET%\autounattend.xml
goto cont
)
if /i "%answer:~,1%" EQU "U" (
copy /Y autounattend_UEFI.xml %TARGET%\autounattend.xml
goto cont
)
echo Please type B for BIOS or U for UEFI setup.
goto ask
:cont
if EXIST %SOURCES%\install_FINAL.esd (
robocopy %SOURCES% %TARGET%\sources install_FINAL.esd
del /Q %TARGET%\sources\install.esd 1>nul 2>nul
move %TARGET%\sources\install_FINAL.esd %TARGET%\sources\install.esd
move %SOURCES%\install_FINAL.esd %SOURCES%\install_FINAL_copy.esd
move /Y %TARGET%\sources\install_FINAL.esd %TARGET%\sources\install.esd
move /Y %SOURCES%\install_FINAL.esd %SOURCES%\install_FINAL_copy.esd
)
copy /Y autounattend.xml %TARGET%\
copy /Y 1st-logon.cmd %TARGET%\
copy /Y ToolsDownload.ftp %TARGET%\
copy /Y SetupComplete.cmd %TARGET%\
copy /Y SetupComplete.ps1 %TARGET%\
echo ####### %0 #######

View File

@ -1,16 +1,15 @@
@echo off
set TARGET=D:
set TESTSCRIPT=1st-logon.cmd
set SCRIPTS=%WINDIR%\Setup\scripts
set LOG=C:\SetupComplete.txt
mkdir %SCRIPTS% 1>nul 2>nul
del /Q %LOG% 1>nul 2>nul
echo ####### %0 #######
copy /Y autounattend.xml %TARGET%\
copy /Y 1st-logon.cmd %TARGET%\
copy /Y ToolsDownload.ftp %TARGET%\
copy /Y SetupComplete.cmd %TARGET%\
copy /Y SetupComplete.ps1 %TARGET%\
copy /Y SetupComplete.cmd %SCRIPTS%
copy /Y ToolsDownload.* %SCRIPTS%
echo ####### %0 #######
rem call %TARGET%\%TESTSCRIPT%
call %SCRIPTS%\SetupComplete.cmd

View File

@ -1,9 +1,46 @@
@echo off
rem SetupComplete.cmd ...
set LOG=c:\SetupComplete.txt
set SETUPDIR=c:\Windows\Setup\scripts
set FTPSCRIPT=ToolsDownload.cmd
del /Q %LOG% 1>nul 2>nul
if not "%1"=="STDOUT_TO_FILE" %0 STDOUT_TO_FILE %* 1>%LOG% 2>&1
shift /1
echo ####### %0 #######
date /t
time /t
echo.
echo [ place your code here ] ...
echo Disable Windows "Hi" Animation ...
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" ^
/v EnableFirstLogonAnimation /t REG_DWORD /d 0 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" ^
/v EnableFirstLogonAnimation /t REG_DWORD /d 0 /f
echo.
rem allow execution of any powershell script ...
powershell -Command "Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope LocalMachine"
powershell -Command ^
"$R=Get-ExecutionPolicy ; if ($R -eq 'Bypass') { ^
write-host 'POWERSHELL: Execution Policy was set to BYPASS' ^
} ^
else { ^
write-host 'ERROR: CANNOT SET Execution Policy to BYPASS !' ^
}"
echo.
rem call initial download script ...
cd /D %SETUPDIR%
if EXIST %FTPSCRIPT% (
echo EXECUTING %FTPSCRIPT% ...
call %FTPSCRIPT%
) else (
echo INFO: %FTPSCRIPT% not found!
)
echo.
date /t
time /t
echo ####### %0 #######

View File

@ -1,16 +0,0 @@
# SetupComplete.ps1 ...
write-host '#######',(split-path $PSCommandPath -Leaf),'#######'
echo "[ place your code here ] ..."
$progressPreference = 'SilentlyContinue'
Get-AppxPackage -AllUsers |
where-object {$_.name -notlike "*store*"} |
Remove-AppxPackage
Get-AppxProvisionedPackage -online |
where-object {$_.name -notlike "*store*"} |
Remove-AppxProvisionedPackage -online
write-host '#######',(split-path $PSCommandPath -Leaf),'#######'

View File

@ -1,10 +1,20 @@
@echo off
set LOG=c:\ToolsDownload.txt
set SETUPDIR=c:\Windows\Setup\scripts
set FTPSCRIPT=ToolsDownload.ftp
set T=c:\TEMP
set TOOLS=c:\tools
set SCRIPTS=c:\scripts
set FTPSCRIPT=ToolsDownload.ftp
del /Q %LOG% 1>nul 2>nul
if not "%1"=="STDOUT_TO_FILE" %0 STDOUT_TO_FILE %* 1>%LOG% 2>&1
shift /1
echo ####### %0 #######
date /t
time /t
echo.
echo killing some processes...
taskkill /F /IM ssh-agent.exe
@ -30,19 +40,16 @@ echo DISABLE firewall (for FTP access) ...
netsh advfirewall set allprofiles state off
echo getting TOOLS from webserver ...
rem try to call a script...
for %%D in (H G F E D) do (
if EXIST %%D:\%FTPSCRIPT% (
echo EXECUTING ftp-script %FTPSCRIPT% on drive %%D ...
ftp -i -s:%%D:\%FTPSCRIPT%
) else (
echo INFO: %FTPSCRIPT% not found on drive %%D!
)
cd /D %SETUPDIR%
if EXIST %FTPSCRIPT% (
echo EXECUTING ftp script %FTPSCRIPT% in path %SETUPDIR% ...
ftp -i -s:%FTPSCRIPT%
) else (
echo INFO: %FTPSCRIPT% not found in path %SETUPDIR% !
)
echo.
date /t
time /t
echo ####### %0 #######
echo STARTING setup script...
call %SCRIPTS%\1st-setup.cmd

142
autounattend_BIOS.xml Normal file
View File

@ -0,0 +1,142 @@
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<servicing></servicing>
<settings pass="windowsPE">
<component name="Microsoft-Windows-International-Core-WinPE" 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">
<SetupUILanguage>
<UILanguage>de-DE</UILanguage>
</SetupUILanguage>
<InputLocale>de-DE</InputLocale>
<SystemLocale>de-DE</SystemLocale>
<UILanguage>en-US</UILanguage>
<UserLocale>en-US</UserLocale>
</component>
<component name="Microsoft-Windows-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">
<DiskConfiguration>
<WillShowUI>OnError</WillShowUI>
<Disk wcm:action="add">
<CreatePartitions>
<CreatePartition wcm:action="add">
<Order>1</Order>
<Size>100</Size>
<Type>Primary</Type>
</CreatePartition>
<CreatePartition wcm:action="add">
<Order>2</Order>
<Type>Primary</Type>
<Extend>true</Extend>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<ModifyPartition wcm:action="add">
<Order>1</Order>
<PartitionID>1</PartitionID>
<Format>NTFS</Format>
<Label>System</Label>
<Active>true</Active>
</ModifyPartition>
<ModifyPartition wcm:action="add">
<Order>2</Order>
<PartitionID>2</PartitionID>
<Letter>C</Letter>
<Label>Windows</Label>
<Format>NTFS</Format>
</ModifyPartition>
</ModifyPartitions>
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
</Disk>
</DiskConfiguration>
<ImageInstall>
<OSImage>
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>2</PartitionID>
</InstallTo>
<WillShowUI>OnError</WillShowUI>
</OSImage>
</ImageInstall>
<UserData>
<ProductKey>
<Key>VK7JG-NPHTM-C97JM-9MPGT-3V66T</Key>
</ProductKey>
<AcceptEula>true</AcceptEula>
<Organization>none</Organization>
</UserData>
</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">
<OEMInformation>
<Manufacturer>IBM PC</Manufacturer>
<Model>Windows</Model>
</OEMInformation>
<CopyProfile>true</CopyProfile>
<RegisteredOrganization>none</RegisteredOrganization>
<RegisteredOwner>none</RegisteredOwner>
<TimeZone>Central Europe Standard Time</TimeZone>
<ProductKey>VK7JG-NPHTM-C97JM-9MPGT-3V66T</ProductKey>
<ShowPowerButtonOnStartScreen>true</ShowPowerButtonOnStartScreen>
</component>
<component name="Microsoft-Windows-SQMApi" 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">
<CEIPEnabled>0</CEIPEnabled>
</component>
</settings>
<settings pass="oobeSystem">
<component name="Microsoft-Windows-International-Core" 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">
<InputLocale>de-DE</InputLocale>
<SystemLocale>de-DE</SystemLocale>
<UILanguage>en-US</UILanguage>
<UserLocale>en-US</UserLocale>
</component>
<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>
<HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
<ProtectYourPC>1</ProtectYourPC>
<HideOnlineAccountScreens>true</HideOnlineAccountScreens>
</OOBE>
<UserAccounts>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Password>
<Value>UwB0AGEAcgB0AF8AMQAyADMANAA1ACEAUABhAHMAcwB3AG8AcgBkAA==</Value>
<PlainText>false</PlainText>
</Password>
<DisplayName>support</DisplayName>
<Name>support</Name>
<Group>Administrators</Group>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
<AutoLogon>
<Password>
<Value>UwB0AGEAcgB0AF8AMQAyADMANAA1ACEAUABhAHMAcwB3AG8AcgBkAA==</Value>
<PlainText>false</PlainText>
</Password>
<Enabled>true</Enabled>
<LogonCount>1</LogonCount>
<Username>support</Username>
</AutoLogon>
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<Order>1</Order>
<Description>Password Never Expires</Description>
<CommandLine>cmd /C wmic useraccount where name=&quot;support&quot; set PasswordExpires=false</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>2</Order>
<Description>Initial Setup</Description>
<CommandLine>cmd /C c:\scripts\1st-setup.cmd</CommandLine>
</SynchronousCommand>
</FirstLogonCommands>
</component>
</settings>
<settings pass="offlineServicing">
<component name="Microsoft-Windows-LUA-Settings" 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">
<EnableLUA>false</EnableLUA>
</component>
</settings>
<cpi:offlineImage cpi:source="wim:c:/temp/win10/sources/install.wim#Windows 10 Pro" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

View File

@ -148,7 +148,7 @@
<SynchronousCommand wcm:action="add">
<Order>2</Order>
<Description>Initial Setup</Description>
<CommandLine>cmd /C D:\1st-logon.cmd</CommandLine>
<CommandLine>cmd /C c:\scripts\1st-setup.cmd</CommandLine>
</SynchronousCommand>
</FirstLogonCommands>
</component>

View File

@ -6,4 +6,3 @@ mkdir %W10% 1>nul 2>nul
powershell Mount-DiskImage -ImagePath %W10%.iso
robocopy \\.\CDROM0 %W10% /MIR /256
powershell Dismount-Diskimage -ImagePath %W10%.iso

View File

@ -3,6 +3,7 @@ w10install
9054c6cf-c54c
binary
lcd c:\TEMP
cd iso
mget Win10*.iso
bye

View File

@ -5,9 +5,14 @@ set MNT=c:\TEMP\WIM
rd /S /Q %MNT%\Windows\Setup\scripts 1>nul 2>nul
mkdir %MNT%\Windows\Setup\scripts 1>nul 2>nul
rem copy SetupComplete script ...
echo copy SetupComplete script ...
copy /Y SetupComplete.cmd %MNT%\Windows\Setup\scripts
if %errorlevel% neq 0 exit /b %errorlevel%
echo copy ftp scripts ...
copy /Y ToolsDownload.* %MNT%\Windows\Setup\scripts
if %errorlevel% neq 0 exit /b %errorlevel%
dir %MNT%\Windows\Setup\scripts
dism /Image:%MNT% /Cleanup-Image /StartComponentCleanup /ResetBase

179
reduced-remove.cmd Normal file
View File

@ -0,0 +1,179 @@
set MNT=c:\TEMP\WIM
install_wim_tweak.exe /p %MNT% /c "Adobe-Flash" /r /n
install_wim_tweak.exe /p %MNT% /c "Containers-ApplicationGuard" /r /n
install_wim_tweak.exe /p %MNT% /c "Containers-Client" /r /n
install_wim_tweak.exe /p %MNT% /c "Containers-DisposableClientVM" /r /n
install_wim_tweak.exe /p %MNT% /c "Containers-Guest-Gated" /r /n
install_wim_tweak.exe /p %MNT% /c "Containers-OptionalFeature" /r /n
install_wim_tweak.exe /p %MNT% /c "Containers-Server" /r /n
install_wim_tweak.exe /p %MNT% /c "DeviceAccess" /r /n
install_wim_tweak.exe /p %MNT% /c "HyperV" /r /n
install_wim_tweak.exe /p %MNT% /c "LanguageFeatures-WordBreaking" /r /n
install_wim_tweak.exe /p %MNT% /c "Media-FaceAnalysis" /r /n
install_wim_tweak.exe /p %MNT% /c "Media-Ocr" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Composable-PlatformExtension" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Hyper-V" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-IoTUAP-ShellExt-Tools" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Media-Foundation" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Mobile" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-AllJoyn" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-AllowTelemetry" /r /n
install_wim_tweak.exe /p %MNT% /c "microsoft-onecore-applicationmodel-sync-desktop" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-ApplicationModel-Sync" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Biometrics" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-BITS" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-CameraCaptureUI" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Connectivity-NFC" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Connectivity-Serial" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Containers" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-DebugCore" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-DeviceUpdateCenter" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-EnergyEstimationEngine" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-ESENT" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Gaming" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-HyperV" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Indexer" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-InkPlatform" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Maps" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Miracast" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Multimedia-CastingCommon" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Multimedia-CastingReceiver" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Multimedia-CastingTransmitter" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Multimedia-MFPMP" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Networking-MobileBroadbandApi" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-NowPlayingSessionManager" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-PointOfService" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-RemoteDesktopServices" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Sensors" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-SpeechComponents" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Onecore-SPP-VirtualDevice" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Tethering" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-TroubleShooting" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-UserDataAccess" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-Wallet" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore-WebService" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-PPIProjection" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-UtilityVM" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-3DAudio" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-ApiSetSchemaExtension-HyperV" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-AppCompat" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-AppManagement" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-AppServerClient" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Backup" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Basic-Http-Minio" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-BioEnrollment" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-BITS" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Branding-Enterprise" /r /n
rem install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Browser" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-BusinessScanning" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Casting" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Client-AssignedAccess" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Client-EmbeddedExp" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Client-Optional-Features" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Client-ShellLauncher" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Common-Modem" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-COM-MSMQ" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Compression" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-ContactSupport" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-ContentDeliveryManager" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-CoreSystem-DebugTransports" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Cortana" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-DataCenterBridging" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-DeviceSync" /r /n
install_wim_tweak.exe /p %MNT% /c "microsoft-windows-directoryservices-adam" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-DirectoryServices-ADAM" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-EnterpriseClientSync" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-FodMetadata" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Geolocation" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Hello-Face" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Help" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-HVSI-Components" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-HyperV-OptionalFeature-HypervisorPlatform" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-HyperV-OptionalFeature-VirtualMachinePlatform" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Identity-Foundation" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-IIS-WebServer" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-International" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-InternetExplorer" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Internet" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Killbits" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-LanguageEnablingComponents" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-LanguageFeatures" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Legacy" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Links" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Lxss" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Management-SecureAssessment" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Media-Format" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MediaPlayback-OC" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MediaPlayer" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Media-Streaming" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Migration" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MiracastView" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MobileBroadband" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MobileCore" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MobilePC" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MRT10" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MSMQ-Client" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MSMQ-MMC-OptGroup" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-msmq" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MultiPoint-Connector" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Network-Connectivity-Assistant" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-NetworkDiagnostics" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Network-QoS" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-NFS" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Notepad-FoD" /r /n
install_wim_tweak.exe /p %MNT% /c "microsoft-windows-notepad" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Not-Supported-On-LTSB" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-OfflineFiles" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-OneCore-Containers" /r /n
install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-OneDrive" /r /n
rem ESSENTIAL (do NOT remove):
rem Microsoft-Client-License-Platform
rem Microsoft-Windows-20H2Enablement
rem Microsoft-Windows-Client-Desktop-Required
rem Microsoft-Windows-Client-LanguagePack
rem Microsoft-Windows-Common-Foundation
rem Microsoft-Windows-Common-RegulatedPackages
rem Microsoft-Windows-ConfigCI
rem Microsoft-Windows-Desktop-BCDTemplate
rem Microsoft-Windows-DesktopFileExplorer
rem Microsoft-Windows-DeviceGuard-GPEXT
rem Microsoft-Windows-EditionPack-Professional
rem Microsoft-Windows-EditionSpecific-Professional
rem Microsoft-Windows-Editions-Professional
rem Microsoft-Windows-Embedded-UnifiedWriteFilterCSP
rem Microsoft-Windows-Enterprise-Desktop-Share
rem Microsoft-Windows-FCI-Client
rem Microsoft-Windows-Foundation
rem Microsoft-Windows-GroupPolicy-ClientExtensions
rem Microsoft-Windows-GroupPolicy-ClientTools
rem Microsoft-Windows-Holographic-Desktop
rem Microsoft-Windows-HVSI
rem Microsoft-Windows-MSPaint-FoD
rem Microsoft-Windows-NetFx
rem Microsoft-Windows-NetFx2
rem Microsoft-Windows-NetFx3
rem Microsoft-Windows-NetFx4
rem Microsoft-Windows-NewTabPageHost
rem Microsoft-Windows-PowerShell-ISE-FOD
rem Microsoft-Windows-Product-Data-EKB
rem Microsoft-Windows-ProfessionalEdition
rem Microsoft-Windows-Professional-SPP-Components
rem Microsoft-Windows-RegulatedPackages
rem Microsoft-Windows-Required-ShellExperiences-Desktop
rem Microsoft-Windows-Runtime-Metadata-Desktop
rem Microsoft-Windows-SecureStartup
rem Microsoft-Windows-Security-SPP-Component-SKU
rem Microsoft-Windows-ShellExperienceHost
rem Microsoft-Windows-WMPNetworkSharingService
rem CLEANUP:
del SOFTWAREBKP 1>nul 2>nul
rem export remaining PACKAGE names ...
install_wim_tweak /p %MNT% /l
dir Packages.txt

View File

@ -1,6 +0,0 @@
null
SOFTWAREBKP
*.swp
log.txt
Packages.txt

View File

@ -1,15 +0,0 @@
@echo off
set SCRIPTS=%WINDIR%\Setup\scripts
set LOG=C:\SetupComplete.txt
mkdir %SCRIPTS% 1>nul 2>nul
del /Q %LOG% 1>nul 2>nul
echo ####### %0 #######
copy /Y SetupComplete.cmd %SCRIPTS%
echo ####### %0 #######
call %SCRIPTS%\SetupComplete.cmd
start notepad %LOG%

View File

@ -1,53 +0,0 @@
@echo off
set LOG=C:\SetupComplete.txt
set BATCH=SetupComplete.cmd
set PS1=SetupComplete.ps1
if not "%1"=="STDOUT_TO_FILE" %0 STDOUT_TO_FILE %* 1>%LOG% 2>&1
shift /1
echo ####### %0 #######
date /t
time /t
echo.
echo Disable Windows "Hi" Animation ...
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" ^
/v EnableFirstLogonAnimation /t REG_DWORD /d 0 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" ^
/v EnableFirstLogonAnimation /t REG_DWORD /d 0 /f
rem allow execution of any powershell script ...
powershell -Command "Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope LocalMachine"
powershell -Command ^
"$T=Get-ExecutionPolicy ; if ($T -eq 'Bypass') { ^
write-host 'POWERSHELL: Execution Policy was set to BYPASS' ^
} ^
else { ^
write-host 'ERROR: CANNOT SET Execution Policy to BYPASS !' ^
}"
echo.
rem try to call a script...
for %%D in (H G F E D) do (
if EXIST %%D:\%PS1% (
echo EXECUTING %PS1% on drive %%D ...
powershell -Command %%D:\%PS1%
) else (
echo INFO: %PS1% not found on drive %%D!
)
if EXIST %%D:\%BATCH% (
echo EXECUTING %BATCH% on drive %%D ...
call %%D:\%BATCH%
) else (
echo INFO: %BATCH% not found on drive %%D!
)
)
echo.
date /t
time /t
echo ####### %0 #######