From 7b35b38670d5baa5fdf95894b0d8a36fc784f7e5 Mon Sep 17 00:00:00 2001 From: Gramzon Date: Fri, 10 Jan 2025 14:06:33 +0100 Subject: [PATCH] pushed time and language script --- powershell install script.txt | 27 --------------------------- timelang.ps1 | 5 +++++ 2 files changed, 5 insertions(+), 27 deletions(-) delete mode 100644 powershell install script.txt create mode 100644 timelang.ps1 diff --git a/powershell install script.txt b/powershell install script.txt deleted file mode 100644 index 3deb6d5..0000000 --- a/powershell install script.txt +++ /dev/null @@ -1,27 +0,0 @@ -# Ensure Winget is installed and updated -if (-not (Get-Command winget -ErrorAction SilentlyContinue)) { - Write-Output "Winget is not installed. Please install Winget from the Microsoft Store." - exit -} - -# Update Winget to the latest version -Write-Output "Updating Winget to the latest version..." -winget upgrade --id Microsoft.Winget.Source --silent --accept-source-agreements - -# List all installed drivers -Write-Output "Listing all installed drivers..." -$drivers = winget list | Where-Object { $_.Name -like "*Driver*" } - -if ($drivers.Count -eq 0) { - Write-Output "No drivers found that can be updated via Winget." - exit -} - -# Update all drivers -Write-Output "Updating all drivers..." -foreach ($driver in $drivers) { - Write-Output "Updating $($driver.Name)..." - winget upgrade --id $driver.Id --silent --accept-package-agreements -} - -Write-Output "All drivers have been updated." diff --git a/timelang.ps1 b/timelang.ps1 new file mode 100644 index 0000000..d5c99ae --- /dev/null +++ b/timelang.ps1 @@ -0,0 +1,5 @@ +#language, time and timezone settings: +Set-TimeZone -Id "UTC+1" -Confirm +Set-SystemLanguage no-NB +Set-WinSystemLocale no-NB +Set-WinUserLanguageList -LanguageList no-NB \ No newline at end of file