Last active
November 22, 2018 15:51
Revisions
-
shawnweisfeld revised this gist
Nov 22, 2018 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -5,6 +5,12 @@ > Clone USB Drives with: https://www.osforensics.com/tools/write-usb-images.html ## Get Windows Product Key From an admin cmd prompt ``` wmic path softwarelicensingservice get OA3xOriginalProductKey ``` ## Install chocolatey ``` Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) -
shawnweisfeld revised this gist
Nov 19, 2018 . 1 changed file with 3 additions and 55 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,10 @@ # ChickTech Laptop Setup > This document can be found at http://aka.ms/ChickTechLaptopSetup > Download Windows here: https://www.microsoft.com/en-us/software-download/windows10 > Clone USB Drives with: https://www.osforensics.com/tools/write-usb-images.html ## Install chocolatey ``` Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) @@ -15,7 +18,6 @@ choco install firefox -y choco install vlc -y choco install paint.net -y choco install visualstudiocode -y ``` @@ -44,57 +46,3 @@ More Info [Official Instructions](https://docs.microsoft.com/en-us/windows/wsl/i Get-AppxPackage -AllUsers | where {($_.Name -notlike "Microsoft*" -and $_.Name -notlike "Windows*")} | Select Name, PackageFullName Remove-AppxPackage -AllUsers -Package <<PackageFullName>> ``` -
shawnweisfeld revised this gist
Nov 15, 2018 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,6 @@ # ChickTech Laptop Setup > This document can be found at http://aka.ms/ChickTechLaptopSetup > Download Windows here: https://www.microsoft.com/en-us/software-download/windows10 ## Install chocolatey ``` -
shawnweisfeld revised this gist
Oct 16, 2018 . 1 changed file with 54 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -43,3 +43,57 @@ More Info [Official Instructions](https://docs.microsoft.com/en-us/windows/wsl/i Get-AppxPackage -AllUsers | where {($_.Name -notlike "Microsoft*" -and $_.Name -notlike "Windows*")} | Select Name, PackageFullName Remove-AppxPackage -AllUsers -Package <<PackageFullName>> ``` ## WSL intructions from steve ``` [CmdletBinding()] param ( [Parameter(Mandatory = $true)] [string] $distro ) trap { # NOTE: This trap will handle all errors. There should be no need to use a catch below in this # script, unless you want to ignore a specific error. $message = $Error[0].Exception.Message if ($message) { Write-Host -Object "`nERROR: $message" -ForegroundColor Red } Write-Host "`nThe artifact failed to apply.`n" # IMPORTANT NOTE: Throwing a terminating error (using $ErrorActionPreference = "Stop") still # returns exit code zero from the PowerShell script when using -File. The workaround is to # NOT use -File when calling this script and leverage the try-catch-finally block and return # a non-zero exit code from the catch block. exit -1 } try { Write-Output "Creating Ubuntu Distro Folder" $sysDrive = $env:SystemRoot.Substring(0,3) $ubuntuPath=New-Item -ItemType Directory -Force -Path $sysDrive\Distros\ Set-Location $ubuntuPath Write-Output "Downloading Ubuntu Distro" Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-$distro -OutFile Ubuntu.appx -UseBasicParsing Write-Output "Renaming .appx to .zip" Rename-Item $ubuntuPath/Ubuntu.appx $ubuntuPath/Ubuntu.zip Write-Output "Unzipping Distro" Expand-Archive $ubuntuPath/Ubuntu.zip $ubuntuPath/Ubuntu Write-Output "Installing Ubuntu" $installerPath=Get-ChildItem -Path $ubuntuPath/Ubuntu -include ubuntu* | where {$_.Extension -eq ".exe"} "$installerPath install --root" | cmd } finally { popd } ``` -
shawnweisfeld revised this gist
May 12, 2018 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,6 @@ # ChickTech Laptop Setup > This document can be found at http://aka.ms/ChickTechLaptopSetup ## Install chocolatey ``` Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) -
shawnweisfeld revised this gist
May 12, 2018 . No changes.There are no files selected for viewing
-
shawnweisfeld revised this gist
May 12, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -26,7 +26,7 @@ Install Ubuntu via the store Update Ubuntu ``` sudo apt-get -q update && sudo apt-get -q upgrade && sudo apt-get -q dist-upgrade && sudo apt -q autoremove ``` More Info [Official Instructions](https://docs.microsoft.com/en-us/windows/wsl/install-win10) -
shawnweisfeld revised this gist
May 12, 2018 . 1 changed file with 1 addition and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -26,9 +26,7 @@ Install Ubuntu via the store Update Ubuntu ``` sudo apt-get -qq update && sudo apt-get -qq upgrade && sudo apt-get -qq dist-upgrade ``` More Info [Official Instructions](https://docs.microsoft.com/en-us/windows/wsl/install-win10) -
shawnweisfeld revised this gist
May 12, 2018 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -11,6 +11,7 @@ choco install firefox -y choco install vlc -y choco install paint.net -y choco install visualstudiocode -y choco install libreoffice-fresh ``` -
shawnweisfeld revised this gist
May 12, 2018 . 1 changed file with 12 additions and 9 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -14,14 +14,6 @@ choco install visualstudiocode -y ``` ## Install Windows Subsystem for Linux > as Owner ``` @@ -37,4 +29,15 @@ sudo apt-get update # Fetches the list of available updates sudo apt-get upgrade # Strictly upgrades the current packages sudo apt-get dist-upgrade # Installs updates (new ones) ``` More Info [Official Instructions](https://docs.microsoft.com/en-us/windows/wsl/install-win10) ## Windows Update > be sure to turn on updates for all microsoft products ## Windows Store Commands > Check for installed games ``` Get-AppxPackage -AllUsers | where {($_.Name -notlike "Microsoft*" -and $_.Name -notlike "Windows*")} | Select Name, PackageFullName Remove-AppxPackage -AllUsers -Package <<PackageFullName>> ``` -
shawnweisfeld revised this gist
May 12, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -15,7 +15,7 @@ choco install visualstudiocode -y ``` ## Windows Store Commands > Check for installed games ``` Get-AppxPackage -AllUsers | where {($_.Name -notlike "Microsoft*" -and $_.Name -notlike "Windows*")} | Select Name, PackageFullName -
shawnweisfeld revised this gist
May 12, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -18,7 +18,7 @@ choco install visualstudiocode -y > If Needed ``` Get-AppxPackage -AllUsers | where {($_.Name -notlike "Microsoft*" -and $_.Name -notlike "Windows*")} | Select Name, PackageFullName Remove-AppxPackage -AllUsers -Package <<PackageFullName>> ``` -
shawnweisfeld revised this gist
May 12, 2018 . 1 changed file with 0 additions and 9 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -14,15 +14,6 @@ choco install visualstudiocode -y ``` ## Windows Store Commands > If Needed -
shawnweisfeld revised this gist
May 12, 2018 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -20,6 +20,7 @@ Install-Module PSWindowsUpdate Set-ExecutionPolicy RemoteSigned Add-WUServiceManager -ServiceID 7971f918-a847-4430-9279-4a52d1efe18d Get-WUInstall –MicrosoftUpdate –AcceptAll –AutoReboot Get-WUInstall –MicrosoftUpdate –ListOnly ``` ## Windows Store Commands -
shawnweisfeld revised this gist
May 12, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -17,7 +17,7 @@ choco install visualstudiocode -y ## Install Windows Updates ``` Install-Module PSWindowsUpdate Set-ExecutionPolicy RemoteSigned Add-WUServiceManager -ServiceID 7971f918-a847-4430-9279-4a52d1efe18d Get-WUInstall –MicrosoftUpdate –AcceptAll –AutoReboot ``` -
shawnweisfeld revised this gist
May 12, 2018 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -17,6 +17,7 @@ choco install visualstudiocode -y ## Install Windows Updates ``` Install-Module PSWindowsUpdate Set-ExectuionPolicy Unrestricted Add-WUServiceManager -ServiceID 7971f918-a847-4430-9279-4a52d1efe18d Get-WUInstall –MicrosoftUpdate –AcceptAll –AutoReboot ``` -
shawnweisfeld revised this gist
May 12, 2018 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -17,7 +17,6 @@ choco install visualstudiocode -y ## Install Windows Updates ``` Install-Module PSWindowsUpdate Add-WUServiceManager -ServiceID 7971f918-a847-4430-9279-4a52d1efe18d Get-WUInstall –MicrosoftUpdate –AcceptAll –AutoReboot ``` -
shawnweisfeld revised this gist
May 12, 2018 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -16,10 +16,10 @@ choco install visualstudiocode -y ## Install Windows Updates ``` Install-Module PSWindowsUpdate Get-Command –module PSWindowsUpdate Add-WUServiceManager -ServiceID 7971f918-a847-4430-9279-4a52d1efe18d Get-WUInstall –MicrosoftUpdate –AcceptAll –AutoReboot ``` ## Windows Store Commands -
shawnweisfeld revised this gist
May 12, 2018 . 1 changed file with 7 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -39,4 +39,10 @@ Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-L > as chicktech Install Ubuntu via the store Update Ubuntu ``` sudo apt-get update # Fetches the list of available updates sudo apt-get upgrade # Strictly upgrades the current packages sudo apt-get dist-upgrade # Installs updates (new ones) ``` More Info [Official Instructions](https://docs.microsoft.com/en-us/windows/wsl/install-win10) -
shawnweisfeld revised this gist
May 12, 2018 . 1 changed file with 7 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -31,6 +31,12 @@ Remove-AppxPackage -AllUsers -Package <<PackageFullName>> ``` ## Install Windows Subsystem for Linux > as Owner ``` Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux ``` > as chicktech Install Ubuntu via the store [See Instructions Here](https://docs.microsoft.com/en-us/windows/wsl/install-win10) -
shawnweisfeld revised this gist
May 12, 2018 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -24,11 +24,13 @@ Install-WindowsUpdate ## Windows Store Commands > If Needed ``` Get-AppxPackage -AllUsers | Select Name, PackageFullName Remove-AppxPackage -AllUsers -Package <<PackageFullName>> ``` ## Install Windows Subsystem for Linux > Must install as the chicktech user [See Instructions Here](https://docs.microsoft.com/en-us/windows/wsl/install-win10) -
shawnweisfeld revised this gist
May 12, 2018 . 1 changed file with 6 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -22,11 +22,13 @@ Get-WindowsUpdate Install-WindowsUpdate ``` ## Windows Store Commands > If Needed ``` Get-AppxPackage -AllUsers | Select Name, PackageFullName Remove-AppxPackage -AllUsers -Package <<PackageFullName>> ``` ## Install Windows Subsystem for Linux > Must install as the chicktech user [See Instructions Here](https://docs.microsoft.com/en-us/windows/wsl/install-win10) -
shawnweisfeld revised this gist
May 12, 2018 . 1 changed file with 7 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -23,4 +23,10 @@ Install-WindowsUpdate ``` ## Install Windows Subsystem for Linux [See Instructions Here](https://docs.microsoft.com/en-us/windows/wsl/install-win10) ## Windows Store Commands ``` Get-AppxPackage -AllUsers | Select Name, PackageFullName Remove-AppxPackage -AllUsers -Package <<PackageFullName>> ``` -
shawnweisfeld revised this gist
May 11, 2018 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -11,6 +11,7 @@ choco install firefox -y choco install vlc -y choco install paint.net -y choco install visualstudiocode -y ``` ## Install Windows Updates -
shawnweisfeld revised this gist
May 11, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -22,4 +22,4 @@ Install-WindowsUpdate ``` ## Install Windows Subsystem for Linux [See Instructions Here](https://docs.microsoft.com/en-us/windows/wsl/install-win10) -
shawnweisfeld revised this gist
May 11, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -22,4 +22,4 @@ Install-WindowsUpdate ``` ## Install Windows Subsystem for Linux [See instructions Here](https://docs.microsoft.com/en-us/windows/wsl/install-win10) -
shawnweisfeld revised this gist
May 11, 2018 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -19,4 +19,7 @@ Powershell.exe -ExecutionPolicy Unrestricted Import-Module PSWindowsUpdate Get-WindowsUpdate Install-WindowsUpdate ``` ## Install Windows Subsystem for Linux [See instructions Here](https://docs.microsoft.com/en-us/windows/wsl/install-win10_ -
shawnweisfeld revised this gist
May 11, 2018 . 1 changed file with 9 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ ## Install chocolatey ``` Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) ``` @@ -11,4 +11,12 @@ choco install firefox -y choco install vlc -y choco install paint.net -y choco install visualstudiocode -y ``` ## Install Windows Updates ``` Powershell.exe -ExecutionPolicy Unrestricted Import-Module PSWindowsUpdate Get-WindowsUpdate Install-WindowsUpdate ``` -
shawnweisfeld revised this gist
May 11, 2018 . 1 changed file with 6 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -5,10 +5,10 @@ Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.We ## Install software ``` choco install 7zip.install -y choco install GoogleChrome -y choco install firefox -y choco install vlc -y choco install paint.net -y choco install visualstudiocode -y ``` -
shawnweisfeld revised this gist
May 11, 2018 . 2 changed files with 14 additions and 27 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,27 +0,0 @@ This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ ## install chocolatey ``` Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) ``` ## Install software ``` choco install 7zip.install choco install GoogleChrome choco install firefox choco install vlc choco install paint.net choco install visualstudiocode ```
NewerOlder