2
0

Cleaned Up Registry Folder/Imports

This commit is contained in:
bschaper 2024-12-20 13:27:30 -06:00
parent 5997afae1f
commit e0561e076c
6 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
# Define the directory containing the .reg files
$regFilesDir = "C:\Scripts\StartLayouts"
$regFilesDir = "C:\Scripts\Patches\Registry"
# Get an array of all .reg files in the directory
$regFiles = Get-ChildItem -Path $regFilesDir -Filter "*.reg"
@ -13,4 +13,4 @@ foreach ($regFile in $regFiles) {
Taskkill /F /IM explorer.exe
Start-Process explorer.exe
Write-Host "Taskbar layout successfully imported..."
Write-Host "Registry changes successfully imported..."

View File

@ -61,10 +61,10 @@ winget install --exact --id Adobe.Acrobat.Reader.64-bit --silent
:: Enable UAC
powershell Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name EnableLUA -Value 1 -Force
:: Set Taskbar Layout for All Users
echo Setting Taskbar Layout...
powershell -ExecutionPolicy Bypass -File "C:\Scripts\StartLayouts\Set-Taskbar-Layout.ps1"
echo Taskbar Layout is Set...
:: Import Registry Changes
echo Importing Registry Changes...
powershell -ExecutionPolicy Bypass -File "C:\Scripts\Patches\Windows\Import-Registry-Changes.ps1"
echo Registry Changes Imported...
:: Delete Shortcuts from Public Desktop Folder
echo Deleting Shortcuts from Public Desktop Folder...