text 适用于Windows 10的Boxstarter脚本日常使用,游戏,开发..

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text 适用于Windows 10的Boxstarter脚本日常使用,游戏,开发..相关的知识,希望对你有一定的参考价值。

#As described here: http://boxstarter.org/Learn/WebLauncher 
 
#The command to run, built from the raw link of this gist 
#START http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/shiestie/3dec63f0b329551ffef9ee929b98ea8e/raw/2d57a34b1f0f135d631701c612b2203b3c258604/Win10Daily_BoxSetup.txt

Write-BoxstarterMessage "Setting Execution Policy to Unrestricted and Disabling UAC"

Update-ExecutionPolicy Unrestricted 
Disable-UAC 
Restart-Computer

Write-BoxstarterMessage "Downloading and Installing .Net Framework v3.5 then rebooting if needed."


# .NET 3.5
choco install DotNet3.5
if (Test-PendingReboot) { Invoke-Reboot }

Write-BoxstarterMessage "Downloading and Installing .Net Framework v4.5 then Rebooting if needed."

# .NET 4.5
choco install DotNet4.5
if (Test-PendingReboot) { 
    Invoke-Reboot 
}

Write-BoxstarterMessage "Downloading and Installing .Net Framework v4.6 then Rebooting if needed."

# .NET 4.6
choco install DotNet4.6
if (Test-PendingReboot) {
    Invoke-Reboot
}


####change power settings for installs
########################

Write-BoxstarterMessage "Setting Standby Timeout to Never"
powercfg -change -standby-timeout-ac 0
powercfg -change -standby-timeout-dc 0
 
Write-BoxstarterMessage "Setting Monitor Timeout to 240 minutes"
powercfg -change -monitor-timeout-ac 240
powercfg -change -monitor-timeout-dc 20
 
Write-BoxstarterMessage "Setting Disk Timeout to Never"
powercfg -change -disk-timeout-ac 0
powercfg -change -disk-timeout-dc 0
 
Write-BoxstarterMessage "Turning off Windows Hibernation"
powercfg -h off



Write-BoxstarterMessage "Downloading, Installing Windows Updates then rebooting if needed."

# Update Windows and reboot if necessary
Install-WindowsUpdate -AcceptEula -GetUpdatesFromMS
if (Test-PendingReboot) { Invoke-Reboot }

Write-BoxstarterMessage "Windows Updates complete, Disabling Windows Update until Boxstarter is finished."

Disable-MicrosoftUpdate


Write-BoxstarterMessage "Installing Selected Software"

# Important Software
Write-BoxstarterMessage "Installing 7Zip"
choco install 7zip.install -y

Write-BoxstarterMessage "Installing Firefox"
choco install Firefox -y

Write-BoxstarterMessage "Installing Thunderbird"
choco install thunderbird -y

Write-BoxstarterMessage "Installing Keepass"
choco install keepass.install -y

Write-BoxstarterMessage "Installing Discord"
choco install discord -y

Write-BoxstarterMessage "Installing Dropbox"
choco install dropbox -y

Write-BoxstarterMessage "Installing Boxcryptor"
choco install boxcryptor -y

Write-BoxstarterMessage "Installing qBittorrent"
choco install qbittorrent -y

#choco install vcredist2015 -y
#choco install vcredist2012 -y


# System Software

Write-BoxstarterMessage "Installing Windows System Control Center"
choco install WindowsSystemControlCenter -y

#choco install sysinternals -y

Write-BoxstarterMessage "Installing curl, wget, and chocolateyGUI"
choco install curl -y
choco install wget -y
choco install chocolateygui -y

Write-BoxstarterMessage "Installing Malwarebytes, CCLeaner, and a few other Security Programs"
choco install malwarebytes -y
choco install ccleaner -y
choco install ccenhancer -y
choco install advancedsystemtweaker -y

#choco install avginternetsecurity -y
#choco install avgpctuneup -y

Write-BoxstarterMessage "Installing Other Misc. System and Setting Software"
choco install windows-tweaker -y
choco install windirstat -y
choco install glasswire -y
choco install realtek-hd-audio-driver -y

# Development Software

Write-BoxstarterMessage "Installing Sublime3"
choco install SublimeText3 -y
choco install SublimeText3.PackageControl -y
choco install jivkok.SublimeText3.Packages -y

Write-BoxstarterMessage "Installing Developement Software"
choco install sonyvegaspro -y
choco install adobe-creative-cloud -y
#choco install VisualStudio2015Professional -packageParameters "--AdminFile https://gist.githubusercontent.com/shiestie/6858c7c67f5cec133b4bf7c961e20dcf/raw/b3acc29cd1a7596219fb177ea09c7ed343dcefed/AdminDeployment.xml" -y
#choco install git -y
#choco install sourcetree -y
#choco install dotPeek -y
#choco install vagrant
#choco install Git-Credential-Manager-for-Windows -y
#choco install ecplise -y
#choco install jdk8 -y
#choco install AndroidStudio -y
#choco install intellijidea-community -y
#choco install visualstudiocode -params /NoDesktopIcon /NoQuicklaunchIcon -y
#choco install apktool -y

#Media
Write-BoxstarterMessage "Installing Media Software and Codecs"
choco install vlc -y
choco install ffmpeg -y
choco install spotify -y
choco install flashplayerplugin -y
choco install plexmediaserver -y
choco install cccp -y

# Optional Software

Write-BoxstarterMessage "Installing Misc. Software and Fonts"
#choco install googlechrome -y
choco install rufus.install -y
choco install vmwareworkstation -y
choco install steam -y
choco install AdobeAIR -y
choco install sumatrapdf.install -y
#choco install VirtualCloneDrive -y
choco install googledrive -y
choco install winmerge -y
#choco install fiddler4 -y
#choco install realvnc -y
choco install cheatengine -y

# Fonts
choco install sourcecodepro -y
choco install RobotoFonts -y
choco install ubuntu.font -y
choco install opensans -y
choco install MesloLG.DZ -y
choco install bitstreamverafonts -y
choco install dejavufonts -y
choco install 

# Windows Features
#cinst Microsoft-Hyper-V-All -source windowsFeatures
#cinst IIS-WebServerRole -source windowsfeatures
#cinst IIS-HttpCompressionDynamic -source windowsfeatures
#cinst TelnetClient -source windowsFeatures





#### Schedule updates to applications with chocolatey
schtasks.exe /create /s "localhost" /ru "System" /tn "Update Chocolatey packages" /tr "%ChocolateyInstall%\bin\cup all" /sc DAILY /st 06:00 /F
Write-BoxstarterMessage "Set update schedule for apps is finished"
if (Test-PendingReboot) { Invoke-Reboot }



Write-BoxstarterMessage "Updating HOSTS File"
#Import HOST File
Remove-Item -Path "$env:windir\system32\drivers\etc\hosts" 
Move-Item -Path "E:\Documents\Boxstarter\hosts" -Destination "$env:windir\system32\drivers\etc\hosts"


Write-BoxstarterMessage "Setting Explorer options and Taskbar up the way you like, and Disabling a few features that will be unused or needed"
# Apply user settings
# Disable defrag (no need when having an SSD)
Get-ScheduledTask -TaskName *defrag* | Disable-ScheduledTask

Move-LibraryDirectory "Downloads" "E:\Downloads"

Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions -EnableShowFullPathInTitleBar
Set-TaskbarOptions -Size Small -Lock
Disable-InternetExplorerESC
Disable-BingSearch
Disable-GameBarTips
Disable-PSRemoting

Write-BoxstarterMessage "Enabling UAC, Windows Update, and Cleaning up Boxstarter junk"
################
Update-ExecutionPolicy Unrestricted
Enable-MicrosoftUpdate
Install-WindowsUpdate -acceptEula -GetUpdatesFromMS
 #Turn UAC Back on
Enable-UAC

以上是关于text 适用于Windows 10的Boxstarter脚本日常使用,游戏,开发..的主要内容,如果未能解决你的问题,请参考以下文章

是否有适用于 Windows 10 的 SendKeys 类的替代方案

适用于 Linux 的 Windows 子系统安装指南 (Windows 10) (微软官方文档)

在 Windows 10 上安装适用于 C++ 的 tesseract

适用于Windows7&Windows10远程管理工具安装

适用于 Windows 8.1 的 Nvidia GeForce 驱动程序无法在 Windows 10 上运行 [关闭]

我使用 pyinstaller 创建的 .exe 文件适用于 Windows 10,但不适用于 Windows 7