- Marcin Bojko - marcinbojko.pl(at)gmail.com
This script adds required Windows features and firewall settings as well. Also, install Chocolatey provider, installs doublecmd and sysinternals package, installs and cofigures Puppet Agent for WIndows (3.x or 4.x)
- added storing variables in hv_default.txt file
- added
quiet_mode
variable for 'in script' processing - fixed error with $choco_extra_source_name variable being not parsed for
choco source
part - rename script
default_set.ps1
tohv_default.ps1
- checked with official Hyper-V 2016 versions
- added powershell (5.0) to the list of installed packages
- added variable for puppet package name (Puppet3 or Puppet4) for chocolatey
- added '--allow-empty-checksums' for Chocolatey packages install
- fixed bug in parsing PUPPET_MASTER_SERVER variable
- changed filtering of network interfaces to exclude microsoft virtual network interfaces
- added features for chocolatey due to changes in 0.10.0
- first test with Hyper-V 2016 TP5
- switched to variables in some code parts
- added values for JumboPacket and VMQ disable
- improved logic for adding computer to domain
- switched to Powershell v3 for whole script
- switched from *.cmd extension to *.ps1
- Syntax checking for Group Rules Firewall Install
- switch to Powershell for the rest of the script
- Switching to PowerShell for firewall features.
- Install chocolatey at the end
- at least one configured network interface (IP/Subnet/GW/DNS)
- installation source left on (usb/dvd) - required for winsxs folder
powershell .\hv_default.ps1
If script can find file hv_default.txt
all parameters can be read from file, overwriting default values.
Separator is set on " = ". If you want to skip line that start with #
my_foreman_server = test.test.com
choco_packages = doublecmd;visualstudiocode;powershell
my_domain_name = domain.test
my_domain_ou_path = OU=Test,DC=dc,DC=example,DC=test
choco_extra_source = https://www.myget.org/F/public-choco2
choco_extra_source_name = test
jumbo_key_value = 6000
puppet_agent = puppet
quiet_mode = true