From e2eb34acfe2396bce15d71910bd25634dbbd5312 Mon Sep 17 00:00:00 2001 From: "Michael H.G. Schmidt" Date: Sun, 28 Feb 2021 22:53:42 +0100 Subject: [PATCH] . --- scripts/autoconfig-all.cmd | 7 +++++-- scripts/install-emclient.cmd | 2 ++ scripts/install-windowsterminal.ps1 | 2 +- scripts/modify-desktoptheme.cmd | 2 ++ 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/scripts/autoconfig-all.cmd b/scripts/autoconfig-all.cmd index e85d507..713977e 100644 --- a/scripts/autoconfig-all.cmd +++ b/scripts/autoconfig-all.cmd @@ -170,6 +170,9 @@ echo. rem add full access rights to all users on public icons! icacls %PUBLIC%\Desktop\*.lnk /grant Users:F +rem remove read-only flag on tools folder ... +attrib /S /D -R %TOOLS%\* + echo ##################### echo ### DISABLE tasks ### echo ##################### @@ -208,8 +211,8 @@ rem echo ENABLE firewall ... rem netsh advfirewall set allprofiles state on rem echo. -rem echo rebooting ... -rem shutdown -g -t 0 +echo rebooting ... +shutdown -g -t 0 echo. date /t diff --git a/scripts/install-emclient.cmd b/scripts/install-emclient.cmd index 9dade6a..192bdf1 100644 --- a/scripts/install-emclient.cmd +++ b/scripts/install-emclient.cmd @@ -25,4 +25,6 @@ rem remove autostart for em-Client ... reg delete "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" ^ /v "eM Client" /f +taskkill /F /IM SystemSettings.exe2>nul + echo ####### %0 ####### diff --git a/scripts/install-windowsterminal.ps1 b/scripts/install-windowsterminal.ps1 index 40769f3..65bda0a 100644 --- a/scripts/install-windowsterminal.ps1 +++ b/scripts/install-windowsterminal.ps1 @@ -9,6 +9,6 @@ if (! (Test-Path $MSIBUNDLE)) { write-host '#######',(split-path $PSCommandPath -Leaf),'#######' $ErrorActionPreference = "SilentlyContinue" -Add-AppXPackage -allusers -path "$MSIBUNDLE" +Add-AppXPackage -path "$MSIBUNDLE" write-host '#######',(split-path $PSCommandPath -Leaf),'#######' diff --git a/scripts/modify-desktoptheme.cmd b/scripts/modify-desktoptheme.cmd index 40b9694..86aa27f 100644 --- a/scripts/modify-desktoptheme.cmd +++ b/scripts/modify-desktoptheme.cmd @@ -10,5 +10,7 @@ echo activating AEROLITE theme ... powershell -command "Start-Process %THEMES%\aerolite.theme" @echo off +taskkill /F /IM SystemSettings.exe2>nul + echo ####### %0 #######