· 7 months ago · Apr 16, 2025, 07:16 PM
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###############################################################################
10Write-Output "================================================================================"
11Write-Output "Boxstarter options...ThinkPad P16s"
12Write-Output "================================================================================"
13# Boxstarter options
14$Boxstarter.RebootOk=$false # Allow reboots?
15#$Boxstarter.NoPassword=$false # Is this a machine with no login password?
16$Boxstarter.AutoLogin=$false # Save my password securely and auto-login after a reboot
17
18Disable-UAC
19#Disable-BingSearch
20
21###############################################################################
22#--- Apps
23###############################################################################
24Write-Output "================================================================================"
25Write-Output "Installing apps..."
26Write-Output "================================================================================"
27#choco install -y autohotkey.install # 2024-06-17 "autohotkey.install" is v1. "autohotkey" is v2. My scripts are v1 so far.
28choco install -y vscode
29#choco install -y 7zip
30
31###############################################################################
32#--- Fonts
33###############################################################################
34#choco install -y inconsolata
35#choco install -y ubuntu.font
36
37###############################################################################
38#--- Windows Explorer
39###############################################################################
40# Disable View > Grouping in Downloads folder
41# Will remove grouping from all possible views of the Downloads folder for the current user.
42# 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.
43# https://answers.microsoft.com/en-us/windows/forum/all/completely-disable-file-grouping-always-everywhere/ac31a227-f585-4b0a-ab2e-a557828eaec5
44###############################################################################
45Write-Output "================================================================================"
46Write-Output "Setting Windows Explorer Options..."
47Write-Output "================================================================================"
48$RegExe = "$env:SystemRoot\System32\Reg.exe"
49$File = "$env:Temp\Temp.reg"
50$Key = 'HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes\{885a186e-a440-4ada-812b-db871b942259}'
51& $RegExe Export $Key $File /y
52$Data = Get-Content $File
53$Data = $Data -Replace 'HKEY_LOCAL_MACHINE', 'HKEY_CURRENT_USER'
54$Data = $Data -Replace '"GroupBy"="System.DateModified"', '"GroupBy"=""'
55$Data | Out-File $File
56& $RegExe Import $File
57$Key = 'HKCU\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell'
58& $RegExe Delete "$Key\BagMRU" /f
59& $RegExe Delete "$Key\Bags" /f
60Stop-Process -Force -ErrorAction SilentlyContinue -ProcessName Explorer
61
62###############################################################################
63#--- WinConfig Features
64###############################################################################
65# show hidden/protected files and extensions, full path in title bar, no recent, disable ribbon and checkboxes
66Write-Output "================================================================================"
67Write-Output "WinConfig Features..."
68
69Write-Output "================================================================================"
70Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar -DisableOpenFileExplorerToQuickAccess -DisableShowRecentFilesInQuickAccess -DisableShowFrequentFoldersInQuickAccess -EnableExpandToOpenFolder -DisableShowRibbon -DisableItemCheckBox
71
72
73###############################################################################
74#--- Fin
75###############################################################################
76Write-Output "================================================================================"
77Write-Output "Enable UAC..."
78Write-Output "================================================================================"
79Enable-UAC
80
81
82