Last active
November 24, 2020 22:05
-
-
Save Luismcplopes/9607f171a3f95f4b81e901d1b2051bf4 to your computer and use it in GitHub Desktop.
For test windows first start automation with chocolatery and boxstarter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Description: Boxstarter Script | |
# Author: Luislopes | |
# note backup feedreader DB | |
# Run using: START http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/Luismcplopes/9607f171a3f95f4b81e901d1b2051bf4/raw/2979af4a33792223b524ee610d09cf5c07b2a4bd/teste.ps1 | |
# http://boxstarter.org/package/url?https://gist.githubusercontent.com/Luismcplopes/9607f171a3f95f4b81e901d1b2051bf4/raw/2979af4a33792223b524ee610d09cf5c07b2a4bd/teste.ps1 | |
#--- PowerShell v2 --- | |
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1')) | |
iex ((New-Object System.Net.WebClient).DownloadString('https://boxstarter.org/bootstrapper.ps1')); Get-Boxstarter -Force | |
#--- PowerShell v3+ --- | |
#Set-ExecutionPolicy Bypass -Scope Process -Force; iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex | |
#. { iwr -useb https://boxstarter.org/bootstrapper.ps1 } | iex; Get-Boxstarter -Force | |
#--- Boxstarter options --- | |
#$Boxstarter.RebootOk=$true # Allow reboots? | |
#$Boxstarter.NoPassword=$false # Is this a machine with no login password? | |
#$Boxstarter.AutoLogin=$true # Save my password securely and auto-login after a reboot | |
#------------------- Basic setup ------------------- | |
Update-ExecutionPolicy Unrestricted | |
Disable-UAC | |
Disable-GameBarTips | |
Disable-BingSearch | |
Disable-InternetExplorerESC | |
#--- disable defrag because I have an SSD --- | |
Get-ScheduledTask -TaskName *defrag* | Disable-ScheduledTask | |
#------------------- install apllications ------------------- | |
cinst chocolateygui -Y | |
cinst chocolatey-core.extension -Y | |
cinst 7zip.install -Y | |
#cinst winrar -Y | |
cinst dropbox -Y | |
cinst filezilla -Y | |
cinst spacesniffer -Y | |
cinst adobereader -Y | |
cinst utorrent -Y | |
cinst vlc -Y | |
cinst gopro-quik -Y | |
cinst garmin-express -Y | |
cinst quickroute -Y | |
#cinst garmin-basecamp -Y | |
#cinst sharemouse -Y | |
cinst vscode -Y | |
cinst scode-settingssync -Y | |
#cinst keypirinha -Y | |
cinst openvpn -Y | |
cinst office365proplus -Y # https://c2rsetup.officeapps.live.com/c2r/download.aspx?productReleaseID=O365ProPlusRetail&platform=Def&language=pt-pt&TaxRegion=pr&correlationId=a69d27e9-c327-45fc-93a6-494d0258bcab&token=0ecee0d9-8e9d-40e3-b0a6-4a9ad36d7f6c&version=O16GA&source=O15OLSO365&Br=4 | |
#cinst produkey -Y #cdkey | |
cinst obs-studio -Y | |
#cinst quicktime -Y | |
#cinst itunes -Y | |
#--- Games --- | |
cinst steam -Y #Bi10507840 | |
cinst steam-cleaner -Y | |
#--- Mensage tools --- | |
cinst slack -Y | |
cinst whatsapp -Y | |
cinst skype -Y | |
cinst discord -Y | |
cinst teamspeak -Y | |
#--- Browsers --- | |
cinst googlechrome -Y | |
#cinst selenium-chrome-driver -Y | |
cinst firefox -Y | |
#cinst tor-browser -Y | |
cinst jdk8 -Y | |
#--- Virtualition --- | |
cinst etcher -Y | |
cinst virtualbox -Y | |
cinst virtualbox-guest-additions-guest.install -Y | |
#--- Dev-Tools --- | |
#cinst pibakery -Y | |
#cinst docker-desktop -Y | |
#cinst docker-cli -Y | |
#cinst docker-machine -Y | |
#cinst docker-compose -Y | |
#cinst minikube -Y | |
#cinst vagrant -Y | |
#cinst packer -Y | |
#cinst ansiblevaultcmd -Y | |
#cinst sql-server-management-studio -Y | |
#--- Node modules (Global) | |
#npm install -g gulp | |
#$source = "http://www.feedreader.com/releases/FeedReader314Setup.zip" | |
#$destination = "$env:USERPROFILE\Desktop\FeedReader314Setup.zip" | |
#Write-Host Let me get the latest version for you. I am copying it in your temp folder: | |
#Write-Host $destination | |
#Invoke-WebRequest $source -OutFile "$destination" | |
# if (-not (test-path "D:\APPs\7-Zip\7z.exe")) {throw "$env:ProgramFiles\7-Zip\7z.exe needed"} | |
# set-alias sz "$env:ProgramFiles\7-Zip\7z.exe" | |
#7za x -aoa -Y -o"$env:ProgramFiles\$packageName\" "$destination" | |
#powershell -command "& { iwr 'http://download.garmin.com/software/VIRBEditforWindows_543.exe' -OutFile '$env:USERPROFILE\Desktop\VIRBEditforWindows_543.exe' }" | |
powershell -command "& { iwr 'https://software.gopro.com/PC/FusionStudio_x64_130_2018-09-11.exe' -OutFile '$env:USERPROFILE\Desktop\toinstall\FusionStudio_x64_130_2018-09-11.exe' }" | |
powershell -command "& { iwr http://www.feedreader.com/releases/FeedReader314Setup.exe -OutFile "$env:USERPROFILE\Desktop\FeedReader314Setup.exe" }" | |
Invoke-WebRequest "http://download.garmin.com/software/VIRBEditforWindows_543.exe" -OutFile "$env:USERPROFILE\Desktop\toinstall\VIRBEditforWindows_543.exe" | |
Invoke-WebRequest "https://software.gopro.com/PC/FusionStudio_x64_130_2018-09-11.exe" -OutFile "$env:USERPROFILE\Desktop\FusionStudio_x64_130_2018-09-11.exe" | |
#Invoke-WebRequest "http://www.feedreader.com/releases/FeedReader314Setup.exe" -OutFile "$env:USERPROFILE\Desktop\FeedReader314Setup.exe" | |
Invoke-WebRequest "https://worldofwarships.eu/en/game_download/" | |
START "https://worldofwarships.eu/en/game_download/" | |
#Gameforge Live | |
#S.K.I.L.L. - Special Force 2 qwertyui123 | |
#Photoshop Lightroom 5.4 | |
#Nano Server Image Builder | |
#Illustrator | |
#Photoshop | |
#Garmin\MapInstall | |
#ASUS\AI Suite II 1.02.33 | |
#HitFilm | |
#Packet Tracer 6 | |
#Powershell | |
#------------------- Shortcuts Windows ------------------- | |
# This will create a Visual Studio task bar icon. | |
Install-cinstlateyPinnedTaskBarItem -TargetFilePath "${env:ProgramFiles(x86)}\Windows Media Player\wmplayer.exe" | |
Install-cinstlateyPinnedTaskBarItem "$env:windir\system32\notepad.exe" | |
Install-cinstlateyPinnedTaskBarItem "C:\Program Files\internet explorer\iexplore.exe" | |
#Install-cinstlateyShortcut https://cinstlatey.org/docs/helpers-install-cinstlatey-shortcut | |
# https://cinstlatey.org/docs/helpers-install-cinstlatey-desktop-link | |
# This will create a new Desktop Shortcut pointing at the NHibernate | |
# Profiler exe. | |
Install-cinstlateyDesktopLink -TargetFilePath "\\192.168.1.6\osmc" | |
Install-cinstlateyDesktopLink -TargetFilePath "$env:windir\system32\notepad.exe" | |
Install-cinstlateyDesktopLink -TargetFilePath "C:\Program Files\internet explorer\iexplore.exe" | |
Install-cinstlateyDesktopLink -TargetFilePath "${env:ProgramFiles(x86)}\Windows Media Player\wmplayer.exe" | |
#Install-cinstlateyExplorerMenuItem https://cinstlatey.org/docs/helpers-install-cinstlatey-explorer-menu-item | |
#https://cinstlatey.org/docs/helpers-reference | |
#------------------- Uninstall unecessary applications that come with Windows out of the box --- | |
# 3D Builder | |
Get-AppxPackage Microsoft.3DBuilder | Remove-AppxPackage | |
# Alarms | |
Get-AppxPackage Microsoft.WindowsAlarms | Remove-AppxPackage | |
# Autodesk | |
Get-AppxPackage *Autodesk* | Remove-AppxPackage | |
# Bing Weather, News, Sports, and Finance (Money): | |
Get-AppxPackage Microsoft.BingFinance | Remove-AppxPackage | |
Get-AppxPackage Microsoft.BingNews | Remove-AppxPackage | |
Get-AppxPackage Microsoft.BingSports | Remove-AppxPackage | |
Get-AppxPackage Microsoft.BingWeather | Remove-AppxPackage | |
# BubbleWitch | |
Get-AppxPackage *BubbleWitch* | Remove-AppxPackage | |
# Candy Crush | |
Get-AppxPackage king.com.CandyCrush* | Remove-AppxPackage | |
# Comms Phone | |
Get-AppxPackage Microsoft.CommsPhone | Remove-AppxPackage | |
# Dell | |
Get-AppxPackage *Dell* | Remove-AppxPackage | |
# Dropbox | |
Get-AppxPackage *Dropbox* | Remove-AppxPackage | |
Get-AppxPackage *Facebook* | Remove-AppxPackage | |
# Feedback Hub | |
Get-AppxPackage Microsoft.WindowsFeedbackHub | Remove-AppxPackage | |
# Get Started | |
Get-AppxPackage Microsoft.Getstarted | Remove-AppxPackage | |
# Keeper | |
Get-AppxPackage *Keeper* | Remove-AppxPackage | |
# Mail & Calendar | |
Get-AppxPackage microsoft.windowscommunicationsapps | Remove-AppxPackage | |
# Maps | |
Get-AppxPackage Microsoft.WindowsMaps | Remove-AppxPackage | |
# March of Empires | |
Get-AppxPackage *MarchofEmpires* | Remove-AppxPackage | |
# McAfee Security | |
Get-AppxPackage *McAfee* | Remove-AppxPackage | |
# Uninstall McAfee Security App | |
$mcafee = gci "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall" | foreach { gp $_.PSPath } | ? { $_ -match "McAfee Security" } | select UninstallString | |
if ($mcafee) { | |
$mcafee = $mcafee.UninstallString -Replace "C:\Program Files\McAfee\MSC\mcuihost.exe","" | |
Write "Uninstalling McAfee..." | |
start-process "C:\Program Files\McAfee\MSC\mcuihost.exe" -arg "$mcafee" -Wait | |
} | |
# Messaging | |
Get-AppxPackage Microsoft.Messaging | Remove-AppxPackage | |
# Minecraft | |
Get-AppxPackage *Minecraft* | Remove-AppxPackage | |
# Netflix | |
Get-AppxPackage *Netflix* | Remove-AppxPackage | |
# Office Hub | |
Get-AppxPackage Microsoft.MicrosoftOfficeHub | Remove-AppxPackage | |
# One Connect | |
Get-AppxPackage Microsoft.OneConnect | Remove-AppxPackage | |
# OneNote | |
Get-AppxPackage Microsoft.Office.OneNote | Remove-AppxPackage | |
# People | |
Get-AppxPackage Microsoft.People | Remove-AppxPackage | |
# Phone | |
Get-AppxPackage Microsoft.WindowsPhone | Remove-AppxPackage | |
# Photos | |
Get-AppxPackage Microsoft.Windows.Photos | Remove-AppxPackage | |
# Plex | |
Get-AppxPackage *Plex* | Remove-AppxPackage | |
# Skype (Metro version) | |
Get-AppxPackage Microsoft.SkypeApp | Remove-AppxPackage | |
# Sound Recorder | |
Get-AppxPackage Microsoft.WindowsSoundRecorder | Remove-AppxPackage | |
# Solitaire | |
Get-AppxPackage *Solitaire* | Remove-AppxPackage | |
# Sticky Notes | |
Get-AppxPackage Microsoft.MicrosoftStickyNotes | Remove-AppxPackage | |
# Sway | |
Get-AppxPackage Microsoft.Office.Sway | Remove-AppxPackage | |
Get-AppxPackage *Twitter* | Remove-AppxPackage | |
# Xbox | |
Get-AppxPackage Microsoft.XboxApp | Remove-AppxPackage | |
Get-AppxPackage Microsoft.XboxIdentityProvider | Remove-AppxPackage | |
Get-AppxPackage xbox | Remove-AppxPackag | |
# Zune Music, Movies & TV | |
Get-AppxPackage Microsoft.ZuneMusic | Remove-AppxPackage | |
Get-AppxPackage Microsoft.ZuneVideo | Remove-AppxPackage | |
#-------------------Windows Features ------------------- | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions | |
#Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions | |
#--- Windows Taskbar Settings --- | |
#Set-TaskbarOptions -Size Small -Lock -Dock Top -Combine Always -AlwaysShowIconsOn | |
#------------------- Windows Settings ------------------- | |
# Some from: @NickCraver's gist https://gist.github.com/NickCraver/7ebf9efbfd0c3eab72e9 | |
# Privacy: Let apps use my advertising ID: Disable | |
If (-Not (Test-Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo")) { | |
New-Item -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo | Out-Null | |
} | |
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0 | |
# WiFi Sense: HotSpot Sharing: Disable | |
If (-Not (Test-Path "HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting")) { | |
New-Item -Path HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting | Out-Null | |
} | |
Set-ItemProperty -Path HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting -Name value -Type DWord -Value 0 | |
# WiFi Sense: Shared HotSpot Auto-Connect: Disable | |
Set-ItemProperty -Path HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots -Name value -Type DWord -Value 0 | |
# Start Menu: Disable Bing Search Results | |
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search -Name BingSearchEnabled -Type DWord -Value 0 | |
# To Restore (Enabled): | |
# Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search -Name BingSearchEnabled -Type DWord -Value 1 | |
# Disable Telemetry (requires a reboot to take effect) | |
# Note this may break Insider builds for your organization | |
# Set-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name AllowTelemetry -Type DWord -Value 0 | |
# Get-Service DiagTrack,Dmwappushservice | Stop-Service | Set-Service -StartupType Disabled | |
# Change Explorer home screen back to "This PC" | |
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name LaunchTo -Type DWord -Value 1 | |
# Change it back to "Quick Access" (Windows 10 default) | |
# Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name LaunchTo -Type DWord -Value 2 | |
#--- File Explorer Settings --- | |
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name NavPaneExpandToCurrentFolder -Value 1 | |
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name NavPaneShowAllFolders -Value 1 | |
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name LaunchTo -Value 1 | |
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name MMTaskbarMode -Value 2 | |
# These make "Quick Access" behave much closer to the old "Favorites" | |
# Disable Quick Access: Recent Files | |
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer -Name ShowRecent -Type DWord -Value 0 | |
# Disable Quick Access: Frequent Folders | |
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer -Name ShowFrequent -Type DWord -Value 0 | |
# To Restore: | |
# Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer -Name ShowRecent -Type DWord -Value 1 | |
# Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer -Name ShowFrequent -Type DWord -Value 1 | |
# Disable the Lock Screen (the one before password prompt - to prevent dropping the first character) | |
If (-Not (Test-Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Personalization)) { | |
New-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows -Name Personalization | Out-Null | |
} | |
Set-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Personalization -Name NoLockScreen -Type DWord -Value 1 | |
# To Restore: | |
# Set-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Personalization -Name NoLockScreen -Type DWord -Value 1 | |
# Lock screen (not sleep) on lid close | |
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Power' -Name AwayModeEnabled -Type DWord -Value 1 | |
# To Restore: | |
# Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Power' -Name AwayModeEnabled -Type DWord -Value 0 | |
# Use the Windows 7-8.1 Style Volume Mixer | |
If (-Not (Test-Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\MTCUVC")) { | |
New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name MTCUVC | Out-Null | |
} | |
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\MTCUVC" -Name EnableMtcUvc -Type DWord -Value 0 | |
# To Restore (Windows 10 Style Volume Control): | |
# Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\MTCUVC" -Name EnableMtcUvc -Type DWord -Value 1 | |
# Disable Xbox Gamebar | |
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR" -Name AppCaptureEnabled -Type DWord -Value 0 | |
Set-ItemProperty -Path "HKCU:\System\GameConfigStore" -Name GameDVR_Enabled -Type DWord -Value 0 | |
# Turn off People in Taskbar | |
If (-Not (Test-Path "HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People")) { | |
New-Item -Path HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People | Out-Null | |
} | |
Set-ItemProperty -Path "HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" -Name PeopleBand -Type DWord -Value 0 | |
#------------------- Windows Subsystems/Features --- first view winver --- | |
#cinst Microsoft-Hyper-V-All -source windowsFeatures | |
#cinst Microsoft-Hyper-V-All -source windowsFeatures | |
cinst Microsoft-Windows-Subsystem-Linux -source windowsfeatures #Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux | |
#cinst IIS-WebServerRole -source windowsfeatures | |
#--- Ubuntu1804 --- --- first view winver --- | |
#Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1804 -OutFile ~/Ubuntu.appx -UseBasicParsing | |
#Add-AppxPackage -Path ~/Ubuntu.appx | |
#--- Ubuntu1604 | |
#Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1604 -OutFile ~/Ubuntu.appx -UseBasicParsing | |
#Add-AppxPackage -Path ~/Ubuntu.appx | |
#------------------- Restore Temporary Settings ------------------- | |
Enable-UAC | |
Enable-MicrosoftUpdate | |
#Enable-RemoteDesktop | |
# Update Windows and reboot if necessary | |
Install-WindowsUpdate -AcceptEula -GetUpdatesFromMS | |
#------------------- Rename the Computer ------------------- | |
# Requires restart, or add the -Restart flag | |
$computername = "acidburn" | |
if ($env:computername -ne $computername) { | |
Rename-Computer -NewName $computername | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
START http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/Luismcplopes/9607f171a3f95f4b81e901d1b2051bf4/raw/6521c03dafd10c8ca14ea4e318514d597cc7a18c/teste.ps1