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
2ea67b73
Commit
2ea67b73
authored
Apr 23, 2025
by
César Galvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: updated windows settings script with FQDN setup
parent
5a42da4a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
WindowsSettings.ps1
src/scripts/ps/WindowsSettings.ps1
+22
-2
No files found.
src/scripts/ps/WindowsSettings.ps1
View file @
2ea67b73
...
@@ -30,4 +30,24 @@ Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\P
...
@@ -30,4 +30,24 @@ Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\P
Set-ItemProperty
-Path
"HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize"
-Name
"SystemUsesLightTheme"
-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
Stop-Process
-Name explorer -Force
Start-Process
explorer.exe
Start-Process
explorer.exe
\ No newline at end of file
# Configure FQDN domain
Write-Host
"Configure FQDN domain..."
$hostsPath
=
"
$env
:SystemRoot\System32\drivers\etc\hosts"
$fqdn
=
"windows-vpn.local"
$ip
=
"127.0.0.1"
$entry
=
"
$ip
`t
$fqdn
"
## Check if the entry already exists
$hostsContent
=
Get-Content
$hostsPath
if
(
$hostsContent
-notcontains
$entry
)
{
Add-Content
-Path
$hostsPath
-Value
$entry
Write-Host
"Added:
$entry
"
}
else
{
Write-Host
"The entry already exists"
}
# Restart computer
Write-Host
"Restarting computer..."
Restart-Computer
\ 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