Advertisement
Lynngineer

boxstarter-sm-fgc-desktop

Jun 24th, 2024 (edited)
749
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # boxstarter-sm
  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"
  12. Write-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.  
  18. #Disable-UAC
  19. #Disable-BingSearch
  20.  
  21. ###############################################################################
  22. #--- Apps
  23. ###############################################################################
  24. Write-Output "================================================================================"
  25. Write-Output "Installing apps..."
  26. Write-Output "================================================================================"
  27. Write-Output "Not installing autohotkey; version 1 needs security review."
  28. # 2025-01-25 "autohotkey.install" was upgraded to 2.0.19; not security reviewed.
  29. # My scripts are v1. Don't install autohotkey w/o security review.
  30. #### choco install -y autohotkey.install
  31. Write-Output "================================================================================"
  32. #choco install -y 7zip
  33. choco install -y vscode
  34. # https://code.visualstudio.com/docs/configure/settings-sync
  35. #  using Microsoft at FGC
  36.  
  37. ###############################################################################
  38. #--- Fonts
  39. ###############################################################################
  40. #choco install -y inconsolata
  41. #choco install -y ubuntu.font
  42.  
  43. ###############################################################################
  44. #--- Windows Explorer
  45. ###############################################################################
  46. #  Disable View > Grouping in Downloads folder
  47. #  Will remove grouping from all possible views of the Downloads folder for the current user.
  48. #  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.
  49. #  https://answers.microsoft.com/en-us/windows/forum/all/completely-disable-file-grouping-always-everywhere/ac31a227-f585-4b0a-ab2e-a557828eaec5
  50. ###############################################################################
  51. Write-Output "================================================================================"
  52. Write-Output "Setting Windows Explorer Options..."
  53. Write-Output "================================================================================"
  54. $RegExe = "$env:SystemRoot\System32\Reg.exe"
  55. $File = "$env:Temp\Temp.reg"
  56. $Key = 'HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes\{885a186e-a440-4ada-812b-db871b942259}'
  57. & $RegExe Export $Key $File /y
  58. $Data = Get-Content $File
  59. $Data = $Data -Replace 'HKEY_LOCAL_MACHINE', 'HKEY_CURRENT_USER'
  60. $Data = $Data -Replace '"GroupBy"="System.DateModified"', '"GroupBy"=""'
  61. $Data | Out-File $File
  62. & $RegExe Import $File
  63. $Key = 'HKCU\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell'
  64. & $RegExe Delete "$Key\BagMRU" /f
  65. & $RegExe Delete "$Key\Bags" /f
  66. Stop-Process -Force -ErrorAction SilentlyContinue -ProcessName Explorer
  67.  
  68. ###############################################################################
  69. #--- WinConfig Features
  70. ###############################################################################
  71. # show hidden/protected files and extensions, full path in title bar, no recent, disable ribbon and checkboxes
  72. Write-Output "================================================================================"
  73. Write-Output "WinConfig Features..."
  74. Write-Output "Windows 11 removed the ability to put the Task Bar anywhere except the bottom. #livid"
  75. Write-Output "================================================================================"
  76. Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar -DisableOpenFileExplorerToQuickAccess -DisableShowRecentFilesInQuickAccess -DisableShowFrequentFoldersInQuickAccess -EnableExpandToOpenFolder -DisableShowRibbon -DisableItemCheckBox
  77.  
  78.  
  79. ###############################################################################
  80. #--- Fin
  81. ###############################################################################
  82. Write-Output "================================================================================"
  83. Write-Output "Enable UAC..."
  84. Write-Output "================================================================================"
  85. Enable-UAC
  86.  
  87.  
  88.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement