-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.ps1
688 lines (543 loc) · 24.7 KB
/
setup.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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
# USAGE (WITH CLICK-ONCE COMPATIBLE BROWSER LIKE IE):
# START https://boxstarter.org/package/url?https://raw.githubusercontent.com/AquaeAtrae/Win10Ent-devbox-2/master/setup.ps1
#
# USAGE (AFTER DOWNLOADING):
# PowerShell.exe -ExecutionPolicy Bypass -File .\setup.ps1
#
# USAGE:
# PowerShell.exe -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/AquaeAtrae/Win10Ent-devbox-2/master/setup.ps1'))"
# Uninterupted Operating System
# by AquaeAtrae 8/30/2020
# USAGE using Powershell (Admin):
# START https://boxstarter.org/package/url?https://raw.githubusercontent.com/AquaeAtrae/Win10Ent-devbox-2/master/setup.ps1
#
# USAGE:
# PowerShell.exe -ExecutionPolicy Bypass -File .\setup.ps1
#
# USAGE:
# PowerShell.exe -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/AquaeAtrae/Win10Ent-devbox-2/master/setup.ps1'))"
#
# PREREQUISITES:
# Windows 10 Enterprise (2004 or newer)
# Use a Domain account (not online)
#
# Existing partitions labelled "Data" (D:) and "Files" (F:)
# Existing user data F:\Users\<username>
# RESOURCES:
# Microsoft boxstarter sample scripts https://github.com/microsoft/windows-dev-box-setup-scripts
# Recommended dev tools https://www.hanselman.com/blog/ScottHanselmans2014UltimateDeveloperAndPowerUsersToolListForWindows.aspx
# Sample boxstarter and good comments with extensive clean up of Windows https://gist.github.com/NickCraver/7ebf9efbfd0c3eab72e9
$UserName = $env:username
$UserDomain = $env:UserDomain
$LocalCredential = [System.Security.Principal.WindowsIdentity]::GetCurrent().Name
#######################
# Chocolatey, Boxstarter, and prerequisites
$ChocoInstalled = $false; if (Get-Command choco.exe -ErrorAction SilentlyContinue) { $ChocoInstalled = $true }
if (-not($ChocoInstalled)) {
'Chocolatey not yet installed.'
# $Env:ChocolateyInstall = "%PROGRAMDATA%\Chocolatey"
[System.Environment]::SetEnvironmentVariable("ChocolateyInstall", $null, 'User')
# $chocoInstall = New-TemporaryFile
'Install chocolatey package manager from chocolatey.org .'
'chocolatey default install path is C:\ProgramData\chocolatey\lib .'
'Check version with `choco.exe --version`.'
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
& "$Env:ProgramData\chocolatey\choco.exe" upgrade chocolatey --yes --force
'Chocolatey installed and upgraded.'
}
$BoxyInstalled = $false; if (Get-Command BoxStarter.bat -ErrorAction SilentlyContinue) { $BoxyInstalled = $true }
if (-not($BoxyInstalled)) {
'BoxStarter not yet installed.'
'Installing Boxstarter.'
& "$Env:ProgramData\chocolatey\choco.exe" install Boxstarter --yes --force
'DONE: Boxstarter installed.'
'NOTE: Must open a new PowerShell terminal to load choco environment variables...'
refreshenv
[console]::beep(500,300) # pitch, ms
#read-host "Press ENTER to continue or Ctrl-C to stop..."
}
#######################
# Boxstarter options
$Boxstarter.RebootOk=$true
$Boxstarter.NoPassword=$false # Is this a machine with no logon password?
$Boxstarter.AutoLogin=$true
# SOURCE: https://github.com/microsoft/windows-dev-box-setup-scripts
# Get the base URI path from the ScriptToCall value
$bstrappackage = "-bootstrapPackage"
$helperUri = $Boxstarter['ScriptToCall']
$strpos = $helperUri.IndexOf($bstrappackage)
$helperUri = $helperUri.Substring($strpos + $bstrappackage.Length)
$helperUri = $helperUri.TrimStart("'", " ")
$helperUri = $helperUri.TrimEnd("'", " ")
$helperUri = $helperUri.Substring(0, $helperUri.LastIndexOf("/"))
$helperUri += "/scripts"
write-host "helper script base URI is $helperUri"
function executeScript {
Param ([string]$script)
write-host "executing $helperUri/$script ..."
iex ((new-object net.webclient).DownloadString("$helperUri/$script"))
}
Disable-UAC
Disable-MicrosoftUpdate
bcdedit /timeout 5 # Set the default boot option time-out (seconds)
#######################
# Timezone, Hostname & Domain
refreshenv
$TzHostDomainDone = [System.Environment]::GetEnvironmentVariable("TzHostDomainDone", [System.EnvironmentVariableTarget]::Machine)
'Timezone/Host/Domain already done: $TzHostDomainDone'
if (-not $TzHostDomainDone) {
$OrigTimezone = $(Get-Timezone).Id
$TimeZone = Read-Host "Time zone ($OrigTimezone)"
if ([string]::IsNullOrEmpty($TimeZone)) {
$TimeZone = $OrigTimezone # no change
}
else {
Write-BoxstarterMessage "Setting time zone to $TimeZone"
# & C:\Windows\system32\tzutil /s "$TimeZone"
Set-TimeZone -Id $TimeZone
}
$ComputerName = Read-Host "Computer name ($env:ComputerName)"
if ([string]::IsNullOrEmpty($ComputerName)) {
$ComputerName = $env:ComputerName # no change
}
else {
# Rename computer (boxstarter will reboot and resume script)
Write-BoxstarterMessage "Setting computer host name to $ComputerName"
Rename-Computer -NewName $ComputerName -LocalCredential $LocalCredential -Restart
}
$OrigDomain = $((Get-WmiObject Win32_ComputerSystem).Domain)
$DomainName = Read-Host "Domain ($OrigDomain)"
if ([string]::IsNullOrEmpty($DomainName)) {
$DomainName = $OrigDomain
}
else {
# Join domain
# better method? https://powershell.one/wmi/root/cimv2/win32_computersystem-JoinDomainOrWorkgroup
Function Join-Domain {
param(
[string]$Domain=$(read-host "Please specify the domain to join"),
[System.Management.Automation.PSCredential]$Credential = $(Get-Credential)
)
$CS = Get-WmiObject Win32_ComputerSystem
$CS.JoinDomainOrWorkgroup($Domain,$Credential.GetNetworkCredential().Password,$Credential.UserName,$null,3)
}
Write-BoxstarterMessage "Setting Domain to $DomainName"
'Requires Domain Admin credentials'
Join-Domain $DomainName
}
[System.Environment]::SetEnvironmentVariable('TzHostDomainDone', $true, [System.EnvironmentVariableTarget]::Machine)
# Install-ChocolateyEnvironmentVariable "TzHostDomainDone" "$true" -VariableType Machine
'DONE: TimeZone, Computer Name, Domain.'
[console]::beep(500,300) # pitch, ms
}
Write-Host "RUNNING: setup.ps1 v20201101b"
Write-Host "Installs Chocolatey, Boxstarter, and runs next script to build fresh Windows 10 machine."
Write-Host ""
#######################
# RDP Remote Access, PS Remoting, Ansible, Jump Desktop, OpenVPN with configs, Firewall rules
# Enable-PSRemoting -Force # allow remote powershell
Enable-RemoteDesktop # boxy: enables feature and firewall rule??
# netsh advfirewall firewall add rule name="allow RemoteDesktop" dir=in protocol=TCP localport=3389 action=allow
Enable-NetFirewallRule -DisplayGroup "Remote Desktop"
# TO DO: only enable most narrow rules with specified source IP addresses
'DONE: Remote access enabled.'
[console]::beep(500,300) # pitch, ms
'Power Settings'
powercfg -change -standby-timeout-ac 0
powercfg -change -standby-timeout-dc 0
powercfg -change -monitor-timeout-ac 20
powercfg -change -monitor-timeout-dc 20
powercfg -change -disk-timeout-ac 20
powercfg -change -disk-timeout-dc 20
powercfg -setacvalueindex 381b4222-f694-41f0-9685-ff5bb260df2e 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 0
powercfg -setdcvalueindex 381b4222-f694-41f0-9685-ff5bb260df2e 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 0
powercfg -attributes SUB_SLEEP 9d7815a6-7ee4-497e-8888-515a05f02364 -ATTRIB_HIDE; powercfg -h on # not compatible with HostGuardian
# Set-StartScreenOptions -EnableBootToDesktop -EnableDesktopBackgroundOnStart -EnableShowStartOnActiveScreen -EnableListDesktopAppsFirst
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtension
Disable-GameBarTips
Set-CornerNavigationOptions -EnableUpperRightCornerShowCharms -EnableUpperLeftCornerSwitchApps -EnableUsePowerShellOnWinX
# Set-BoxstarterTaskbarOptions -Size Small -Dock Top -Combine Always -AlwaysShowIconsOn -MultiMonitorOn -MultiMonitorMode All -MultiMonitorCombine Always
# Set-BoxstarterTaskbarOptions -Size Small -Dock Bottom -Combine Full -Lock
# Set-BoxstarterTaskbarOptions -Size Small -Dock Bottom -Combine Full -AlwaysShowIconsOn
### FAILS Set-BoxstarterTaskbarOptions : Parameter set cannot be resolved using the specified named parameters.
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value "1" -PropertyType DWORD -Force # Enable long file names
'Relocate User Folders'
$homePath = "F:\Users\AquaeAtrae"
Move-LibraryDirectory "Downloads" "$homePath\Downloads"
Move-LibraryDirectory "Personal" "$homePath\Documents"
Move-LibraryDirectory "Desktop" "$homePath\Desktop"
Move-LibraryDirectory "My Video" "$homePath\Videos"
Move-LibraryDirectory "My Pictures" "$homePath\Pictures"
Move-LibraryDirectory "Favorites" "$homePath\Favorites"
Move-LibraryDirectory "My Music" "$homePath\Music"
# Move-LibraryDirectory "{56784854-C6CB-462B-8169-88E350ACB882}" "$homePath\Contacts"
# Move-LibraryDirectory "{7D1D3A04-DEBB-4115-95CF-2F29DA2920DA}" "$homePath\Searches"
# Move-LibraryDirectory "{BFB9D5E0-C6A9-404C-B2B2-AE6DB6AF4968}" "$homePath\Links"
# Move-LibraryDirectory "{4C5C32FF-BB9D-43B0-B5B4-2D72E54EAAA4}" "$homePath\Saved Games"
Install-Script -Name driverharvest -Force
# driverharvest # create baseline list, run again later to collect added drivers
'NEXT: Drivers (run driverharvest first for baseline?)'
[console]::beep(500,300) # pitch, ms
# read-host "Press ENTER to continue or Ctrl-C to stop..."
$secondsRunning = 0;
Write-Output "Press any key to abort the following wait time."
while( (-not $Host.UI.RawUI.KeyAvailable) -and ($secondsRunning -lt 20) ){
Write-Host ("Waiting for: " + (20-$secondsRunning))
Start-Sleep -Seconds 1
$secondsRunning++
}
Install-Script -Name Get-DriversPackFromDell
# .\Get-DriversPackFromDell.ps1 -models 'Alienware R13'
choco install dellcommandupdate
choco install dell-update
# choco install nvidia-display-driver # FAILS AND BREAKS SCRIPT
choco install geforce-experience
# choco install msiafterburner
choco install samsung-magician
choco install logitech-options
Enable-WindowsOptionalFeature -FeatureName Microsoft-Hyper-V-All -Online -All -NoRestart
Enable-WindowsOptionalFeature -FeatureName Microsoft-Hyper-V -Online -All -NoRestart
Enable-WindowsOptionalFeature -FeatureName Microsoft-Hyper-V-Tools-All -Online -All -NoRestart
Enable-WindowsOptionalFeature -FeatureName Microsoft-Hyper-V-Management-PowerShell -Online -All -NoRestart
Enable-WindowsOptionalFeature -FeatureName Microsoft-Hyper-V-Hypervisor -Online -All -NoRestart
Enable-WindowsOptionalFeature -FeatureName Microsoft-Hyper-V-Services -Online -All -NoRestart
Enable-WindowsOptionalFeature -FeatureName Microsoft-Hyper-V-Management-Clients -Online -All -NoRestart
Enable-WindowsOptionalFeature -FeatureName HypervisorPlatform -Online -All -NoRestart
Enable-WindowsOptionalFeature -FeatureName Microsoft-Windows-Subsystem-Linux -Online -All -NoRestart
Enable-WindowsOptionalFeature -FeatureName Containers -Online -All -NoRestart
Enable-WindowsOptionalFeature -FeatureName Containers-DisposableClientVM -Online -All -NoRestart
$winVer = [int](Get-Item "HKLM:SOFTWARE\Microsoft\Windows NT\CurrentVersion").GetValue('ReleaseID')
if ($winVer -ge 2004) {
Enable-WindowsOptionalFeature -FeatureName VirtualMachinePlatform -Online -All -NoRestart
}
# Enable long file names (beyond 260 chars)
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value "1" -PropertyType DWORD -Force
#######################
# WSL2
'NEXT: WSL2 Kernel Update?'
' Start-Process msiexec.exe -Wait -ArgumentList ''/I https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi /passive'' '
[console]::beep(500,300) # pitch, ms
# read-host "Press ENTER to continue or Ctrl-C to stop..."
# Start-Process msiexec.exe -Wait -ArgumentList '/I https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi /quiet /qn /norestart'
Start-Process msiexec.exe -Wait -ArgumentList '/I https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi /passive' # REPEATS ON REBOOT UNNECESSARILY
$winVer = [int](Get-Item "HKLM:SOFTWARE\Microsoft\Windows NT\CurrentVersion").GetValue('ReleaseID')
if ($winVer -ge 2004) {
RefreshEnv
wsl --set-default-version 2
}
if (!(Get-Command "ubuntu2004.exe" -ErrorAction SilentlyContinue)) {
$item = "wslubuntu2004"
$file = "$env:TEMP\$item.appx"
Write-Host "Downloading $item"
curl.exe -sL https://aka.ms/$item -o $file
# TO DO: move appx installation to custom location
# https://kontext.tech/column/tools/308/how-to-install-windows-subsystem-for-linux-on-a-non-c-drive
Add-AppxPackage $file
Remove-Item $file
RefreshEnv
Write-Host "Please wait. Installation of WSL takes several minutes."
Ubuntu2004 install --root
Ubuntu2004 config --default-user root
# mklink /D C:\project_directory \\wsl$\ubuntu-18.03\home\USER\project_directory
Ubuntu2004 run "curl -sL '$helperUri/WSL.sh' | bash"
# Ubuntu2004 run "curl -sL '$helperUri/WSL.sh' | sed -En ""s/USERNAME/$UserName/g"" | bash"
Ubuntu2004 run "useradd -m -s '/usr/bin/bash' -G sudo ${UserName}"
'Setting WSL password'
[console]::beep(500,500) # pitch, ms
#Ubuntu2004 run passwd $UserName
$WSLUserName = $UserName.ToLower() -replace "[: ]", "" # lowercase username stripped of invalid characters
# -replace " [$([RegEx]::Escape([string][IO.Path]::GetInvalidFileNameChars()))]+","_"
# TO DO: alternatively, just force password change after first login?
[System.Management.Automation.PSCredential]$WSLCredential = $(Get-Credential -UserName $UserName -Message "Set WSL Linux username and initial password")
Ubuntu2004 run "printf ""%s:%s\n"" """ + $WSLCredential.GetNetworkCredential().UserName + """ """ + $WSLCredential.GetNetworkCredential().Password + """ | chpasswd"
Ubuntu2004 config --default-user $UserName
choco install lxrunoffline
# icacls D:\wsl /grant "USERNAME:(OI)(CI)(F)"
# lxrunoffline move -n Ubuntu-20.04 -d D:\wsl\installed\Ubuntu-20.04 # relocate WSL root storage... but will it overwrite existing?!
lxrunoffline get-dir -n Ubuntu-20.04
}
choco install vcxsrv
# choco install xming
Write-Host "Please wait. Installation of Docker Desktop takes several minutes."
choco install docker-desktop # after rebootm leaves app running
# enable resources | WSL integration?
choco install docker-compose
choco install docker-kitematic
choco install virtualbox
choco install VirtualBox.ExtensionPack # FAILS
# choco install virtualbox-guest-additions-guest.install # FAILS
'DONE: Virtualization and WSL2.'
[console]::beep(500,300) # pitch, ms
#read-host "Press ENTER to continue or Ctrl-C to stop..."
Enable-WindowsOptionalFeature -FeatureName Windows-Defender-ApplicationGuard -Online -All -NoRestart
Enable-WindowsOptionalFeature -FeatureName TelnetClient -Online -All -NoRestart
Enable-WindowsOptionalFeature -FeatureName TFTP -Online -All -NoRestart
Enable-WindowsOptionalFeature -FeatureName SearchEngine-Client-Package -Online -All -NoRestart
Enable-WindowsOptionalFeature -FeatureName MSRDC-Infrastructure -Online -All -NoRestart
'MSRDC-Infrastructure'
Enable-WindowsOptionalFeature -FeatureName WorkFolders-Client -Online -All -NoRestart
Enable-WindowsOptionalFeature -FeatureName ServicesForNFS-ClientOnly -Online -All -NoRestart
Enable-WindowsOptionalFeature -FeatureName ClientForNFS-Infrastructure -Online -All -NoRestart
Enable-WindowsOptionalFeature -FeatureName NFS-Administration -Online -All -NoRestart
'NFS-Administration'
Enable-WindowsOptionalFeature -FeatureName Internet-Explorer-Optional-amd64 -Online -NoRestart
Disable-WindowsOptionalFeature -FeatureName IIS-WebServerRole -Online -NoRestart
Disable-WindowsOptionalFeature -FeatureName MediaPlayback -Online -NoRestart
Disable-WindowsOptionalFeature -FeatureName WindowsMediaPlayer -Online -NoRestart
Disable-WindowsOptionalFeature -FeatureName MSMQ-Container -Online -NoRestart
Disable-WindowsOptionalFeature -FeatureName MSMQ-Server -Online -NoRestart
Disable-WindowsOptionalFeature -FeatureName HostGuardian -Online -NoRestart
'HostGuardian'
Enable-WindowsOptionalFeature -FeatureName NetFx3 -Online -NoRestart
# Disable-WindowsOptionalFeature -FeatureName Microsoft-Windows-NetFx3-OC-Package -Online -NoRestart
# Enable-WindowsOptionalFeature -FeatureName Microsoft-Windows-NetFx4-US-OC-Package -Online -All -NoRestart
'DONE: Other Windows Features.'
[console]::beep(500,300) # pitch, ms
#read-host "Press ENTER to continue or Ctrl-C to stop..."
# .NET
choco install dotnet4.5
choco install dotnet4.6
choco install dotnet4.6.1
choco install dotnet4.6.2
'dotnet4.6.2'
choco install dotnet4.7
choco install dotnet4.7.1
choco install dotnet4.7.2
choco install dotnetfx # 4.8
'dotnetfx'
choco install dotnetcore-sdk
'dotnetcore-sdk'
choco install netfx-4.5.1-devpack
choco install netfx-4.5.2-devpack
choco install netfx-4.6.1-devpack
choco install netfx-4.7-devpack
choco install netfx-4.7.1-devpack
# choco install netfx-4.7.2-devpack # HANGS IF ALREADY INSTALLED?
# choco install netfx-4.8-devpack # HANGS IF ALREADY INSTALLED?
Write-Host "DONE: DotNet framework and devpacks"
# Install-Module -Name VcRedist -Force
# VcRedist
#######################
Write-Host "Please wait. Installation of SQL Server takes several minutes."
if(-Not (Test-Path "F:\Data\MSSQL15.SQLEXPRESS") ){
choco install sql-server-express -ia '/INSTALLSQLDATADIR=""F:\Data\MSSQL15.SQLEXPRESS""' # fails to skip if already installed, must not contain old master.mdf
}
# https://chocolatey.org/api/v2/package/sql-server-express/2019.20200409
Write-Host "Please wait. Installation of SSMS takes several minutes."
# choco install ssms # HANGS IF ALREADY INSTALLED?
# choco install dbforge-sql-cmpl-std
# choco install heidisql
# cinst mysql.workbench
choco install powershell-core
# choco install sudo
choco install gsudo
choco install manictime
choco install chocolateygui
choco install boxstarter.hyperv
choco install autoit.install
choco install autohotkey
choco install nirlauncher # including ProduKey and MyUninstaller which lists all apps
Install-Module -Name PackageManagement # OneGet is included with Windows 10
Install-Module -Name PSLogging
Install-Module -Name PSSoftware
Get-PackageProvider -name chocolatey # https://www.hanselman.com/blog/AptGetForWindowsOneGetAndChocolateyOnWindows10.aspx
Install-Module -Name ReverseDSC
Install-Module -Name ComputerManagementDsc -AllowPrerelease
choco install microsoft-windows-terminal
# https://aka.ms/terminal-documentation
choco install notepadplusplus
choco install jq # cli json processor
choco install postman # API testing tool
choco install git -params '"/GitAndUnixToolsOnPath /WindowsTerminal /NoShellIntegration /SChannel"'
# choco install logrotate
# choco install vscode
choco install vscodium
choco pin add -n=vscodium
code --install-extension ms-vscode.csharp
code --install-extension formulahendry.code-runner
code --install-extension streetsidesoftware.code-spell-checker
code --install-extension msjsdiag.debugger-for-chrome
code --install-extension PeterJausovec.vscode-docker
code --install-extension dbaeumer.vscode-eslint
code --install-extension abusaidm.html-snippets
code --install-extension eg2.vscode-npm-script
code --install-extension ms-vscode.powershell
code --install-extension Ionide.ionide-fsharp
code --install-extension Shan.code-settings-sync
code --install-extension Ionide.ionide-fake
code --install-extension Ionide.ionide-paket
code --install-extension esbenp.prettier-vscode
code --install-extension eamodio.gitlens
code --install-extension robertohuertasm.vscode-icons
choco install arduino
choco install firacode
cinst mactype
choco install mkcert
choco install bugshooting
# Windows Steps Recorder is built-in
# choco install phpstorm
# choco install webstorm
choco install scriptcs
choco install linqpad
choco install fiddler
# choco install kubernetes-cli
choco install winmerge
choco install nimbletext
choco install sublimetext3
choco install sublimetext3.packagecontrol
# choco install atom
# choco install nxlog
cinst logparser
cinst logparser.lizardgui
choco install baretail
choco install nuget.commandline --pre
choco install nugetpackageexplorer
choco install sysinternals
choco install handle # shows which process has files open
choco install powertoys
choco install autoruns
choco install linkshellextension
choco install rufus
choco install crystaldiskinfo
choco install crystaldiskmark
choco install hwinfo.install
choco install gpu-z
choco install cpu-z
choco install hwmonitor
choco install windowsrepair # tweaking.com
choco install rapidee
choco install gpg4win
choco install everything # search files and folders
choco install listary
choco install treesizefree
cinst googledrive
cinst google-drive-file-stream
choco install google-backup-and-sync
# choco install dropbox
choco install nextcloud-client
# choco install syncthing
# choco install rsync
choco install putty
choco install winscp
choco install curl
choco install wget
#
choco install reflect-free
# choco install utorrent
choco install teracopy
choco install xyplorer
choco install grepwin
choco install 7zip
Install-Module -Name 7Zip4Powershell; Import-Module -Name 7Zip4Powershell -Global
# choco install wireshark
# choco install winpcap
# choco install nmap
# choco install advanced-ip-scanner
# choco install logmein.client
# choco install teamviewer-qs
# choco install javaruntime-preventasktoolbar
adoptopenjdk8
adoptopenjdk11
# choco install bitnami-xampp
# choco install apache-httpd
# choco install zap
choco install keybase # requires dotnet4.7
choco install googlechrome
$chrome = convert-path (ls "$env:localappdata\" -recurse -include "chrome.exe")[0].pspath; If ($chrome -ne "") { Install-ChocolateyPinnedTaskBarItem $chrome }
choco install firefox # FAILS
choco install microsoft-edge
choco install nodejs
choco install maven
# choco install intellijidea-community
# choco install jetbrainstoolbox
choco install dotpeek
choco install resharper-ultimate-all --pre
choco install stylecop
choco install gh
choco install github-desktop
choco install hub
choco install slack
# choco install libreoffice-fresh
# choco install openoffice
# choco install crystalreports2008runtime
# choco install evernote
choco install zoom
choco install ditto
choco install sharex
choco install fscapture
# choco install qgis
choco install googleearthpro
# choco install inkscape
choco install gimp
choco install drawio # diagrams
choco install pencil
choco install balsamiqmockups3
# choco install audacity
# choco install audacity-lame # mp3 encoder
# choco install shotcut # video editor
# choco install openshot # video editor
# choco install avidemux
# choco install carnac # shows keystrokes for demos
choco install blender
# choco install handbrake.install
# choco install meshroom # photoscanning
choco install discord.install
choco install steam
choco install origin
choco install uplay
# choco install ccleaner
# choco install ccenhancer
# choco install bulk-crap-uninstaller
cinst keepassxc
choco install keepass-keepasshttp
cinst authy-desktop
# choco install lastpass
choco install openvpn
# choco install nordvpn # FAILS
choco install veracrypt
# choco install microsoft-office-deployment --params="'/64bit /Product:ProPlus2019Volume /Exclude:OneDrive,Outlook,Lync,Groove'" # Office Volume license requires MLK key
choco install office365proplus
choco install adobe-creative-cloud
# https://helpx.adobe.com/download-install/kb/creative-cloud-desktop-app-download.html
# https://prodesigntools.com/creative-cloud-2020-direct-download-links.html
# Adobe Photoshop Actions, etc
# Adobe Lightroom Classic
# jf Metadata Wrangler
# LR/Transporter
# jf CaptureTime to Exif
# jf Data Explorer
# jf MegaPixel Sort
# FOLLOWUP: Lightroom Classic Export https://docs.google.com/document/d/1-xH1W5XixtMQRXMpSZ4zvf7z0URzTiv4z58VMR63BOU/edit
RefreshEnv
$chrome = convert-path (ls "$env:localappdata\" -recurse -include "chrome.exe")[0].pspath
If ($chrome -ne "") { Install-ChocolateyPinnedTaskBarItem $chrome }
'DONE: Software installed.'
[console]::beep(500,300) # pitch, ms
#read-host "Press ENTER to continue or Ctrl-C to stop..."
# cloneapp-ua
choco install cloneapp
# cloneapp productkey
# [System.Environment]::SetEnvironmentVariable('TzHostDomainDone', $null, [System.EnvironmentVariableTarget]::Machine) # clear variable
# choco install kis
Set-MpPreference -EnableControlledFolderAccess Enabled
choco install choco-package-list-backup
# https://www.alexdresko.com/2014/12/22/automatically-generating-a-chocolatey-install-script/
choco install choco-upgrade-all-at # Task Scheduler to update all choco packages
Enable-UAC
Enable-MicrosoftUpdate
Install-WindowsUpdate -acceptEula # Installs any current updates
<#######################
# REMINDERS
KeepassCX
Setup ManicTime Server
Office Pro Plus install MAK
Adobe CC installs
Lightroom Catalogs
Lightroom extensions
Lightroom export pre-sets
OLT Photoshop Macros.atn
Docker Desktop
- disable auto start on login
- enable WSL
G Hub macros
#>