diff --git a/Guests/Arc-CLI.conf b/Guests/Arc-CLI.conf deleted file mode 100644 index 656861c..0000000 --- a/Guests/Arc-CLI.conf +++ /dev/null @@ -1,13 +0,0 @@ -pushd routing ip relay - -Install - -set global loglevel = ERROR - -add dhcpserver 192.168.8.1 - -add interface name = "Arc-CLI" - -set interface name = "Arc-CLI" relaymode = enable maxhop = 6 minsecs = 6 - -popd diff --git a/Guests/Arc-SRV.conf b/Guests/Arc-SRV.conf deleted file mode 100644 index 7dfc071..0000000 --- a/Guests/Arc-SRV.conf +++ /dev/null @@ -1,11 +0,0 @@ -pushd routing ip relay - -Install - -set global loglevel = ERROR - -add dhcpserver 192.168.8.1 -add interface name = "Arc-SRV" -set interface name = "Arc-SRV" relaymode = enable maxhop = 6 minsecs = 6 - -popd diff --git a/Guests/Bou-LAN.conf b/Guests/Bou-LAN.conf deleted file mode 100644 index 6e29141..0000000 --- a/Guests/Bou-LAN.conf +++ /dev/null @@ -1,11 +0,0 @@ -pushd routing ip relay - -Install - -set global loglevel = ERROR - -add dhcpserver 192.168.8.1 -add interface name = "Bou-LAN" -set interface name = "Bou-LAN" relaymode = enable maxhop = 6 minsecs = 6 - -popd diff --git a/Guests/WAN.conf b/Guests/WAN.conf deleted file mode 100644 index 01cd16e..0000000 --- a/Guests/WAN.conf +++ /dev/null @@ -1,11 +0,0 @@ -pushd routing ip relay - -Install - -set global loglevel = ERROR - -add dhcpserver 192.168.8.1 - -set interface name = "WAN" relaymode = enable maxhop = 6 minsecs = 6 - -popd diff --git a/Host/Serveurs.ps1 b/Host/Serveurs.ps1 index 8683caa..340ff20 100644 --- a/Host/Serveurs.ps1 +++ b/Host/Serveurs.ps1 @@ -11,9 +11,9 @@ echo "Adding and configuring SRV-01" cp D:\VHD\Base\Base_SRV_diff.vhdx D:\VHD\SRV-01.vhdx Mount-VHD d:\VHD\SRV-01.vhdx -Copy-Item d:\Unattend\SRV-01.xml -Destination e:\Windows\Panther\Unattend.xml +Copy-Item D:\Scripts\Unattend\FullUnattend-srv.xml -Destination e:\Windows\Panther\Unattend.xml mkdir e:\Tools\Scripts -Copy-item d:\Scripts\Guests\SRV-01.ps1 E:\Tools\scripts +Copy-item d:\Scripts\Guests\SRV-01.ps1 E:\Tools\scripts\boot.ps1 Dismount-VHD d:\VHD\SRV-01.vhdx $vms = @{ @@ -40,9 +40,9 @@ echo "Adding and configuring RTR-01" cp D:\VHD\Base\Base_SRV_diff.vhdx D:\VHD\RTR-01.vhdx Mount-VHD d:\VHD\RTR-01.vhdx -Copy-Item d:\Unattend\RTR-01.xml -Destination e:\Windows\Panther\Unattend.xml +Copy-Item D:\Scripts\Unattend\FullUnattend-srv.xml -Destination e:\Windows\Panther\Unattend.xml mkdir e:\Tools\Scripts -Copy-item d:\Scripts\Guests\RTR-01.ps1 E:\Tools\scripts +Copy-item d:\Scripts\Guests\RTR-01.ps1 E:\Tools\scripts\boot.ps1 Dismount-VHD d:\VHD\RTR-01.vhdx $vms = @{ @@ -72,9 +72,9 @@ echo "Adding and configuring RTR-02" cp D:\VHD\Base\Base_SRV_diff.vhdx D:\VHD\RTR-02.vhdx Mount-VHD d:\VHD\RTR-02.vhdx -Copy-Item d:\Unattend\RTR-02.xml -Destination e:\Windows\Panther\Unattend.xml +Copy-Item D:\Scripts\Unattend\FullUnattend-srv.xml -Destination e:\Windows\Panther\Unattend.xml mkdir e:\Tools\Scripts -Copy-item D:\scripts\Guests\RTR-02.ps1 E:\Tools\scripts +Copy-item D:\scripts\Guests\RTR-02.ps1 E:\Tools\scripts\boot.ps1 Dismount-VHD d:\VHD\RTR-02.vhdx $vms = @{ @@ -104,9 +104,9 @@ echo "Adding and configuring RTR-03" cp D:\VHD\Base\Base_SRV_diff.vhdx D:\VHD\RTR-03.vhdx Mount-VHD d:\VHD\RTR-03.vhdx -Copy-Item d:\Unattend\RTR-03.xml -Destination e:\Windows\Panther\Unattend.xml +Copy-Item D:\Scripts\Unattend\FullUnattend-srv.xml -Destination e:\Windows\Panther\Unattend.xml mkdir e:\Tools\Scripts -Copy-item d:\Scripts\Guests\RTR-03.ps1 E:\Tools\scripts +Copy-item d:\Scripts\Guests\RTR-03.ps1 E:\Tools\scripts\boot.ps1 Dismount-VHD d:\VHD\RTR-03.vhdx $vms = @{ diff --git a/Unattend/CLI.xml b/Unattend/CLI.xml new file mode 100644 index 0000000..8fafe26 --- /dev/null +++ b/Unattend/CLI.xml @@ -0,0 +1,151 @@ + + + + +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 new file mode 100644 index 0000000..7cbbd89 --- /dev/null +++ b/Unattend/SRV.xml @@ -0,0 +1,66 @@ +<?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> diff --git a/deploy.cmd b/deploy.cmd new file mode 100644 index 0000000..a5a29e3 --- /dev/null +++ b/deploy.cmd @@ -0,0 +1,3 @@ +powershell c:\Tools\scripts\boot.ps1 +start c:\bginfo\startup.cmd +start c:\bginfo\bginfo.cmd