-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathserver.ps1
More file actions
41 lines (30 loc) · 1.08 KB
/
server.ps1
File metadata and controls
41 lines (30 loc) · 1.08 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
<#
For a spun up server
Also see https://gist.github.com/alirobe/1e9fb1fd8eefd72ce5cd372459a88b59
#>
function InstallChocoApps($packageArray){
foreach ($package in $packageArray) {
&choco install $package --limitoutput
}
}
function ConfigureNotepadPlusPlus()
{
Write-Host 'Configuring Notepad++'
$notepadShortcutConfigRemote = 'https://raw.githubusercontent.com/neutmute/nm-boxstarter/master/files/notepad%2B%2B/shortcuts.xml'
$notepadShortcutConfigLocal = "$($env:AppData)\Notepad++\shortcuts.xml"
Invoke-WebRequest -Uri $notepadShortcutConfigRemote -OutFile $notepadShortcutConfigLocal
}
$serverApps = @(
'taskbar-never-combine'
,'explorer-show-all-folders'
,'explorer-expand-to-current-folder'
,'googlechrome'
,'wintail'
,'notepadplusplus.install'
)
# Install Chocolatey
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco feature enable --name=allowGlobalConfirmation
# Install Apps
InstallChocoApps $serverApps
ConfigureNotepadPlusPlus