Last active
April 14, 2024 12:27
-
-
Save Sauraus/6030714 to your computer and use it in GitHub Desktop.
Veewee - Windows 2008R2 SP1 VL - WebServer setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<unattend xmlns="urn:schemas-microsoft-com:unattend"> | |
<servicing></servicing> | |
<settings pass="windowsPE"> | |
<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> | |
<Disk wcm:action="add"> | |
<CreatePartitions> | |
<CreatePartition wcm:action="add"> | |
<Order>1</Order> | |
<Type>Primary</Type> | |
<Size>10000</Size> | |
</CreatePartition> | |
</CreatePartitions> | |
<ModifyPartitions> | |
<ModifyPartition wcm:action="add"> | |
<Extend>false</Extend> | |
<Format>NTFS</Format> | |
<Letter>C</Letter> | |
<Order>1</Order> | |
<PartitionID>1</PartitionID> | |
<Label>Windows 2008R2 Webserver</Label> | |
</ModifyPartition> | |
</ModifyPartitions> | |
<DiskID>0</DiskID> | |
<WillWipeDisk>true</WillWipeDisk> | |
</Disk> | |
<WillShowUI>OnError</WillShowUI> | |
</DiskConfiguration> | |
<UserData> | |
<AcceptEula>true</AcceptEula> | |
<FullName>Vagrant Fullname</FullName> | |
<Organization>Vagrant Inc</Organization> | |
<!-- Product Key from http://technet.microsoft.com/en-us/library/ff793406.aspx --> | |
<ProductKey> | |
<WillShowUI>Never</WillShowUI> | |
</ProductKey> | |
</UserData> | |
<ImageInstall> | |
<OSImage> | |
<InstallTo> | |
<DiskID>0</DiskID> | |
<PartitionID>1</PartitionID> | |
</InstallTo> | |
<WillShowUI>OnError</WillShowUI> | |
<InstallToAvailablePartition>false</InstallToAvailablePartition> | |
<InstallFrom> | |
<MetaData wcm:action="add"> | |
<Key>/IMAGE/NAME</Key> | |
<Value>Windows Server 2008 R2 SERVERWEB</Value> | |
</MetaData> | |
</InstallFrom> | |
</OSImage> | |
</ImageInstall> | |
</component> | |
<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>en-US</UILanguage> | |
</SetupUILanguage> | |
<InputLocale>en-US</InputLocale> | |
<SystemLocale>en-US</SystemLocale> | |
<UILanguage>en-US</UILanguage> | |
<UILanguageFallback>en-US</UILanguageFallback> | |
<UserLocale>en-US</UserLocale> | |
</component> | |
</settings> | |
<settings pass="oobeSystem"> | |
<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"> | |
<UserAccounts> | |
<AdministratorPassword> | |
<Value>dgBhAGcAcgBhAG4AdABBAGQAbQBpAG4AaQBzAHQAcgBhAHQAbwByAFAAYQBzAHMAdwBvAHIAZAA=</Value> | |
<PlainText>false</PlainText> | |
</AdministratorPassword> | |
<LocalAccounts> | |
<LocalAccount wcm:action="add"> | |
<Password> | |
<Value>dgBhAGcAcgBhAG4AdABQAGEAcwBzAHcAbwByAGQA</Value> | |
<PlainText>false</PlainText> | |
</Password> | |
<Description>Vagrant User</Description> | |
<DisplayName>vagrant</DisplayName> | |
<Group>administrators</Group> | |
<Name>vagrant</Name> | |
</LocalAccount> | |
</LocalAccounts> | |
</UserAccounts> | |
<OOBE> | |
<HideEULAPage>true</HideEULAPage> | |
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE> | |
<NetworkLocation>Home</NetworkLocation> | |
</OOBE> | |
<AutoLogon> | |
<Password> | |
<Value>dgBhAGcAcgBhAG4AdABQAGEAcwBzAHcAbwByAGQA</Value> | |
<PlainText>false</PlainText> | |
</Password> | |
<Username>administrator</Username> | |
<Enabled>true</Enabled> | |
</AutoLogon> | |
<FirstLogonCommands> | |
<SynchronousCommand wcm:action="add"> | |
<CommandLine>cmd.exe /c winrm quickconfig -q</CommandLine> | |
<Description>Win RM quickconfig -q</Description> | |
<Order>20</Order> | |
<RequiresUserInput>true</RequiresUserInput> | |
</SynchronousCommand> | |
<SynchronousCommand wcm:action="add"> | |
<CommandLine>cmd.exe /c winrm quickconfig -transport:http</CommandLine> | |
<Description>Win RM quickconfig -transport:http</Description> | |
<Order>21</Order> | |
<RequiresUserInput>true</RequiresUserInput> | |
</SynchronousCommand> | |
<SynchronousCommand wcm:action="add"> | |
<CommandLine>cmd.exe /c winrm set winrm/config @{MaxTimeoutms="1800000"}</CommandLine> | |
<Description>Win RM MaxTimoutms</Description> | |
<Order>22</Order> | |
<RequiresUserInput>true</RequiresUserInput> | |
</SynchronousCommand> | |
<SynchronousCommand wcm:action="add"> | |
<CommandLine>cmd.exe /c winrm set winrm/config/winrs @{MaxMemoryPerShellMB="300"}</CommandLine> | |
<Description>Win RM MaxMemoryPerShellMB</Description> | |
<Order>23</Order> | |
<RequiresUserInput>true</RequiresUserInput> | |
</SynchronousCommand> | |
<SynchronousCommand wcm:action="add"> | |
<CommandLine>cmd.exe /c winrm set winrm/config/service @{AllowUnencrypted="true"}</CommandLine> | |
<Description>Win RM AllowUnencrypted</Description> | |
<Order>24</Order> | |
<RequiresUserInput>true</RequiresUserInput> | |
</SynchronousCommand> | |
<SynchronousCommand wcm:action="add"> | |
<CommandLine>cmd.exe /c winrm set winrm/config/service/auth @{Basic="true"}</CommandLine> | |
<Description>Win RM auth Basic</Description> | |
<Order>25</Order> | |
<RequiresUserInput>true</RequiresUserInput> | |
</SynchronousCommand> | |
<SynchronousCommand wcm:action="add"> | |
<CommandLine>cmd.exe /c winrm set winrm/config/client/auth @{Basic="true"}</CommandLine> | |
<Description>Win RM auth Basic</Description> | |
<Order>26</Order> | |
<RequiresUserInput>true</RequiresUserInput> | |
</SynchronousCommand> | |
<SynchronousCommand wcm:action="add"> | |
<CommandLine>cmd.exe /c winrm set winrm/config/listener?Address=*+Transport=HTTP @{Port="5985"} </CommandLine> | |
<Description>Win RM listener Address/Port</Description> | |
<Order>27</Order> | |
<RequiresUserInput>true</RequiresUserInput> | |
</SynchronousCommand> | |
<SynchronousCommand wcm:action="add"> | |
<CommandLine>cmd.exe /c netsh advfirewall firewall set rule group="remote administration" new enable=yes </CommandLine> | |
<Description>Win RM adv firewall enable</Description> | |
<Order>29</Order> | |
<RequiresUserInput>true</RequiresUserInput> | |
</SynchronousCommand> | |
<SynchronousCommand wcm:action="add"> | |
<CommandLine>cmd.exe /c net stop winrm </CommandLine> | |
<Description>Stop Win RM Service </Description> | |
<Order>28</Order> | |
<RequiresUserInput>true</RequiresUserInput> | |
</SynchronousCommand> | |
<SynchronousCommand wcm:action="add"> | |
<CommandLine>cmd.exe /c net start winrm </CommandLine> | |
<Description>Start Win RM Service</Description> | |
<Order>32</Order> | |
<RequiresUserInput>true</RequiresUserInput> | |
</SynchronousCommand> | |
<SynchronousCommand wcm:action="add"> | |
<CommandLine>powershell -Command "Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force"</CommandLine> | |
<Description>Set PowerShell ExecutionPolicy</Description> | |
<Order>1</Order> | |
<RequiresUserInput>true</RequiresUserInput> | |
</SynchronousCommand> | |
<SynchronousCommand wcm:action="add"> | |
<Order>6</Order> | |
<CommandLine>cmd.exe /c certutil -addstore -f "TrustedPublisher" a:\oracle-cert.cer</CommandLine> | |
<Description>Install Oracle TrustedPublisher certificate</Description> | |
<RequiresUserInput>true</RequiresUserInput> | |
</SynchronousCommand> | |
<SynchronousCommand wcm:action="add"> | |
<Order>7</Order> | |
<CommandLine>e:\VBoxWindowsAdditions-amd64.exe /S</CommandLine> | |
<Description>Install Oracle VirtualBox Guest Tools</Description> | |
<RequiresUserInput>true</RequiresUserInput> | |
</SynchronousCommand> | |
<SynchronousCommand wcm:action="add"> | |
<Order>3</Order> | |
<RequiresUserInput>true</RequiresUserInput> | |
<Description>Modify Local Security Settings</Description> | |
<CommandLine>cmd.exe /c secedit /configure /db %TEMP%\secedit2.sdb /cfg a:\Vagrant.inf /overwrite /areas SECURITYPOLICY REGKEYS /quiet</CommandLine> | |
</SynchronousCommand> | |
<SynchronousCommand wcm:action="add"> | |
<Order>2</Order> | |
<RequiresUserInput>true</RequiresUserInput> | |
<CommandLine>powershell -Command "Enable-PSRemoting -Force"</CommandLine> | |
<Description>Enable PowerShell Remoting</Description> | |
</SynchronousCommand> | |
<SynchronousCommand wcm:action="add"> | |
<Order>4</Order> | |
<CommandLine>cmd.exe /c regedit /s a:\Vagrant.reg</CommandLine> | |
<Description>Modify registry to disable server config pop-ups and various other options</Description> | |
<RequiresUserInput>true</RequiresUserInput> | |
</SynchronousCommand> | |
<SynchronousCommand wcm:action="add"> | |
<Order>5</Order> | |
<RequiresUserInput>true</RequiresUserInput> | |
<Description>RDP adv firewall enable</Description> | |
<CommandLine>cmd.exe /c netsh advfirewall firewall set rule group="Remote Desktop" new enable=yes </CommandLine> | |
</SynchronousCommand> | |
<SynchronousCommand wcm:action="add"> | |
<Order>31</Order> | |
<CommandLine>cmd.exe /c sc config winrm start= auto</CommandLine> | |
<RequiresUserInput>true</RequiresUserInput> | |
<Description>No-Delay Auto start WinRM on boot</Description> | |
</SynchronousCommand> | |
<SynchronousCommand wcm:action="add"> | |
<Order>30</Order> | |
<RequiresUserInput>true</RequiresUserInput> | |
<CommandLine>cmd.exe /c netsh advfirewall set allprofiles state off</CommandLine> | |
<Description>Disable Windows Firewall</Description> | |
</SynchronousCommand> | |
</FirstLogonCommands> | |
<ShowWindowsLive>false</ShowWindowsLive> | |
</component> | |
</settings> | |
<settings pass="specialize"> | |
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> | |
<OEMInformation> | |
<HelpCustomized>false</HelpCustomized> | |
</OEMInformation> | |
<!-- Rename computer here. --> | |
<ComputerName>vagrant-2008R2</ComputerName> | |
<TimeZone>Pacific Standard Time</TimeZone> | |
<RegisteredOwner></RegisteredOwner> | |
</component> | |
<component name="Microsoft-Windows-Security-SPP-UX" 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"> | |
<SkipAutoActivation>true</SkipAutoActivation> | |
</component> | |
<component name="Security-Malware-Windows-Defender" 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"> | |
<DisableAntiSpyware>true</DisableAntiSpyware> | |
</component> | |
<component name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="wow64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<SkipAutoActivation>true</SkipAutoActivation> | |
</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> | |
<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> | |
</settings> | |
<cpi:offlineImage cpi:source="wim:e:/sources/install.wim#Windows Server 2008 R2 SERVERWEB" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> | |
</unattend> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
Veewee::Session.declare({ | |
:os_type_id => 'Windows2008_64', | |
:iso_file => "en_windows_server_2008_r2_with_sp1_vl_build_x64_dvd_617403.iso", | |
:iso_md5 => "8d397b69135d207452a78c3c3051339d", | |
:iso_src => "INSERT YOUR LOCATION HERE/en_windows_server_2008_r2_with_sp1_vl_build_x64_dvd_617403.iso", | |
:iso_download_timeout => "1000", | |
:cpu_count => '1', | |
:memory_size => '384', | |
:disk_size => '10140', :disk_format => 'VHD', :hostiocache => 'on', :controller_kind => 'sata', :nonrotational => 'on', | |
:virtualbox => { | |
:vm_options => [ | |
'acpi' => 'on', | |
'pae' => 'on', | |
'ioapic' => 'on', | |
'vram' => '30', | |
'nestedpaging' => 'on', | |
'rtcuseutc' => 'on', | |
'nictype1' => '82545EM', | |
'natpf1' => 'guestrdp,tcp,,13389,,3389' | |
] | |
}, | |
:floppy_files => [ | |
"Autounattend.xml", | |
"oracle-cert.cer", | |
"Vagrant.inf", | |
"Vagrant.reg" | |
], | |
:boot_wait => '1', | |
:winrm_user => 'vagrant', | |
:winrm_password => 'vagrant', | |
:winrm_login_timeout => '10000', | |
:winrm_host_port => '15985', | |
:reboot_cmd => 'powershell "Restart-Computer -Force"', | |
:shutdown_cmd => 'powershell "Stop-Computer -Force"' | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unicode] | |
Unicode=yes | |
[Version] | |
signature="$CHICAGO$" | |
Revision=1 | |
[System Access] | |
MinimumPasswordAge = 0 | |
MaximumPasswordAge = -1 | |
PasswordComplexity = 0 | |
[Registry Values] | |
MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\EnableInstallerDetection=4,0 | |
MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA=4,0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ServerManager] | |
"DoNotOpenServerManagerAtLogon"=dword:00000001 | |
"OemExtensionXmlFilePath"=hex(2):00,00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ServerManager\BestPractices] | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ServerManager\BestPractices\2] | |
"ModelId"="Microsoft/Windows/WebServer" | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ServerManager\Oobe] | |
"DoNotOpenInitialConfigurationTasksAtLogon"=dword:00000001 | |
"VisitedTasks"=hex(7):00,00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ServerManager\OobOptionalComponents] | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Reliability] | |
"ShutdownReasonOn"=dword:00000000 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server] | |
"fDenyTSConnections"=dword:00000000 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp] | |
"UserAuthentication"=dword:00000001 | |
[HKEY_CURRENT_USER\Software\Sysinternals\SDelete] | |
"EulaAccepted"=dword:00000001 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment