Skip to content

Instantly share code, notes, and snippets.

@andrewbbrown
andrewbbrown / Boxstarter-Win10-BaseDevSettings-Updates.ps1
Created April 16, 2018 00:27
Boxstarter-Win10-BaseDevSettings-Updates.ps1
try {
# Boxstarter options
$Boxstarter.RebootOk=$true
$Boxstarter.NoPassword=$false # Is this a machine with no logon password?
$Boxstarter.AutoLogin=$true
Write-BoxstarterMessage "Ensuring ExecutionPolicy to Unrestricted..."
Update-ExecutionPolicy Unrestricted
Write-BoxstarterMessage "Ensuring UAC is disabled..."
@andrewbbrown
andrewbbrown / Boxstarter-Win-RenameComputer-DC1.ps1
Created April 16, 2018 00:22
Boxstarter-Win-RenameComputer-DC1.ps1
try {
# Boxstarter options
$Boxstarter.RebootOk=$true
$Boxstarter.NoPassword=$false # Is this a machine with no logon password?
$Boxstarter.AutoLogin=$true
Write-BoxstarterMessage "Ensuring Computer name is correct..."
$ServerName = "DC1"
$HostName = $($env:computername).ToUpper()
if ($HostName -ne $ServerName) { Rename-Computer -NewName $ServerName -restart }
@andrewbbrown
andrewbbrown / Boxstarter-Win-SetCentralTimeZone.ps1
Created April 16, 2018 00:06
Boxstarter-Win-SetCentralTimeZone.ps1
try {
# Boxstarter options
$Boxstarter.RebootOk=$true
$Boxstarter.NoPassword=$false # Is this a machine with no logon password?
$Boxstarter.AutoLogin=$true
Write-BoxstarterMessage "Ensuring Time Zone is set to Central Standard Time"
& C:\Windows\system32\tzutil /s "Central Standard Time"
}
@andrewbbrown
andrewbbrown / Boxstarter-Win2k16-BaseDevSettings-Updates.ps1
Created April 16, 2018 00:01
Boxstarter-Win2k16-BaseDevSettings-Updates.ps1
try {
# Boxstarter options
$Boxstarter.RebootOk=$true
$Boxstarter.NoPassword=$false # Is this a machine with no logon password?
$Boxstarter.AutoLogin=$true
Write-BoxstarterMessage "Ensuring ExecutionPolicy to Unrestricted..."
Update-ExecutionPolicy Unrestricted
Write-BoxstarterMessage "Ensuring UAC is disabled..."
@andrewbbrown
andrewbbrown / filename.txt
Created February 23, 2018 18:40
Test Description
content goes here
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 ####
<#
.Synopsis
Converts a PowerShell object to a Markdown table.
.EXAMPLE
$data | ConvertTo-Markdown
.EXAMPLE
ConvertTo-Markdown($data)
#>
Function ConvertTo-Markdown {
[CmdletBinding()]
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()
@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
Update-ExecutionPolicy Unrestricted
Disable-UAC