Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.48 KB | None | 0 0
  1. ######################
  2. # Configure Chocolatey
  3. ######################
  4.  
  5. choco config set --name=cacheLocation --value=C:\ChocolateyCache
  6.  
  7. choco feature enable --name=allowGlobalConfirmation
  8. choco feature enable --name=useRememberedArgumentsForUpgrades
  9.  
  10. ##################
  11. # Privacy Settings
  12. ##################
  13.  
  14. # Privacy: Let apps use my advertising ID: Disable
  15. Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0
  16. # To Restore:
  17. #Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 1
  18.  
  19. # Privacy: SmartScreen Filter for Store Apps: Disable
  20. #Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 0
  21. # To Restore:
  22. Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 1
  23.  
  24. # WiFi Sense: HotSpot Sharing: Disable
  25. Set-ItemProperty -Path HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting -Name value -Type DWord -Value 0
  26. # WiFi Sense: Shared HotSpot Auto-Connect: Disable
  27. Set-ItemProperty -Path HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots -Name value -Type DWord -Value 0
  28.  
  29. # Disable Telemetry (requires a reboot to take effect)
  30. # Set-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name AllowTelemetry -Type DWord -Value 0
  31. # Get-Service DiagTrack,Dmwappushservice | Stop-Service | Set-Service -StartupType Disabled
  32.  
  33.  
  34. ############################
  35. # Personal Preferences on UI
  36. ############################
  37.  
  38. Set-WindowsExplorerOptions `
  39. -EnableShowHiddenFilesFoldersDrives `
  40. -EnableShowFileExtensions `
  41. -DisableOpenFileExplorerToQuickAccess `
  42. -DisableShowRecentFilesInQuickAccess `
  43. -DisableShowFrequentFoldersInQuickAccess
  44.  
  45. # Set-TaskbarOptions `
  46. # -Dock Bottom `
  47. # -Combine Always `
  48. # -AlwaysShowIconsOff `
  49. # -Size Large
  50. # Set-TaskbarOptions -Lock
  51.  
  52. Disable-BingSearch
  53.  
  54. Update-ExecutionPolicy RemoteSigned
  55.  
  56. # Disable the Lock Screen (the one before password prompt - to prevent dropping the first character)
  57. # If (-Not (Test-Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Personalization)) {
  58. # New-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows -Name Personalization | Out-Null
  59. # }
  60. # Set-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Personalization -Name NoLockScreen -Type DWord -Value 1
  61. # To Restore:
  62. #Set-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Personalization -Name NoLockScreen -Type DWord -Value 1
  63.  
  64.  
  65. ###############################
  66. # Windows 10 Metro App Removals
  67. # These start commented out so you choose
  68. # Just remove the # (comment in PowerShell) on the ones you want to remove
  69. ###############################
  70.  
  71. # Be gone, heathen!
  72. Get-AppxPackage king.com.CandyCrushSaga | Remove-AppxPackage
  73. # Bing Weather, News, Sports, and Finance (Money):
  74. #Get-AppxPackage Microsoft.BingWeather | Remove-AppxPackage
  75. Get-AppxPackage Microsoft.BingNews | Remove-AppxPackage
  76. Get-AppxPackage Microsoft.BingSports | Remove-AppxPackage
  77. Get-AppxPackage Microsoft.BingFinance | Remove-AppxPackage
  78. # Xbox:
  79. #Get-AppxPackage Microsoft.XboxApp | Remove-AppxPackage
  80. # Windows Phone Companion
  81. Get-AppxPackage Microsoft.WindowsPhone | Remove-AppxPackage
  82. # Solitaire Collection
  83. Get-AppxPackage Microsoft.MicrosoftSolitaireCollection | Remove-AppxPackage
  84. # People
  85. #Get-AppxPackage Microsoft.People | Remove-AppxPackage
  86. # Groove Music
  87. Get-AppxPackage Microsoft.ZuneMusic | Remove-AppxPackage
  88. # Movies & TV
  89. #Get-AppxPackage Microsoft.ZuneVideo | Remove-AppxPackage
  90. # OneNote
  91. #Get-AppxPackage Microsoft.Office.OneNote | Remove-AppxPackage
  92. # Photos
  93. #Get-AppxPackage Microsoft.Windows.Photos | Remove-AppxPackage
  94. # Sound Recorder
  95. #Get-AppxPackage Microsoft.WindowsSoundRecorder | Remove-AppxPackage
  96. # Mail & Calendar
  97. #Get-AppxPackage microsoft.windowscommunicationsapps | Remove-AppxPackage
  98. # Skype (Metro version)
  99. #Get-AppxPackage Microsoft.SkypeApp | Remove-AppxPackage
  100.  
  101.  
  102. ##################
  103. # Windows Features
  104. ##################
  105.  
  106. choco install Microsoft-Hyper-V-All --source windowsfeatures
  107. choco install Microsoft-Windows-Subsystem-Linux --source windowsfeatures
  108.  
  109.  
  110. #################
  111. # Windows Updates
  112. #################
  113.  
  114. # Change Windows Updates to "Notify to schedule restart"
  115. # Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings -Name UxOption -Type DWord -Value 1
  116. # To Restore (Automatic):
  117. # Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings -Name UxOption -Type DWord -Value 0
  118.  
  119. # Disable P2P Update downlods outside of local network
  120. # Set-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config -Name DODownloadMode -Type DWord -Value 1
  121. # Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization -Name SystemSettingsDownloadMode -Type DWord -Value 3
  122.  
  123. # To restore (PCs on my local network and PCs on the internet)
  124. # Set-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config -Name DODownloadMode -Type DWord -Value 3
  125. # Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization -Name SystemSettingsDownloadMode -Type DWord -Value 1
  126.  
  127. # To disable P2P update downloads completely:
  128. # Set-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config -Name DODownloadMode -Type DWord -Value 0
  129.  
  130. #Install-WindowsUpdate -AcceptEula -GetUpdatesFromMS
  131.  
  132.  
  133. #############################
  134. # Install Chocolatey Packages
  135. #############################
  136.  
  137. # Fonts
  138. choco install firacode -y
  139.  
  140. # Tools/Utilities
  141. choco install git -y
  142. choco install 7zip -y
  143. # choco install consolez -y
  144. # choco install autohotkey.install -y
  145. # choco install greenshot -y
  146. #choco install carnac -y
  147. #choco install rufus -y
  148. #choco install lessmsi -y
  149. #choco install vswhere -y
  150. choco install nuget.commandline -y
  151. #choco install curl -y
  152. #choco install sysinternals -y
  153.  
  154. # Languange Runtimes
  155. choco install nodejs -y
  156. #choco install python -y
  157.  
  158. # Applications
  159. choco install googlechrome -y
  160. choco install vivaldi
  161. choco install visualstudiocode -y
  162. #choco install docker-for-windows -y
  163. choco install beyondcompare -y
  164. choco install linqpad -y
  165. choco install fiddler4 -y
  166. #choco install filezilla -y
  167. choco install paint.net -y
  168. choco install vlc -y
  169. choco install vivaldi -y
  170. choco install wireshark -y
  171. choco install slack -y
  172. choco install winscp -y
  173. choco install putty -y
  174. choco install notepadplusplus -y
  175. choco install dotnetcore -y
  176. choco install doublecmd -y
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement