Last active
October 29, 2020 17:44
-
-
Save hiono/9ae4030ec1ddfa5b59b7c8183cd9e7c6 to your computer and use it in GitHub Desktop.
Install boxstarter: Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://boxstarter.org/bootstrapper.ps1')); Get-Boxstarter -Force;; Install-BoxstarterPackage -PackageName "h…
This file contains 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
# | |
# Setup for data platform demo environment | |
# Learn more: http://boxstarter.org/Learn/WebLauncher | |
# | |
# Install manually | |
#---- セットアップ用の一時的な設定--- | |
Update-ExecutionPolicy Unrestricted | |
Disable-UAC | |
#--- Windows Settings --- | |
Disable-GameBarTips | |
Disable-InternetExplorerESC | |
# 「隠しファイル・フォルダを表示する」+「OSのシステムファイルを表示する」+「拡張子を表示する」を同時に設定 | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions | |
Set-TaskbarOptions -Size Small -Dock Bottom -Combine Full -Lock | |
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name NavPaneShowAllFolders -Value 1 | |
# Dark theme | |
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 0 -Type Dword -Force | |
# RemoteDesktop | |
Enable-RemoteDesktop | |
# 電源管理 | |
Powercfg /Change monitor-timeout-ac 0 | |
Powercfg /Change monitor-timeout-dc 0 | |
Powercfg /Change standby-timeout-ac 0 | |
Powercfg /Change standby-timeout-dc 0 | |
#--- Windows Subsystems/Features --- | |
dism /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart | |
choco install Microsoft-Windows-Subsystem-Linux -source windowsfeatures | |
dism /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart | |
Invoke-WebRequest -Uri https://aka.ms/wslubuntu2004 -OutFile ~\Downloads\ubuntu2004.appx -UseBasicParsing | |
Add-AppxPackage ~\Downloads\ubuntu2004.appx | |
#--- UI Locale & Timezone (Tokyo) --- | |
Set-WinUILanguageOverride -Language ja-JP | |
Set-WinCultureFromLanguageListOptOut -OptOut $False | |
Set-WinHomeLocation -GeoId 0x7A | |
Set-WinSystemLocale -SystemLocale ja-JP | |
Set-TimeZone -Id "Tokyo Standard Time" | |
#--- Fonts --- | |
choco install inconsolata | |
# choco install fonts-ricty-diminished | |
#--- Tools --- | |
choco install powershell-core | |
choco install vscode | |
# choco install microsoft-visual-cpp-build-tools --installargs "/InstallSelectableItems 'Win10SDK_VisibleV1'" | |
choco install microsoft-windows-terminal | |
choco install brave | |
# Start-BitsTransfer -Source $LpUrl$LpFile -Destination $LpTemp -Priority High | |
choco feature disable -n=allowGlobalConfirmation | |
# Install-ChocolateyPinnedTaskBarItem "$env:windir\system32\mstsc.exe" | |
# Install-ChocolateyPinnedTaskBarItem "$env:programfiles\console\console.exe" | |
#--- Restore Temporary Settings --- | |
Enable-UAC | |
Enable-MicrosoftUpdate | |
Install-WindowsUpdate -acceptEula | |
b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment