Commit 12a676a5 by César Galvis

feat: added script for windows seettings

parent 084957fc
......@@ -38,10 +38,7 @@ Vagrant.configure("2") do |config|
config.vm.provision "shell", path: "src/scripts/ps/ChocolateyInstallPackages.ps1"
## Wireguard Install and setup
config.vm.provision "shell", path: "src/scripts/ps/WireguardInstall.ps1"
## Change timezone
config.vm.provision "shell", inline: <<-SHELL
Write-Output "=== Change timezone ==="
tzutil /s "SA Pacific Standard Time"
SHELL
## Windows settings
config.vm.provision "shell", path: "src/scripts/ps/WireguardInstall.ps1"
end
# Change timezone
tzutil /s "SA Pacific Standard Time"
# Add shortcuts
## Get the desktop path for the current user
$desktopPath = [Environment]::GetFolderPath("Desktop")
## PowerShell
### Create the shortcut path
$shortcutPath = Join-Path $desktopPath "PowerShell.lnk"
### Create the WScript.Shell COM object
$WshShell = New-Object -ComObject WScript.Shell
### Create the shortcut
$shortcut = $WshShell.CreateShortcut($shortcutPath)
### Set the target path to PowerShell
$shortcut.TargetPath = "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"
### Save the shortcut
$shortcut.Save()
# Change wallpaper
## Remove any set wallpaper
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
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment