Skip to content

Instantly share code, notes, and snippets.

@andrewbbrown
andrewbbrown / 01-ConfigAndUpdateWindows.txt
Created January 15, 2018 07:53
Boxstarter script to configure and update Dev OS
Update-ExecutionPolicy Unrestricted
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar
Enable-RemoteDesktop
Disable-InternetExplorerESC
Set-TaskbarOptions -Size Small
Enable-MicrosoftUpdate
Install-WindowsUpdate -AcceptEula
CINST dotnet3.5
CINST dotnet4.7
@andrewbbrown
andrewbbrown / 01-SetupVMWareDevMachine.txt
Last active January 15, 2018 08:59
Creating a Developer Workstation
Update-ExecutionPolicy Unrestricted
Disable-UAC
#########################
#### requires reboot ####
#########################
CINST dotnet3.5
CINST dotnet4.7
CINST powershell
try {
# Boxstarter options
$Boxstarter.RebootOk=$true
$Boxstarter.NoPassword=$false # Is this a machine with no logon password?
$Boxstarter.AutoLogin=$true
Update-ExecutionPolicy Unrestricted
Disable-UAC
Write-BoxstarterMessage "Turning off Windows Hibernation"
@andrewbbrown
andrewbbrown / Creat-AD-Forest.txt
Last active June 21, 2018 04:17
This creates AD forest...
try {
# Boxstarter options
$Boxstarter.RebootOk=$true
$Boxstarter.NoPassword=$false # Is this a machine with no logon password?
$Boxstarter.AutoLogin=$true
Write-BoxstarterMessage "Setting Windows Explorer Settings!!"
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar
Enable-RemoteDesktop
try {
# Boxstarter options
$Boxstarter.RebootOk=$true
$Boxstarter.NoPassword=$false # Is this a machine with no logon password?
$Boxstarter.AutoLogin=$true
# Create an IPv4 DHCP Server Scope
Add-DhcpServerv4Scope -Name "ManagementNetwork" -StartRange 10.67.36.30 -EndRange 10.67.36.39 -SubnetMask 255.255.255.0 -LeaseDuration = 00.00:30:30 -State Active
# Set the Router Option value
@andrewbbrown
andrewbbrown / SQL-Server-Installer.txt
Created January 24, 2018 09:58
SQL-Server-Installer.txt
try {
# Boxstarter options
$Boxstarter.RebootOk=$true
$Boxstarter.NoPassword=$false # Is this a machine with no logon password?
$Boxstarter.AutoLogin=$true
Update-ExecutionPolicy Unrestricted
Disable-UAC
#########################
try {
# Boxstarter options
$Boxstarter.RebootOk=$true
$Boxstarter.NoPassword=$false # Is this a machine with no logon password?
$Boxstarter.AutoLogin=$true
Update-ExecutionPolicy Unrestricted
Disable-UAC
#########################
#### requires reboot ####
try {
# Boxstarter options
$Boxstarter.RebootOk=$true
$Boxstarter.NoPassword=$false # Is this a machine with no logon password?
$Boxstarter.AutoLogin=$true
Update-ExecutionPolicy Unrestricted
Disable-UAC
@andrewbbrown
andrewbbrown / EHC-HL2-Win2k12R2-01-InstallADFeatures-CreateADForest.txt
Last active January 24, 2018 23:48
This has all of the AD and DNS Zone Features taken out...
try {
# Boxstarter options
$Boxstarter.RebootOk=$true
$Boxstarter.NoPassword=$false # Is this a machine with no logon password?
$Boxstarter.AutoLogin=$true
# Install Remote Server Administration Tools
Write-BoxstarterMessage "Installing Remote Server Administration Tools - Role Tools"
#This one is a little overkill and includes a lot of extra features... use Get-WindowsFeature to see all included
#Get-WindowsFeature RSAT | Install-WindowsFeature -IncludeAllSubFeature
try {
# Boxstarter options
$Boxstarter.RebootOk=$true
$Boxstarter.NoPassword=$false # Is this a machine with no logon password?
$Boxstarter.AutoLogin=$true
# Rename Computer
Write-BoxstarterMessage "Ensuring Server is named correctly"
$ServerName = "HL1-ISCSI-01"
$HostName = $($env:computername).ToUpper()