-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwin2012-base.ps1
76 lines (64 loc) · 2.21 KB
/
win2012-base.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# The following settings will ask you for your windows password and then
# successfuly reboot the machine everytime it needs to. After Boxstarter is
# done autologin won't be enabled.
$Boxstarter.RebootOk=$false # Allow reboots?
$Boxstarter.NoPassword=$false # Is this a machine with no login password?
$Boxstarter.AutoLogin=$false # Save my password securely and auto-login after a reboot
# Allow running PowerShell scripts
Update-ExecutionPolicy Unrestricted
# Remote access / support
Enable-RemoteDesktop
# Install Windows Update and reboot
Install-WindowsUpdate -acceptEula
if (Test-PendingReboot) { Invoke-Reboot }
# Power Options - disable hibernation and disable monitor standby
Write-Host "Configuring power options..."
powercfg -change -monitor-timeout-ac 0
powercfg -change -standby-timeout-ac 0
powercfg -h off
# Windows Configuration
Install-WindowsUpdate -AcceptEula
Enable-RemoteDesktop
Update-ExecutionPolicy Unrestricted
Disable-InternetExplorerESC
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Set-StartScreenOptions -EnableListDesktopAppsFirst
Set-WindowsExplorerOptions -EnableShowFileExtensions -EnableShowFullPathInTitleBar
# Install terminal font for RDM
$FONTS = 0x14
$objShell = New-Object -ComObject Shell.Application
$objFolder = $objShell.Namespace($FONTS)
$tempFile = $env:TEMP + "\DejaVu Sans Mono for Powerline.ttf"
(new-object System.Net.WebClient).DownloadFile('http://connexeon.link/download-rdm-font', $tempFile);
$objFolder.CopyHere($tempFile);
rm $tempFile -rec
#region Chocolatey all the way
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco feature enable -n=allowEmptyChecksums
choco feature enable -n=allowGlobalConfirmation
cinst chocolatey-windowsupdate.extension
#endregion
#region DotNetAndPowershell
cinst PowerShell
cinst WindowsAzurePowershell
cinst DotNet4.7
#endregion
#region Runtimes
cinst jre8
cinst jdk8
cinst python
cinst scriptcs
cinst vcredist-all
#endregion
#region Management & Tools
cinst 7zip.install
cinst sysinternals
cinst treesizefree
cinst notepadplusplus
cinst processhacker
cinst wincommandpaste
#endregion
#region Browsers
cinst GoogleChrome
#cinst firefox -installArgs l=en-GB
#endregion