From fd21023280d2ecd172c0e74868419dcbe12a795a Mon Sep 17 00:00:00 2001 From: Alexandre-Simao Date: Mon, 31 May 2021 12:30:56 +0200 Subject: [PATCH] Fix: Client unattend --- Host/Clients.ps1 | 4 +- Unattend/CLI.xml | 151 ----------------------------------------------- Unattend/SRV.xml | 66 --------------------- 3 files changed, 2 insertions(+), 219 deletions(-) delete mode 100644 Unattend/CLI.xml delete mode 100644 Unattend/SRV.xml diff --git a/Host/Clients.ps1 b/Host/Clients.ps1 index 2b43c97..7842621 100644 --- a/Host/Clients.ps1 +++ b/Host/Clients.ps1 @@ -11,7 +11,7 @@ echo "Adding and configuring CLI-01" cp D:\VHD\Base\Base_Client_dif.vhdx D:\VHD\CLI-01.vhdx Mount-VHD d:\VHD\CLI-01.vhdx -Copy-Item d:\Unattend\CLI-01.xml -Destination f:\Windows\Panther\Unattend.xml +Copy-Item d:\Unattend\Fullunattend-Win10.xml -Destination f:\Windows\Panther\Unattend.xml #mkdir e:\Tools\Scripts #Copy-item d:\Scripts\Guests\CLI-01.ps1 E:\Tools\scripts Dismount-VHD d:\VHD\CLI-01.vhdx @@ -39,7 +39,7 @@ echo "Adding and configuring CLI-03" cp D:\VHD\Base\Base_Client_dif.vhdx D:\VHD\CLI-03.vhdx Mount-VHD d:\VHD\CLI-03.vhdx -#Copy-Item d:\Unattend\CLI-01.xml -Destination f:\Windows\Panther\Unattend.xml +Copy-Item d:\Unattend\Fullunattend-Win10.xml -Destination f:\Windows\Panther\Unattend.xml #mkdir e:\Tools\Scripts #Copy-item d:\Scripts\Guests\CLI-03.ps1 E:\Tools\scripts Dismount-VHD d:\VHD\CLI-03.vhdx diff --git a/Unattend/CLI.xml b/Unattend/CLI.xml deleted file mode 100644 index 8fafe26..0000000 --- a/Unattend/CLI.xml +++ /dev/null @@ -1,151 +0,0 @@ - - - - -040c:0000040c -fr-FR -fr-FR -fr-FR -fr-FR - - -040c:0000040c -fr-FR -fr-FR -fr-FR -fr-FR - - -true - - -true - - -0 - - -0 - - -MYCOMPUTER - - - -MYCOMPUTER - - - - - - - -Pa$$w0rd -true</PlainText> -</Password> -<Enabled>true</Enabled> -<LogonCount>1</LogonCount> -<Username>AdminLocal</Username> -</AutoLogon> -<OOBE> -<HideEULAPage>true</HideEULAPage> -<HideOEMRegistrationScreen>true</HideOEMRegistrationScreen> -<HideOnlineAccountScreens>true</HideOnlineAccountScreens> -<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE> -<NetworkLocation>Home</NetworkLocation> -<SkipUserOOBE>true</SkipUserOOBE> -<SkipMachineOOBE>true</SkipMachineOOBE> -<ProtectYourPC>1</ProtectYourPC> -</OOBE> -<UserAccounts> -<LocalAccounts> -<LocalAccount wcm:action="add"> -<Password> -<Value>Pa$$w0rd</Value> -<PlainText>true</PlainText> -</Password> -<Description>AdminLocal</Description> -<DisplayName>AdminLocal</DisplayName> -<Group>Administrators</Group> -<Name>AdminLocal</Name> -</LocalAccount> -</LocalAccounts> -</UserAccounts> -<RegisteredOrganization></RegisteredOrganization> -<RegisteredOwner>Aston Ecole</RegisteredOwner> -<DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet> -<FirstLogonCommands> -<SynchronousCommand wcm:action="add"> -<Description>Control Panel View</Description> -<Order>1</Order> -<CommandLine>reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v StartupPage /t REG_DWORD /d 0 /f</CommandLine> -<RequiresUserInput>true</RequiresUserInput> -</SynchronousCommand> -<SynchronousCommand wcm:action="add"> -<Order>2</Order> -<Description>Control Panel Icon Size</Description> -<RequiresUserInput>false</RequiresUserInput> -<CommandLine>reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v AllItemsIconView /t REG_DWORD /d 1 /f</CommandLine> -</SynchronousCommand> -</FirstLogonCommands> -<TimeZone>Romance Standard Time</TimeZone> -</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"> -<AutoLogon> -<Password> -<Value>Pa$$w0rd</Value> -<PlainText>true</PlainText> -</Password> -<Enabled>true</Enabled> -<LogonCount>1</LogonCount> -<Username>AdminLocal</Username> -</AutoLogon> -<OOBE> -<HideEULAPage>true</HideEULAPage> -<HideOEMRegistrationScreen>true</HideOEMRegistrationScreen> -<HideOnlineAccountScreens>true</HideOnlineAccountScreens> -<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE> -<NetworkLocation>Home</NetworkLocation> -<SkipUserOOBE>true</SkipUserOOBE> -<SkipMachineOOBE>true</SkipMachineOOBE> -<ProtectYourPC>1</ProtectYourPC> -</OOBE> -<UserAccounts> -<LocalAccounts> -<LocalAccount wcm:action="add"> -<Password> -<Value>Pa$$w0rd</Value> -<PlainText>true</PlainText> -</Password> -<Description>AdminLocal</Description> -<DisplayName>AdminLocal</DisplayName> -<Group>Administrators</Group> -<Name>AdminLocal</Name> -</LocalAccount> -</LocalAccounts> -</UserAccounts> -<RegisteredOrganization></RegisteredOrganization> -<RegisteredOwner>Aston Ecole</RegisteredOwner> -<DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet> -<FirstLogonCommands> -<SynchronousCommand wcm:action="add"> -<Description>Control Panel View</Description> -<Order>1</Order> -<CommandLine>reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v StartupPage /t REG_DWORD /d 0 /f</CommandLine> -<RequiresUserInput>true</RequiresUserInput> -</SynchronousCommand> -<SynchronousCommand wcm:action="add"> -<Order>2</Order> -<Description>Control Panel Icon Size</Description> -<RequiresUserInput>false</RequiresUserInput> -<CommandLine>reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v AllItemsIconView /t REG_DWORD /d 1 /f</CommandLine> -</SynchronousCommand> -</FirstLogonCommands> -<TimeZone>Romance Standard Time</TimeZone> -</component> -</settings> -</unattend> \ No newline at end of file diff --git a/Unattend/SRV.xml b/Unattend/SRV.xml deleted file mode 100644 index 7cbbd89..0000000 --- a/Unattend/SRV.xml +++ /dev/null @@ -1,66 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<unattend xmlns="urn:schemas-microsoft-com:unattend"> - <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"> - <ComputerName>*</ComputerName> - <RegisteredOrganization>Aston Ecole</RegisteredOrganization> - <RegisteredOwner>Aston Ecole</RegisteredOwner> - <ShowWindowsLive>false</ShowWindowsLive> - </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>fr-fr</InputLocale> - <SystemLocale>fr-fr</SystemLocale> - <UILanguage>fr-fr</UILanguage> - <UserLocale>fr-fr</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"> - <RegisteredOrganization>Aston Ecole</RegisteredOrganization> - <RegisteredOwner>Aston Ecole</RegisteredOwner> - <UserAccounts> - <AdministratorPassword> - <Value>Pa$$w0rd</Value> - <PlainText>True</PlainText> - </AdministratorPassword> - </UserAccounts> - <AutoLogon> - <Password> - <Value>Pa$$w0rd</Value> - <PlainText>True</PlainText> - </Password> - <Domain>.</Domain> - <Enabled>true</Enabled> - <LogonCount>1</LogonCount> - <Username>Administrateur</Username> - </AutoLogon> - <FirstLogonCommands> - <SynchronousCommand wcm:action="add"> - <CommandLine>c:\conf\deploy.cmd</CommandLine> - <Description>Post Install Script</Description> - <Order>1</Order> - </SynchronousCommand> - </FirstLogonCommands> - <OOBE> - <HideEULAPage>true</HideEULAPage> - </OOBE> - <Display> - <ColorDepth>32</ColorDepth> - <HorizontalResolution>1024</HorizontalResolution> - <VerticalResolution>768</VerticalResolution> - </Display> - </component> - </settings> - <settings pass="generalize"> - <component name="Microsoft-Windows-Security-SPP" 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"> - <SkipRearm>1</SkipRearm> - </component> - <component name="Microsoft-Windows-ServerManager-SvrMgrNc" 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"> - <DoNotOpenServerManagerAtLogon>false</DoNotOpenServerManagerAtLogon> - </component> - <component name="Microsoft-Windows-OutOfBoxExperience" 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"> - <DoNotOpenInitialConfigurationTasksAtLogon>true</DoNotOpenInitialConfigurationTasksAtLogon> - </component> - </settings> - <cpi:offlineImage cpi:source="catalog:c:/users/maintenance/documents/clg/install_windows server 2008 r2 serverstandard.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> -</unattend>