finalizing
This commit is contained in:
parent
8020be67e1
commit
96a9267c58
@ -13,6 +13,13 @@ echo =====================
|
|||||||
|
|
||||||
set USBDRIVE=%1
|
set USBDRIVE=%1
|
||||||
|
|
||||||
|
if EXIST settings.cmd (
|
||||||
|
call settings.cmd
|
||||||
|
) else (
|
||||||
|
set LANG=en-US
|
||||||
|
)
|
||||||
|
echo LANG=%LANG%
|
||||||
|
|
||||||
if /I %USBDRIVE% == C: (
|
if /I %USBDRIVE% == C: (
|
||||||
echo ERROR: cannot use drive %USBDRIVE% !
|
echo ERROR: cannot use drive %USBDRIVE% !
|
||||||
exit /b
|
exit /b
|
||||||
@ -68,6 +75,7 @@ echo.
|
|||||||
tools\searchreplace %USBDRIVE%\autounattend.xml ___MYUSER___ "%MYUSER%"
|
tools\searchreplace %USBDRIVE%\autounattend.xml ___MYUSER___ "%MYUSER%"
|
||||||
tools\searchreplace %USBDRIVE%\autounattend.xml ___MYNAME___ "%MYNAME%"
|
tools\searchreplace %USBDRIVE%\autounattend.xml ___MYNAME___ "%MYNAME%"
|
||||||
tools\searchreplace %USBDRIVE%\autounattend.xml ___MYPASS___ "%MYPASS%"
|
tools\searchreplace %USBDRIVE%\autounattend.xml ___MYPASS___ "%MYPASS%"
|
||||||
|
tools\searchreplace %USBDRIVE%\autounattend.xml ___MYLANG___ "%LANG%"
|
||||||
|
|
||||||
echo.
|
echo.
|
||||||
echo copying [ %BOOT% ] to drive %USBDRIVE% ...
|
echo copying [ %BOOT% ] to drive %USBDRIVE% ...
|
||||||
|
@ -6,10 +6,10 @@
|
|||||||
<SetupUILanguage>
|
<SetupUILanguage>
|
||||||
<UILanguage>en-US</UILanguage>
|
<UILanguage>en-US</UILanguage>
|
||||||
</SetupUILanguage>
|
</SetupUILanguage>
|
||||||
<InputLocale>de-DE</InputLocale>
|
<InputLocale>___MYLANG___</InputLocale>
|
||||||
<SystemLocale>de-DE</SystemLocale>
|
<SystemLocale>___MYLANG___</SystemLocale>
|
||||||
<UILanguage>en-US</UILanguage>
|
<UILanguage>en-US</UILanguage>
|
||||||
<UserLocale>de-DE</UserLocale>
|
<UserLocale>___MYLANG___</UserLocale>
|
||||||
</component>
|
</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">
|
<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>
|
<DiskConfiguration>
|
||||||
@ -84,10 +84,10 @@
|
|||||||
</settings>
|
</settings>
|
||||||
<settings pass="oobeSystem">
|
<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">
|
<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>
|
<InputLocale>___MYLANG___</InputLocale>
|
||||||
<SystemLocale>de-DE</SystemLocale>
|
<SystemLocale>___MYLANG___</SystemLocale>
|
||||||
<UILanguage>en-US</UILanguage>
|
<UILanguage>en-US</UILanguage>
|
||||||
<UserLocale>de-DE</UserLocale>
|
<UserLocale>___MYLANG___</UserLocale>
|
||||||
</component>
|
</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">
|
<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>
|
<OOBE>
|
||||||
@ -101,11 +101,9 @@
|
|||||||
<LocalAccounts>
|
<LocalAccounts>
|
||||||
<LocalAccount wcm:action="add">
|
<LocalAccount wcm:action="add">
|
||||||
<Password>
|
<Password>
|
||||||
<!-- PASSWORD HERE -->
|
|
||||||
<Value>___MYPASS___</Value>
|
<Value>___MYPASS___</Value>
|
||||||
<PlainText>true</PlainText>
|
<PlainText>true</PlainText>
|
||||||
</Password>
|
</Password>
|
||||||
<!-- USERNAME HERE -->
|
|
||||||
<DisplayName>___MYNAME___</DisplayName>
|
<DisplayName>___MYNAME___</DisplayName>
|
||||||
<Name>___MYUSER___</Name>
|
<Name>___MYUSER___</Name>
|
||||||
<Group>Administrators</Group>
|
<Group>Administrators</Group>
|
||||||
@ -114,13 +112,11 @@
|
|||||||
</UserAccounts>
|
</UserAccounts>
|
||||||
<AutoLogon>
|
<AutoLogon>
|
||||||
<Password>
|
<Password>
|
||||||
<!-- PASSWORD HERE -->
|
|
||||||
<Value>___MYPASS___</Value>
|
<Value>___MYPASS___</Value>
|
||||||
<PlainText>true</PlainText>
|
<PlainText>true</PlainText>
|
||||||
</Password>
|
</Password>
|
||||||
<Enabled>true</Enabled>
|
<Enabled>true</Enabled>
|
||||||
<LogonCount>1</LogonCount>
|
<LogonCount>1</LogonCount>
|
||||||
<!-- USERNAME HERE -->
|
|
||||||
<Username>___MYUSER___</Username>
|
<Username>___MYUSER___</Username>
|
||||||
</AutoLogon>
|
</AutoLogon>
|
||||||
<FirstLogonCommands>
|
<FirstLogonCommands>
|
||||||
|
@ -6,10 +6,10 @@
|
|||||||
<SetupUILanguage>
|
<SetupUILanguage>
|
||||||
<UILanguage>en-US</UILanguage>
|
<UILanguage>en-US</UILanguage>
|
||||||
</SetupUILanguage>
|
</SetupUILanguage>
|
||||||
<InputLocale>de-DE</InputLocale>
|
<InputLocale>___MYLANG___</InputLocale>
|
||||||
<SystemLocale>de-DE</SystemLocale>
|
<SystemLocale>___MYLANG___</SystemLocale>
|
||||||
<UILanguage>en-US</UILanguage>
|
<UILanguage>en-US</UILanguage>
|
||||||
<UserLocale>de-DE</UserLocale>
|
<UserLocale>___MYLANG___</UserLocale>
|
||||||
</component>
|
</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">
|
<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>
|
<DiskConfiguration>
|
||||||
@ -104,10 +104,10 @@
|
|||||||
</settings>
|
</settings>
|
||||||
<settings pass="oobeSystem">
|
<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">
|
<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>
|
<InputLocale>___MYLANG___</InputLocale>
|
||||||
<SystemLocale>de-DE</SystemLocale>
|
<SystemLocale>___MYLANG___</SystemLocale>
|
||||||
<UILanguage>en-US</UILanguage>
|
<UILanguage>en-US</UILanguage>
|
||||||
<UserLocale>de-DE</UserLocale>
|
<UserLocale>___MYLANG___</UserLocale>
|
||||||
</component>
|
</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">
|
<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>
|
<OOBE>
|
||||||
@ -121,12 +121,10 @@
|
|||||||
<LocalAccounts>
|
<LocalAccounts>
|
||||||
<LocalAccount wcm:action="add">
|
<LocalAccount wcm:action="add">
|
||||||
<Password>
|
<Password>
|
||||||
<!-- PASSWORD HERE -->
|
|
||||||
<Value>___MYPASS___</Value>
|
<Value>___MYPASS___</Value>
|
||||||
<PlainText>true</PlainText>
|
<PlainText>true</PlainText>
|
||||||
</Password>
|
</Password>
|
||||||
<DisplayName>___MYNAME___</DisplayName>
|
<DisplayName>___MYNAME___</DisplayName>
|
||||||
<!-- USERNAME HERE -->
|
|
||||||
<Name>___MYUSER___</Name>
|
<Name>___MYUSER___</Name>
|
||||||
<Group>Administrators</Group>
|
<Group>Administrators</Group>
|
||||||
</LocalAccount>
|
</LocalAccount>
|
||||||
@ -134,13 +132,11 @@
|
|||||||
</UserAccounts>
|
</UserAccounts>
|
||||||
<AutoLogon>
|
<AutoLogon>
|
||||||
<Password>
|
<Password>
|
||||||
<!-- PASSWORD HERE -->
|
|
||||||
<Value>___MYPASS___</Value>
|
<Value>___MYPASS___</Value>
|
||||||
<PlainText>true</PlainText>
|
<PlainText>true</PlainText>
|
||||||
</Password>
|
</Password>
|
||||||
<Enabled>true</Enabled>
|
<Enabled>true</Enabled>
|
||||||
<LogonCount>1</LogonCount>
|
<LogonCount>1</LogonCount>
|
||||||
<!-- USERNAME HERE -->
|
|
||||||
<Username>___MYUSER___</Username>
|
<Username>___MYUSER___</Username>
|
||||||
</AutoLogon>
|
</AutoLogon>
|
||||||
<FirstLogonCommands>
|
<FirstLogonCommands>
|
||||||
|
@ -78,8 +78,8 @@ echo.
|
|||||||
call modify-path.cmd
|
call modify-path.cmd
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
rem call modify-explorer.cmd
|
call modify-explorer.cmd
|
||||||
rem echo.
|
echo.
|
||||||
|
|
||||||
call modify-powersettings.cmd
|
call modify-powersettings.cmd
|
||||||
echo.
|
echo.
|
||||||
|
@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
||||||
|
echo disabling quick access ...
|
||||||
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" ^
|
||||||
|
/v "HubMode" /t REG_DWORD /d 1 /f 1>nul
|
||||||
|
|
||||||
echo disabling network icon ...
|
echo disabling network icon ...
|
||||||
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\NonEnum" ^
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\NonEnum" ^
|
||||||
/v "{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}" /t REG_DWORD /d 1 /f 1>nul
|
/v "{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}" /t REG_DWORD /d 1 /f 1>nul
|
||||||
@ -15,3 +19,4 @@ taskkill /f /im explorer.exe 1>nul 2>nul
|
|||||||
start explorer.exe
|
start explorer.exe
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
||||||
|
@ -137,6 +137,25 @@ rem config must be full qualified pathname (OpenShell BUG!)
|
|||||||
set CONFIG=%TOOLS%\scripts\config\OpenshellSettings.xml
|
set CONFIG=%TOOLS%\scripts\config\OpenshellSettings.xml
|
||||||
"%ProgramFiles%"\Open-Shell\StartMenu.exe -xml %CONFIG%
|
"%ProgramFiles%"\Open-Shell\StartMenu.exe -xml %CONFIG%
|
||||||
|
|
||||||
|
echo removing user folders from explorer navigation pane ...
|
||||||
|
for %%K in (
|
||||||
|
{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}
|
||||||
|
{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}
|
||||||
|
{D3162B92-9365-467A-956B-92703ACA08AF}
|
||||||
|
{088E3905-0323-4B02-9826-5D99428E115F}
|
||||||
|
{3DFDF296-DBEC-4FB4-81D1-6A3438BCF4DE}
|
||||||
|
{24AD3AD4-A569-4530-98E1-AB02F9417AA8}
|
||||||
|
{F86FA3AB-70D2-4FC7-9C99-FCBF05467F3A}
|
||||||
|
) do (
|
||||||
|
echo %%K
|
||||||
|
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideMyComputerIcons" ^
|
||||||
|
/v "%%K" /t REG_DWORD /d 1 /f 1>nul
|
||||||
|
)
|
||||||
|
|
||||||
|
echo adding home folder to explorer navigation pane ...
|
||||||
|
reg add "HKEY_CURRENT_USER\Software\Classes\CLSID\{59031a47-3f72-44a7-89c5-5595fe6b30ee}" ^
|
||||||
|
/v "System.IsPinnedToNameSpaceTree" /t REG_DWORD /d 1 /f 1>nul
|
||||||
|
|
||||||
echo restarting explorer ...
|
echo restarting explorer ...
|
||||||
taskkill /f /im explorer.exe 2>nul
|
taskkill /f /im explorer.exe 2>nul
|
||||||
rem sleep 2 seconds ...
|
rem sleep 2 seconds ...
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
set SOURCES=c:\TEMP\W10\sources
|
set SOURCES=c:\TEMP\W10\sources
|
||||||
set BOOT=c:\TEMP\BOOT
|
set BOOT=c:\TEMP\BOOT
|
||||||
|
|
||||||
if EXIST settings.cmd (
|
if EXIST ..\settings.cmd (
|
||||||
call settings.cmd
|
call ..\settings.cmd
|
||||||
) else (
|
) else (
|
||||||
set LANG=en-US
|
set LANG=en-US
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user