39 lines
1.4 KiB
PowerShell
39 lines
1.4 KiB
PowerShell
param(
|
|
[string]$nexusDomain = 'nexus.example.com'
|
|
)
|
|
|
|
# set keyboard layout.
|
|
# NB you can get the name from the list:
|
|
# [System.Globalization.CultureInfo]::GetCultures('InstalledWin32Cultures') | out-gridview
|
|
Set-WinUserLanguageList pt-PT -Force
|
|
|
|
# set the date format, number format, etc.
|
|
Set-Culture pt-PT
|
|
|
|
# set the timezone.
|
|
# tzutil /l lists all available timezone ids
|
|
& $env:windir\system32\tzutil /s "GMT Standard Time"
|
|
|
|
# show window content while dragging.
|
|
Set-ItemProperty -Path 'HKCU:Control Panel\Desktop' -Name DragFullWindows -Value 1
|
|
|
|
# show hidden files.
|
|
Set-ItemProperty -Path HKCU:Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name Hidden -Value 1
|
|
|
|
# show file extensions.
|
|
Set-ItemProperty -Path HKCU:Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name HideFileExt -Value 0
|
|
|
|
# display full path in the title bar.
|
|
New-Item -Path HKCU:Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState -Force `
|
|
| New-ItemProperty -Name FullPath -Value 1 -PropertyType DWORD `
|
|
| Out-Null
|
|
|
|
# set default Explorer location to This PC.
|
|
Set-ItemProperty -Path HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name LaunchTo -Value 1
|
|
|
|
# trust the nexus server certificate.
|
|
Import-Certificate `
|
|
-FilePath "c:/vagrant/shared/$nexusDomain-crt.der" `
|
|
-CertStoreLocation Cert:\LocalMachine\Root `
|
|
| Out-Null
|