-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathrobdmoore.ps1
125 lines (107 loc) · 4.53 KB
/
robdmoore.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
param(
[string]$update = "false"
)
if ($update -eq "false") {
Write-Warning "Have you Bitlocker encrypted the drive?`r`n"
Read-Host
}
Import-Module "$(Split-Path $MyInvocation.MyCommand.Path)\repave.psm1" -Force
Invoke-Repave {
# Timezone
tzutil /s "W. Australia Standard Time"
# Dev directories
mkdir c:\dev\oss -ErrorAction SilentlyContinue | Out-Null
mkdir c:\dev\engagements -ErrorAction SilentlyContinue | Out-Null
mkdir c:\dev\temp -ErrorAction SilentlyContinue | Out-Null
# Windows Explorer
Set-AdvancedWindowsExplorerOptions
Add-ExplorerFavourite "Projects" "c:\dev\oss"
Add-ExplorerFavourite "Engagements" "c:\dev\engagements"
# Encryption.pfx
if ($update -eq "false") {
Install-EncryptingFilesystemCert Encryption.pfx EncryptionRoot.pfx
}
# SSD
if (-not (Test-VirtualMachine)) {
Install-IntelRST
}
# Git
Install-Git
# IIS
Install-IIS
Install-ChocolateyPackage UrlRewrite
# Visual Studio
Install-VisualStudio2013Iso "isos\en_visual_studio_ultimate_2013_with_update_2_x86_dvd_4238214.iso" {
Install-VS2013Extension "http://visualstudiogallery.msdn.microsoft.com/6a2ae0fa-bd4e-4712-9170-abe92c63c05c/file/109467/20/MattDavies.TortoiseGitToolbar.vsix"
Install-VS2013Extension "http://visualstudiogallery.msdn.microsoft.com/1f6ec6ff-e89b-4c47-8e79-d2d68df894ec/file/37912/30/RazorGenerator.vsix"
Install-VS2013Extension "http://visualstudiogallery.msdn.microsoft.com/71a4e9bd-f660-448f-bd92-f5a65d39b7f0/file/52593/29/chutzpah.visualstudio.vsix"
Install-VS2013Extension "http://visualstudiogallery.msdn.microsoft.com/f8741f04-bae4-4900-81c7-7c9bfb9ed1fe/file/66979/24/Chutzpah.VS2012.vsix"
Install-VS2013Extension "http://visualstudiogallery.msdn.microsoft.com/c6d1c265-7007-405c-a68b-5606af238ece/file/106247/16/SquaredInfinity.VSCommands.VS12.vsix"
Install-VS2013Extension "http://visualstudiogallery.msdn.microsoft.com/69023d00-a4f9-4a34-a6cd-7e854ba318b5/file/55948/24/SlowCheetah.vsix"
}
Install-ChocolateyPackage XUnit.VisualStudio
Install-ChocolateyPackage ReSharper
Restore-ReSharperExtensions "packages.config"
# Web Deploy
Install-WebDeploy35
# Azure SDK
Install-AzureSDK2.3
Install-AzureManagementStudio
# Utils
Install-ChocolateyPackage fiddler4
Install-ChocolateyPackage sysinternals
Install-ChocolateyPackage windirstat
Install-ChocolateyPackage 7zip
Install-ChocolateyPackage AdobeReader
Install-ChocolateyPackage vim
Install-ChocolateyPackage lockhunter
Install-ChocolateyPackage paint.net
Install-ChocolateyPackage linqpad4 -RunIfInstalled { Add-Todo "Register linqpad via: LINQPad.exe -activate=PRODUCT_CODE" }
# Internet
Install-ChocolateyPackage GoogleChrome
Install-ChocolateyPackage Firefox -RunIfInstalled { Add-Todo "Set Firefox to not auto-update if using for Selenium testing" }
Install-ChocolateyPackage Skype
Install-ChocolateyPackage Dropbox
Install-ChocolateyPackage lastpass
# Office
Install-Office2013Iso "isos\SW_DVD5_Office_Professional_Plus_2013_64Bit_English_MLF_X18-55297.iso" "office2013.msp"
Install-OutlookSignatures "Signatures"
# Other
Install-ChocolateyPackage steam -RunIfInstalled { Add-Todo "Restore game backups and save games" }
Install-ChocolateyPackage nodejs.install
Install-ChocolateyPackage ruby
if (-not (Test-VirtualMachine)) {
Install-ITunesMusicLibrary "iTunes"
Install-ChocolateyPackage iTunes
Install-HyperV
}
Install-SQLServerExpress2014AndManagementStudio
# Pin to taskbar
Set-TaskBarPinChrome
Set-TaskBarPinOutlook2013
Set-TaskBarPinVisualStudio2013
Set-TaskBarPinLinqpad4
Set-TaskBarPinLync2013
Set-TaskBarPinOneNote2013
Set-TaskBarPinRDP
Set-TaskBarPinSSMS2014
Set-TaskBarPinSQLProfiler2014
Set-TaskBarPinPaintDotNet
# Todo
# Disable Shiftkey 5 times
# Chrome Extensions
# Default programs http://forum.xda-developers.com/showthread.php?p=29456442 vim: js, md, 7z
# Local cache NuGet source / CI servers
# Set network service as sysadmin on sql
# Set VS pin as admin
# Install Sony drivers
# linqpad activation
# ozcode
# Final warnings
if ($update -eq "false") {
Add-Todo "Check device manager for missing drivers; check graphics drivers; check laptop special buttons work"
Add-Todo "Install printers"
Add-Todo "Configure power options"
Add-Todo "Run Windows Update"
}
}