Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
windows-vm
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pem
windows-vm
Commits
13bba607
Commit
13bba607
authored
Apr 09, 2025
by
César Galvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: added some changes in comments
parent
5cedf9a4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
10 deletions
+5
-10
Vagrantfile
Vagrantfile
+2
-8
WindowsSettings.ps1
src/scripts/ps/WindowsSettings.ps1
+3
-2
No files found.
Vagrantfile
View file @
13bba607
...
...
@@ -6,12 +6,6 @@
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant
.
configure
(
"2"
)
do
|
config
|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
# https://docs.vagrantup.com.
# Every Vagrant development environment requires a box. You can search for
# boxes at https://vagrantcloud.com/search.
config
.
vm
.
box
=
"gusztavvargadr/windows-11"
config
.
vm
.
box_version
=
"2302.0.2409"
...
...
@@ -32,9 +26,9 @@ Vagrant.configure("2") do |config|
# Provisioning
## Windows settings
##
Add custom
Windows settings
config
.
vm
.
provision
"shell"
,
path:
"src/scripts/ps/WindowsSettings.ps1"
##
Run the external script to i
nstall Chocolatey
##
I
nstall Chocolatey
config
.
vm
.
provision
"shell"
,
path:
"src/scripts/ps/ChocolateyInstall.ps1"
## Install Chocolatey packages
config
.
vm
.
provision
"shell"
,
path:
"src/scripts/ps/ChocolateyInstallPackages.ps1"
...
...
src/scripts/ps/WindowsSettings.ps1
View file @
13bba607
...
...
@@ -25,9 +25,9 @@ Set-ItemProperty -Path "HKCU:\Control Panel\Colors" -Name "Background" -Value "0
RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters ,1 ,True
# Set dark mode for system and apps
## Change registry values
Set-ItemProperty
-Path
"HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize"
-Name
"AppsUseLightTheme"
-Value 0
Set-ItemProperty
-Path
"HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize"
-Name
"SystemUsesLightTheme"
-Value 0
# Restart explorer.exe
## Restart explorer.exe
Stop-Process
-Name explorer -Force
Start-Process
explorer.exe
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment