Skip to content

Instantly share code, notes, and snippets.

@cygnull
Last active July 1, 2023 16:51
Show Gist options
  • Save cygnull/3dec63f0b329551ffef9ee929b98ea8e to your computer and use it in GitHub Desktop.
Save cygnull/3dec63f0b329551ffef9ee929b98ea8e to your computer and use it in GitHub Desktop.

Revisions

  1. cygnull revised this gist Jul 30, 2016. 1 changed file with 50 additions and 29 deletions.
    79 changes: 50 additions & 29 deletions Win10Daily_BoxSetup.txt
    Original file line number Diff line number Diff line change
    @@ -3,34 +3,36 @@
    #The command to run, built from the raw link of this gist
    #START http://boxstarter.org/package/nr/url?https://gist.github.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

    ### GENERAL BOXSTARTER SETTINGS ###
    $Boxstarter.RebootOk=$true
    $Boxstarter.NoPassword=$false
    $Boxstarter.AutoLogin=$true


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

    ### WINDOWS SETTINGS ###

    # .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
    ########################

    @@ -49,51 +51,85 @@ powercfg -change -disk-timeout-dc 0
    Write-BoxstarterMessage "Turning off Windows Hibernation"
    powercfg -h off

    Write-BoxstarterMessage "Doing one round of Windows Updates then Disabling until Boxstarter is Finished."


    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.github.com/shiestie/6858c7c67f5cec133b4bf7c961e20dcf/raw/b3acc29cd1a7596219fb177ea09c7ed343dcefed/AdminDeployment.xml" -y
    @@ -110,6 +146,7 @@ choco install adobe-creative-cloud -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
    @@ -118,6 +155,8 @@ 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
    @@ -168,38 +207,20 @@ Write-BoxstarterMessage "Setting Explorer options and Taskbar up the way you lik
    # Apply user settings
    # Disable defrag (no need when having an SSD)
    Get-ScheduledTask -TaskName *defrag* | Disable-ScheduledTask
    Install-ChocolateyFileAssociation ".txt" "$env:programfiles\Sublime Text 3\sublime_text.exe"

    Move-LibraryDirectory "Downloads" "E:\Downloads"
    Move-LibraryDirectory "Personal" "$env:UserProfile\OneDrive\documents" #move "Documents" folder to OneDrive

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

    Install-ChocolateyPinnedTaskBarItem "$env:windir\syswow64\WindowsPowerShell\v1.0\powershell.exe"
    Install-ChocolateyPinnedTaskBarItem "$env:programfiles\Mozilla Firefox\firefox.exe"

    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

    # Clean up Boxstarter autologin
    # Note: keep this last in the script

    $winLogonKey="HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"
    Remove-ItemProperty -Path $winLogonKey -Name "DefaultUserName" -ErrorAction SilentlyContinue
    Remove-ItemProperty -Path $winLogonKey -Name "DefaultDomainName" -ErrorAction SilentlyContinue
    Remove-ItemProperty -Path $winLogonKey -Name "DefaultPassword" -ErrorAction SilentlyContinue
    Remove-ItemProperty -Path $winLogonKey -Name "AutoAdminLogon" -ErrorAction SilentlyContinue


    } catch {
    Write-ChocolateyFailure 'HBSinstall' $($_.Exception.Message)
    throw
    }
    Enable-UAC
  2. shiestie revised this gist Jul 29, 2016. 1 changed file with 13 additions and 24 deletions.
    37 changes: 13 additions & 24 deletions Win10Daily_BoxSetup.txt
    Original file line number Diff line number Diff line change
    @@ -1,50 +1,39 @@
    #As described here: http://boxstarter.org/Learn/WebLauncher
    #As described here: http://boxstarter.org/Learn/WebLauncher


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

    Update-ExecutionPolicy Unrestricted
    Disable-UAC

    ### GENERAL BOXSTARTER SETTINGS ###
    $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
    $Boxstarter.RebootOk=$true
    $Boxstarter.NoPassword=$false
    $Boxstarter.AutoLogin=$true

    Update-ExecutionPolicy Unrestricted
    Disable-UAC

    Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted
    iwr https://chocolatey.org/install.ps1 | iex #Choco Install

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

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

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

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

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

    #Write-BoxstarterMessage "Setting Windows power plan to $preferredPlan"
    #$guid = (Get-WmiObject -Class win32_powerplan -Namespace root\cimv2\power -Filter "ElementName='High performance'").InstanceID.tostring()
    #$regex = [regex]"{(.*?)}$"
    #$newpowerVal = $regex.Match($guid).groups[1].value
    #powercfg -S $newpowerVal

    Write-BoxstarterMessage "Setting Standby Timeout to Never"
    powercfg -change -standby-timeout-ac 0
    powercfg -change -standby-timeout-dc 0
  3. shiestie renamed this gist Jul 29, 2016. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. shiestie revised this gist Jul 29, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Win10Daily_BoxSetup
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@


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


    ### GENERAL BOXSTARTER SETTINGS ###
  5. shiestie revised this gist Jul 29, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Win10Daily_BoxSetup
    Original file line number Diff line number Diff line change
    @@ -107,7 +107,7 @@ choco install SublimeText3.PackageControl -y
    choco install jivkok.SublimeText3.Packages -y
    choco install sonyvegaspro -y
    choco install adobe-creative-cloud -y
    #choco install VisualStudio2015Professional -packageParameters "--AdminFile E:\Documents\Boxstarter\AdminDeployment.xml" -y
    #choco install VisualStudio2015Professional -packageParameters "--AdminFile https://gist.github.com/shiestie/6858c7c67f5cec133b4bf7c961e20dcf/raw/b3acc29cd1a7596219fb177ea09c7ed343dcefed/AdminDeployment.xml" -y
    #choco install git -y
    #choco install sourcetree -y
    #choco install dotPeek -y
  6. shiestie revised this gist Jul 29, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Win10Daily_BoxSetup
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@


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


    ### GENERAL BOXSTARTER SETTINGS ###
  7. shiestie revised this gist Jul 29, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Win10Daily_BoxSetup
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@


    #The command to run, built from the raw link of this gist
    #START http://boxstarter.org/package/nr/url?
    #START http://boxstarter.org/package/nr/url?https://gist.github.com/shiestie/3dec63f0b329551ffef9ee929b98ea8e


    ### GENERAL BOXSTARTER SETTINGS ###
  8. shiestie created this gist Jul 29, 2016.
    216 changes: 216 additions & 0 deletions Win10Daily_BoxSetup
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,216 @@
    #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?


    ### GENERAL BOXSTARTER SETTINGS ###
    $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

    Update-ExecutionPolicy Unrestricted
    Disable-UAC

    Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted
    iwr https://chocolatey.org/install.ps1 | iex #Choco Install

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

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

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


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

    #Write-BoxstarterMessage "Setting Windows power plan to $preferredPlan"
    #$guid = (Get-WmiObject -Class win32_powerplan -Namespace root\cimv2\power -Filter "ElementName='High performance'").InstanceID.tostring()
    #$regex = [regex]"{(.*?)}$"
    #$newpowerVal = $regex.Match($guid).groups[1].value
    #powercfg -S $newpowerVal

    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 "Doing one round of Windows Updates then Disabling until Boxstarter is Finished."


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

    Write-BoxstarterMessage "Installing Selected Software"

    # Important Software
    choco install 7zip.install -y
    choco install Firefox -y
    choco install thunderbird -y
    choco install keepass.install -y
    choco install discord -y
    choco install dropbox -y

    choco install boxcryptor -y
    choco install qbittorrent -y

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

    # System Software
    choco install WindowsSystemControlCenter -y
    #choco install sysinternals -y
    choco install curl -y
    choco install wget -y
    choco install chocolateygui -y
    choco install malwarebytes -y
    choco install ccleaner -y
    choco install ccenhancer -y
    choco install advancedsystemtweaker -y
    #choco install avginternetsecurity -y
    #choco install avgpctuneup -y
    choco install windows-tweaker -y
    choco install windirstat -y
    choco install glasswire -y
    choco install realtek-hd-audio-driver -y

    # Development Software
    choco install SublimeText3 -y
    choco install SublimeText3.PackageControl -y
    choco install jivkok.SublimeText3.Packages -y
    choco install sonyvegaspro -y
    choco install adobe-creative-cloud -y
    #choco install VisualStudio2015Professional -packageParameters "--AdminFile E:\Documents\Boxstarter\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
    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
    #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
    Install-ChocolateyFileAssociation ".txt" "$env:programfiles\Sublime Text 3\sublime_text.exe"
    Move-LibraryDirectory "Downloads" "E:\Downloads"
    Move-LibraryDirectory "Personal" "$env:UserProfile\OneDrive\documents" #move "Documents" folder to OneDrive
    Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions -EnableShowFullPathInTitleBar
    Set-TaskbarOptions -Size Small -Lock
    Disable-InternetExplorerESC
    Disable-BingSearch
    Disable-GameBarTips
    Disable-PSRemoting

    Install-ChocolateyPinnedTaskBarItem "$env:windir\syswow64\WindowsPowerShell\v1.0\powershell.exe"
    Install-ChocolateyPinnedTaskBarItem "$env:programfiles\Mozilla Firefox\firefox.exe"

    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

    # Clean up Boxstarter autologin
    # Note: keep this last in the script

    $winLogonKey="HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"
    Remove-ItemProperty -Path $winLogonKey -Name "DefaultUserName" -ErrorAction SilentlyContinue
    Remove-ItemProperty -Path $winLogonKey -Name "DefaultDomainName" -ErrorAction SilentlyContinue
    Remove-ItemProperty -Path $winLogonKey -Name "DefaultPassword" -ErrorAction SilentlyContinue
    Remove-ItemProperty -Path $winLogonKey -Name "AutoAdminLogon" -ErrorAction SilentlyContinue


    } catch {
    Write-ChocolateyFailure 'HBSinstall' $($_.Exception.Message)
    throw
    }