diff --git a/Fix long login times.cmd b/Fix long login times.cmd index 6e8364a5e44bf6280e3cf17e61f46eb1a7192ec4..f362db55745b0f0928de25138e3d22dfef2414ea 100644 --- a/Fix long login times.cmd +++ b/Fix long login times.cmd @@ -30,13 +30,13 @@ if '%1'=='ELEV' (del "%vbsGetPrivileges%" 1>nul 2>nul & shift /1) REM Functional part pushd "C:\Users" && ( for /f "tokens=*" %%a in ('dir /A:D /b') do ( - if not "%%a" == "Public" if not "%%a" == "All Users" if not "%%a" == "Default User" ( - pushd "C:\Users\%%a\AppData\Local\Microsoft\Windows" && ( - rd /s /q WebCache - del /q /f WebCacheLock.dat -) - popd -) + if not "%%a" == "Public" if not "%%a" == "All Users" if not "%%a" == "Default User" ( + pushd "C:\Users\%%a\AppData\Local\Microsoft\Windows" && ( + rd /s /q WebCache + del /q /f WebCacheLock.dat + popd + ) + ) ) popd ) diff --git a/Fix printer not install- and selectable.cmd b/Fix printer not install- and selectable.cmd index 15e6776ca4e5491d3e71841aba56b203be630f7d..76dd0bc1ea071746d95b4166abfb8f414175ab53 100644 --- a/Fix printer not install- and selectable.cmd +++ b/Fix printer not install- and selectable.cmd @@ -32,8 +32,8 @@ net stop spooler pushd "%~dp0\ScriptFiles\PrinterNotInstallable" && ( reg import "Printer Spooler Registry.reg" robocopy spool C:\Windows\System32\spool * -) popd +) net start spooler echo Done. pause