Skip to content

Instantly share code, notes, and snippets.

@KalleDK
Last active May 10, 2021 15:23
Show Gist options
  • Save KalleDK/512ddedb2329f657635098acb0deed5d to your computer and use it in GitHub Desktop.
Save KalleDK/512ddedb2329f657635098acb0deed5d to your computer and use it in GitHub Desktop.
# start-process powershell -argumentlist "-ExecutionPolicy Bypass" -verb runAs
# . { iwr -useb https://boxstarter.org/bootstrapper.ps1 } | iex; Get-Boxstarter -Force
# Install-BoxstarterPackage -PackageName https://gist.github.com/KalleDK/512ddedb2329f657635098acb0deed5d/raw/f78d7ef7751e4e967cd4e4c230bdcc62e3026998/Boxstarter -DisableReboots
Enable-MicrosoftUpdate
Install-WindowsUpdate -Criteria "IsHidden=0 and IsInstalled=0"
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -DisableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar -EnableOpenFileExplorerToQuickAccess
Set-BoxstarterTaskbarOptions -Size Small -Dock Bottom -Combine Never -AlwaysShowIconsOn
Set-BoxstarterTaskbarOptions -MultiMonitorOn -MultiMonitorMode Open -MultiMonitorCombine Never
Enable-RemoteDesktop
Disable-GameBarTips
Get-AppxPackage SpotifyAB.SpotifyMusic | Remove-AppxPackage
Get-AppxPackage king.com.CandyCrushFriends | Remove-AppxPackage
Get-AppxPackage king.com.BubbleWitch3Saga | Remove-AppxPackage
Get-AppxPackage Microsoft.SkypeApp | Remove-AppxPackage
Get-AppxPackage Microsoft.Getstarted | Remove-AppxPackage
Get-AppxPackage Microsoft.ZuneMusic | Remove-AppxPackage
Get-AppxPackage Microsoft.MicrosoftSolitaireCollection | Remove-AppxPackage
Get-AppxPackage Microsoft.Office.OneNote | Remove-AppxPackage
Get-AppxPackage Microsoft.BingWeather | Remove-AppxPackage
Get-AppxPackage Microsoft.People | Remove-AppxPackage
Get-AppxPackage Microsoft.Windows.Photos | Remove-AppxPackage
Get-AppxPackage Microsoft.WindowsSoundRecorder | Remove-AppxPackage
Get-AppxPackage Microsoft.XboxApp | Remove-AppxPackage
Get-AppxPackage Microsoft.WindowsMaps | Remove-AppxPackage
Get-AppxPackage Microsoft.WindowsFeedbackHub | Remove-AppxPackage
Get-AppxPackage Microsoft.ZuneVideo | Remove-AppxPackage
Get-AppxPackage Microsoft.GetHelp | Remove-AppxPackage
Get-AppxPackage Microsoft.OneConnect | Remove-AppxPackage
Get-AppxPackage Microsoft.MicrosoftStickyNotes | Remove-AppxPackage
Get-AppxPackage Microsoft.XboxIdentityProvider | Remove-AppxPackage
cinst git.install --params "/NoShellIntegration /SChannel" -y
cinst googlechrome -y
cinst 7zip.install -y
cinst notepadplusplus.install -y
cinst putty.install -y
cinst filezilla -y
cinst wget -y
cinst treesizefree -y
cinst spotify -y
cinst calibre -y
cinst github-desktop -y
cinst sumatrapdf.install -y
cinst python3 --params "/InstallDir:C:\Tools\Python3" --install-arguments="'/quiet InstallAllUsers=1 PrependPath=0 TargetDir=C:\Tools\Python3 CompileAll=1'" --override-arguments -y
cinst golang -ia "INSTALLDIR=""C:\Tools\Go""" -y
cinst gimp -y
cinst keepassxc -y
cinst mpc-hc -y
cinst goggalaxy -y
cinst webex-meetings -y
cinst microsoft-teams -y
cinst citrix-workspace -y
cinst vscode -y
cinst postman -y
cinst bitwarden -y
cinst etcher -y
cinst install cpu-z -y
cinst teracopy -y
cinst vmrc -y
$TempFile = New-TemporaryFile
$Url = 'https://gist.githubusercontent.com/KalleDK/8794d02c91cb247620fffaf00bd860de/raw/a9ea130b58cbb9be957e378a2dce254f30066574/zsh.reg'
Invoke-WebRequest -Uri $Url -OutFile $TempFile
reg import $TempFile
Remove-Item $TempFile
$Url = 'https://github.com/powerline/fonts/blob/master/DejaVuSansMono/DejaVu%20Sans%20Mono%20for%20Powerline.ttf?raw=true'
$OutFile = New-Item -Path $env:TEMP -Name "DejaVu Sans Mono for Powerline.ttf" -ItemType "file"
Invoke-WebRequest -Uri $Url -OutFile $OutFile
$fonts = 0x14
$objShell = New-Object -ComObject Shell.Application
$objFolder = $objShell.Namespace($fonts)
$objFolder.CopyHere($OutFile.FullName, 16)
Remove-Item $OutFile
netsh advfirewall firewall set rule group="Network Discovery" new enable=Yes
Rename-Computer -NewName "NAME"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment