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
ed2091b5
Commit
ed2091b5
authored
Apr 28, 2025
by
César Galvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: updated windows settings script
parent
5a0237e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
WindowsSettings.ps1
src/scripts/ps/WindowsSettings.ps1
+13
-6
No files found.
src/scripts/ps/WindowsSettings.ps1
View file @
ed2091b5
...
...
@@ -21,13 +21,20 @@ $shortcut.Save()
Set-ItemProperty
-Path
"HKCU:\Control Panel\Desktop"
-Name
"Wallpaper"
-Value
""
## Force a solid color (e.g., black)
Set-ItemProperty
-Path
"HKCU:\Control Panel\Colors"
-Name
"Background"
-Value
"0 0 0"
## Refresh the desktop to apply wallpaper removal
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
Stop-Process
-Name explorer -Force
Start-Process
explorer.exe
\ No newline at end of file
# Configure taskbar
## Set taskbar aligment to left
Set-ItemProperty
-Path
"HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"
-Name
'TaskbarAl'
-Value 0 -Type DWord -Force
## Remove copilot shortcup
Set-ItemProperty
-Path
"HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"
-Name
"ShowCopilotButton"
-Value 0 -Type DWord -Force
## Remove search box
Set-ItemProperty
-Path
"HKCU:\Software\Microsoft\Windows\CurrentVersion\Search"
-Name
"SearchBoxTaskbarMode"
-Value 0 -Type DWord -Force
## Remove task view
Set-ItemProperty
-Path
"HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"
-Name
"ShowTaskViewButton"
-Value 0 -Force
## Remove widgets
Get-AppxPackage
*
WebExperience
*
|
Remove-AppxPackage
\ 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