View difference between Paste ID: DtWNpMJL and dPcdMe4L
SHOW: | | - or go back to the newest paste.
1-
# boxstarter-sm
1+
# boxstarter-sm-fgc-laptop
2
# Description: Boxstarter Script for Windows 10 miscellaneous admin machine
3
# To Run, use boxstarter weblauncher: (Edge supports ClickOnce, the others need extension)
4
#	START https://boxstarter.org/package/nr/url?https://pastebin.com/raw/dPcdMe4L
5
###############################################################################
6
7
###############################################################################
8
#--- Prep
9
###############################################################################
10
Write-Output "================================================================================"
11-
Write-Output "Boxstarter options...desktop"
11+
Write-Output "Boxstarter options...ThinkPad P16s"
12
Write-Output "The majority
13
Write-Output "================================================================================"
14
# Boxstarter options
15
$Boxstarter.RebootOk=$false # Allow reboots?
16
#$Boxstarter.NoPassword=$false # Is this a machine with no login password?
17
$Boxstarter.AutoLogin=$false # Save my password securely and auto-login after a reboot
18-
#Disable-UAC
18+
19
Disable-UAC
20
#Disable-BingSearch
21
22
###############################################################################
23
#--- Apps
24
###############################################################################
25
Write-Output "================================================================================"
26
Write-Output "Installing apps..."
27
Write-Output "================================================================================"
28
Write-Output "Not installing autohotkey; version 1 needs security review."
29
# 2025-01-25 "autohotkey.install" was upgraded to 2.0.19; not security reviewed. 
30
# My scripts are v1. Don't install autohotkey w/o security review. 
31
#### choco install -y autohotkey.install
32
Write-Output "================================================================================"
33-
choco install -y vscode
33+
34
#choco install -y vscode
35
# https://code.visualstudio.com/docs/configure/settings-sync
36
#  using Microsoft at FGC
37
38
###############################################################################
39
#--- Fonts
40
###############################################################################
41
#choco install -y inconsolata
42
#choco install -y ubuntu.font
43
44
###############################################################################
45
#--- Windows Explorer
46
###############################################################################
47
#  Disable View > Grouping in Downloads folder
48
#  Will remove grouping from all possible views of the Downloads folder for the current user. 
49
#  Warning: ALL folder views (except Downloads grouping) will revert to Windows defaults! Minimal solution. To set ALL default folder views, use the free tool WinSetView. 
50
#  https://answers.microsoft.com/en-us/windows/forum/all/completely-disable-file-grouping-always-everywhere/ac31a227-f585-4b0a-ab2e-a557828eaec5
51
###############################################################################
52
Write-Output "================================================================================"
53
Write-Output "Setting Windows Explorer Options..."
54
Write-Output "================================================================================"
55
$RegExe = "$env:SystemRoot\System32\Reg.exe" 
56
$File = "$env:Temp\Temp.reg" 
57
$Key = 'HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes\{885a186e-a440-4ada-812b-db871b942259}'
58
& $RegExe Export $Key $File /y 
59
$Data = Get-Content $File 
60
$Data = $Data -Replace 'HKEY_LOCAL_MACHINE', 'HKEY_CURRENT_USER' 
61
$Data = $Data -Replace '"GroupBy"="System.DateModified"', '"GroupBy"=""'
62
$Data | Out-File $File 
63
& $RegExe Import $File 
64
$Key = 'HKCU\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell'
65
& $RegExe Delete "$Key\BagMRU" /f 
66
& $RegExe Delete "$Key\Bags" /f 
67
Stop-Process -Force -ErrorAction SilentlyContinue -ProcessName Explorer
68
69
###############################################################################
70
#--- WinConfig Features
71
###############################################################################
72
# show hidden/protected files and extensions, full path in title bar, no recent, disable ribbon and checkboxes
73
Write-Output "================================================================================"
74
Write-Output "WinConfig Features..."
75
Write-Output "Windows 11 removed the ability to put the Task Bar anywhere except the bottom. #livid"
76
Write-Output "================================================================================"
77
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar -DisableOpenFileExplorerToQuickAccess -DisableShowRecentFilesInQuickAccess -DisableShowFrequentFoldersInQuickAccess -EnableExpandToOpenFolder -DisableShowRibbon -DisableItemCheckBox
78
79
80
###############################################################################
81
#--- Fin
82
###############################################################################
83
Write-Output "================================================================================"
84
Write-Output "Enable UAC..."
85
Write-Output "================================================================================"
86
Enable-UAC
87
88
89