Created
May 3, 2018 14:51
-
-
Save andrewbbrown/e4a0354a9f4ec6e8aa95e236e4a54e29 to your computer and use it in GitHub Desktop.
Boxstarter-Win2016-AEP-JumpBox-Setup.ps1
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
try { | |
# Boxstarter options | |
$Boxstarter.RebootOk=$true | |
$Boxstarter.NoPassword=$false # Is this a machine with no logon password? | |
$Boxstarter.AutoLogin=$true | |
Write-BoxstarterMessage "Ensuring ExecutionPolicy to Unrestricted..." | |
Update-ExecutionPolicy Unrestricted | |
Write-BoxstarterMessage "Ensuring Internet Explorer ESC (IESC) is disabled..." | |
Disable-InternetExplorerESC | |
Write-BoxstarterMessage "Ensuring PSGallery is a trusted PSRepository..." | |
Get-PackageProvider -Name NuGet -ForceBootstrap | |
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted | |
Write-BoxstarterMessage "Ensuring the PowerShellGet module is installed..." | |
Install-Module -Name PowerShellGet -Scope AllUsers -Force | |
############################### | |
#### windows features #### | |
############################### | |
Write-BoxstarterMessage "Ensuring that Windows Explorer Settings are correct (Developer features... file extensions... full file paths... show hidden files... show protected os files...)" | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar | |
######################### | |
#### dotnet features #### | |
######################### | |
CINST dotnet3.5 -y | |
CINST dotnet4.7 -y | |
####################### | |
#### general utils #### | |
####################### | |
cinst chocolatey-core.extension -y | |
cinst 7zip.install -y | |
cinst filezilla | |
cinst windirstat | |
#cinst sysinternals | |
#cinst googlechrome -y | |
#cinst firefox -y | |
#cinst flashplayerplugin -y | |
cinst notepadplusplus.install | |
cinst visualstudiocode | |
cinst github | |
cinst poshgit | |
cinst putty.install -y | |
cinst vmwarevsphereclient -y | |
cinst vmware-tools -y | |
Write-BoxstarterMessage "Trusting PSGallery..." | |
Get-PackageProvider -Name NuGet -ForceBootstrap | |
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted | |
Write-BoxstarterMessage "Installing PowerShellGet Module" | |
Install-Module -Name PowerShellGet -Scope AllUsers -Force | |
Write-BoxstarterMessage "Installing posh-git Module" | |
Install-Module -Name posh-git -Scope AllUsers -Force | |
#Write-BoxstarterMessage "Installing oh-my-posh Module" | |
#Install-Module -Name oh-my-posh -Scope AllUsers -Force | |
Write-BoxstarterMessage "Installing VMware PowerCLI Module" | |
Install-Module -Name VMware.PowerCLI -Scope AllUsers -Force | |
################# | |
#### cleanup #### | |
################# | |
del C:\eula*.txt | |
del C:\install.* | |
del C:\vcredist.* | |
del C:\vc_red.* | |
Write-BoxstarterMessage "Machine is complete!" | |
} | |
catch { | |
Write-ChocolateyFailure 'Boxstarter Error: ' $($_.Exception.Message) | |
throw | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment