powershell 用于新Windows框的Boxstarter命令。

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了powershell 用于新Windows框的Boxstarter命令。相关的知识,希望对你有一定的参考价值。

# Description: Boxstarter Script
# Author: Jess Frazelle <jess@linux.com>
# Last Updated: 2017-09-11
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
# start http://boxstarter.org/package/nr/url?<URL-TO-RAW-GIST>
#
# Learn more: http://boxstarter.org/Learn/WebLauncher

#---- TEMPORARY ---
Disable-UAC

#--- Fonts ---
choco install inconsolata -y
  
#--- Windows Settings ---
Disable-BingSearch
Disable-GameBarTips

Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Set-TaskbarOptions -Size Small -Dock Bottom -Combine Full -Lock
Set-TaskbarOptions -Size Small -Dock Bottom -Combine Full -AlwaysShowIconsOn

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

#--- Windows Subsystems/Features ---
choco install Microsoft-Hyper-V-All -source windowsFeatures
choco install Microsoft-Windows-Subsystem-Linux -source windowsfeatures

#--- Tools ---
choco install git -params '"/GitAndUnixToolsOnPath /WindowsTerminal"' -y
choco install poshgit
choco install vim

#--- Apps ---
choco install googlechrome
choco install docker-for-windows
choco install microsoft-teams
choco install vcxsrv

#--- Restore Temporary Settings ---
Enable-UAC
Enable-MicrosoftUpdate
Install-WindowsUpdate -acceptEula
# Description: Uninstall unecessary applications that come with Windows out of the box
# Author: Jess Frazelle <jess@linux.com>
# Last Updated: 2017-09-11

# Dropbox
Get-AppxPackage *Dropbox* | Remove-AppxPackage

# McAfee Security

# Netflix
Get-AppxPackage *Netflix* | Remove-AppxPackage

# Solitaire
Get-AppxPackage *Solitaire* | Remove-AppxPackage

# Xbox
Get-AppxPackage *Xbox* | Remove-AppxPackage

## Other useful commands
#--- List all installed programs --#
Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate |Format-Table -AutoSize

#--- List all store-installed programs --#
Get-AppxPackage | Select-Object Name, PackageFullName, Version |Format-Table -AutoSize

以上是关于powershell 用于新Windows框的Boxstarter命令。的主要内容,如果未能解决你的问题,请参考以下文章

powershell 用于新Windows框的Boxstarter命令。

powershell 用于新Windows框的Boxstarter命令。

powershell 用于新Windows框的Boxstarter命令。

powershell 在Windows上添加新的WiFi Profil(Powershell)

powershell Powershell脚本,用于在Windows中启用自然滚动

powershell 用于在Windows上运行东西的PowerShell脚本