Last active
June 21, 2020 07:25
-
-
Save cleygraf/907574188e60eb6a1c2a7047b241080c to your computer and use it in GitHub Desktop.
boxstarter-test
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
# Description: Boxstarter Script | |
# Author: christoph@leygraf.de (Original by Jess Frazelle <jess@linux.com>) | |
# Last Updated: 2020-06-10 | |
# | |
# Install boxstarter: | |
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
# | |
# You might need to set: Set-ExecutionPolicy RemoteSigned | |
# | |
# Run this boxstarter by calling the following from an **elevated** command-prompt: | |
# start http://boxstarter.org/package/nr/url?<URL-TO-RAW-GIST> | |
# OR | |
# Install-BoxstarterPackage -PackageName <URL-TO-RAW-GIST> -DisableReboots | |
# | |
# Learn more: http://boxstarter.org/Learn/WebLauncher | |
#---- TEMPORARY --- | |
Disable-UAC | |
#--- Fonts --- | |
#choco install inconsolata -y | |
#--- Windows Subsystems/Features --- | |
#choco install Microsoft-Hyper-V-All -source windowsFeatures | |
#choco install Microsoft-Windows-Subsystem-Linux -source windowsfeatures | |
#choco install VirtualMachinePlatform -source windowsfeatures | |
#--- Tools --- | |
choco install poshgit | |
#--- Apps --- | |
#choco install docker-for-windows | |
#choco install vscode | |
choco install vivaldi | |
#choco install vmwareworkstation | |
#--- Eneable remoting to be managed with the help of ansible | |
$url = "https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1" | |
$file = "$env:temp\ConfigureRemotingForAnsible.ps1" | |
(New-Object -TypeName System.Net.WebClient).DownloadFile($url, $file) | |
powershell.exe -ExecutionPolicy ByPass -File $file | |
#-- Revert temporary settings | |
Enable-UAC | |
Enable-MicrosoftUpdate | |
Install-WindowsUpdate -acceptEula | |
#--- Rename the Computer --- | |
# Requires restart, or add the -Restart flag | |
$computername = "anmeldung1" | |
if ($env:computername -ne $computername) { | |
Rename-Computer -NewName $computername | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment