forked from cdhunt/Boxstarter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDevWorkstation.ps1
More file actions
106 lines (89 loc) · 3.21 KB
/
DevWorkstation.ps1
File metadata and controls
106 lines (89 loc) · 3.21 KB
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
$Boxstarter.RebootOk=$true # Allow reboots?
$Boxstarter.NoPassword=$false # Is this a machine with no login password?
$Boxstarter.AutoLogin=$true # Save my password securely and auto-login after a reboot
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
Disable-InternetExplorerESC
# Posh Tools
cinst powershell4
cinst console-devel
cinst PowerGUI
cinst PsGet
# Dev Tools
cinst SourceCodePro
cinst GitHub
cinst notepadplusplus.install
cinst SourceTree
cinst VisualStudio2013Professional -InstallArguments "WebTools"
if (Test-PendingReboot) { Invoke-Reboot }
# Investigating/Testing
cinst logparser
cinst fiddler4
cinst PhantomJS
# Productivity
cinst GoogleChrome
cinst Evernote5
cinst keepass
cinst markdownpad2
cinst Office365HomePremium
# Utilities
cinst 7zip
cinst TeraCopy
cinst sumatrapdf
cinst vlc
cinst dropbox
cinst webpi
cinst cyberduck
cinst OptiPNG
cinst easyconnect
# Platforms
cinst flashplayerplugin
cinst AdobeAIR
cinst javaruntime
cinst java.jdk
cinst nodejs
cinst ruby
cinst golang
# Download Configs
<# Does not seem to work
$wc = New-Object -TypeName System.Net.WebClient
$consoleConfig = 'https://raw.github.com/cdhunt/Boxstarter/master/config/console/console.xml'
$npppConfig = 'https://raw.github.com/cdhunt/Boxstarter/master/config/notepad++/config.xml'
$npppLangs = 'https://raw.github.com/cdhunt/Boxstarter/master/config/notepad++/langs.xml'
$npppStylers = 'https://raw.github.com/cdhunt/Boxstarter/master/config/notepad++/stylers.xml'
$wc.DownloadString($consoleConfig) | Set-Content "$env:appdata\console\console.xml"
$wc.DownloadString($npppConfig) | Set-Content "$env:appdata\Notepad++\config.xml"
$wc.DownloadString($npppLangs) | Set-Content "$env:appdata\Notepad++\langs.xml"
$wc.DownloadString($npppStylers) | Set-Content "$env:appdata\Notepad++\stylers.xml"
#>
if (Test-PendingReboot) { Invoke-Reboot }
# Windows Updates
Install-WindowsUpdate -AcceptEula
if (Test-PendingReboot) { Invoke-Reboot }
# Taskbar items
Install-ChocolateyPinnedTaskBarItem "$env:localappdata\Google\Chrome\Application\chrome.exe"
Install-ChocolateyPinnedTaskBarItem "$env:windir\explorer.exe"
Install-ChocolateyPinnedTaskBarItem "$env:SystemRoot\system32\WindowsPowerShell\v1.0\powershell.exe"
Install-ChocolateyPinnedTaskBarItem "$env:programfiles\console\console.exe"
Install-ChocolateyPinnedTaskBarItem "$env:programfiles\KeePass Password Safe 2\KeePass.exe"
Install-ChocolateyPinnedTaskBarItem "$env:programfiles\Notepad++\notepad++.exe"
Install-ChocolateyPinnedTaskBarItem "$env:programfiles\Evernote\Evernote\Evernote.exe"
# Posh Modules Requires PSGet
Install-Module -nugetpackageid PSate
Install-Module PSReadLine
Install-Module psake
Install-Module PoSHServer
Install-Module posh-git
# VSIS Packages
Install-ChocolateyVsixPackage PowerShellTools http://visualstudiogallery.msdn.microsoft.com/c9eb3ba8-0c59-4944-9a62-6eee37294597/file/112013/6/PowerShellTools.vsix
# Filesystem
New-Item -Path C:\ -Name Temp -ItemType Directory
# Posh Profile
@'
Import-Module PSReadLine
Import-Module posh-git
Set-Location C:\temp
New-Alias -Name Mute -Value Set-DefaultAudioDeviceMute
New-Alias -Name Vol -Value Set-DefaultAudioDeviceVolume
'@ | Set-Content $profile
if (Test-PendingReboot) { Invoke-Reboot }