-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathboxstarter-parsec.ps1
67 lines (51 loc) · 1.76 KB
/
boxstarter-parsec.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
function Remove-WindowsOptionalFeature {
param (
[Parameter(ValueFromPipeline = $true)]
$Name
)
$Input | %{
Write-Output "Boxstarter: Removing Windows optional feature '$_'" -Verbose
Get-WindowsOptionalFeature -Online -FeatureName $_ `
| ?{ $_.State -eq 'Enabled' } `
| Disable-WindowsOptionalFeature -Online -NoRestart
}
}
function Set-WindowsExplorerLaunchInSeparateProcess {
# Launch folder windows in a separate process
# https://github.com/mwrock/boxstarter/issues/299
Write-Output "Boxstarter: Launch Windows Explorer in separate process" -Verbose
Set-ItemProperty `
-Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced `
-Name SeparateProcess `
-Value 1
}
function Set-WindowsExplorerClickState {
# Single-click to open an item
# https://github.com/mwrock/boxstarter/issues/300
Write-Output "Boxstarter: Set Windows Explorer to single-click" -Verbose
$path = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer'
$shell_state = (Get-ItemProperty -Path $path).ShellState
$shell_state[4] = $shell_state[4] -bxor 32
Set-ItemProperty -Path $path -Name ShellState -Value $shell_state
}
Set-TimeZone -Name 'Eastern Standard Time'
Set-WindowsExplorerLaunchInSeparateProcess
Set-WindowsExplorerClickState
Set-TaskbarOptions -Dock Left -Size Large
Disable-BingSearch
@(
"MediaPlayback"
"WindowsMediaPlayer"
"*Printing*"
"*SMB*"
"*WorkFolders-Client"
) | Remove-WindowsOptionalFeature
choco install -y --pre `
consoleclassix `
rpcs3 `
steam `
supermarioflashback
Enable-PSRemoting -Force
Enable-RemoteDesktop
Enable-MicrosoftUpdate
Install-WindowsUpdate -AcceptEula -SuppressReboots