From 3187136c728edd837a9fa11600ec276fe31456f4 Mon Sep 17 00:00:00 2001
From: Rsge <rsge@web.de>
Date: Sat, 30 Apr 2022 11:47:08 +0200
Subject: [PATCH] Added two new scripts... - Added disabling of prompt for
 password change - Added fix for non-createable work file

---
 Fix prompt for password change.bat |  3 +++
 Fix work file not createable.bat   | 20 ++++++++++++++++++++
 README.md                          |  2 ++
 3 files changed, 25 insertions(+)
 create mode 100644 Fix prompt for password change.bat
 create mode 100644 Fix work file not createable.bat

diff --git a/Fix prompt for password change.bat b/Fix prompt for password change.bat
new file mode 100644
index 0000000..451a3ba
--- /dev/null
+++ b/Fix prompt for password change.bat	
@@ -0,0 +1,3 @@
+@echo off
+wmic UserAccount set PasswordExpires=False
+pause
\ No newline at end of file
diff --git a/Fix work file not createable.bat b/Fix work file not createable.bat
new file mode 100644
index 0000000..d7c6663
--- /dev/null
+++ b/Fix work file not createable.bat	
@@ -0,0 +1,20 @@
+@echo off
+echo Create backups of registry entries to delete in Downloads folder. . .
+reg export "HKCR\CLSID\{84F66100-FF7C-4fb4-B0C0-02CD7FB668FE}" "%userprofile%\Downloads\SBLOG_RegBackup_WordPreview.reg"
+reg export "HKCR\CLSID\{65235197-874B-4A07-BDC5-E65EA825B718}" "%userprofile%\documents\SBLOG_RegBackup_PowerPointreview.reg"
+reg export "HKCR\CLSID\{00020827-0000-0000-C000-000000000046}" "%userprofile%\documents\SBLOG_RegBackup_ExcelPreview.reg"
+echo.
+echo Deleting entries. . .
+reg delete "HKCR\CLSID\{84F66100-FF7C-4fb4-B0C0-02CD7FB668FE}" /f
+reg delete "HKCR\CLSID\{65235197-874B-4A07-BDC5-E65EA825B718}" /f
+reg delete "HKCR\CLSID\{00020827-0000-0000-C000-000000000046}" /f
+echo.
+echo Creating needed folders. . .
+mkdir "%USERPROFILE%\AppData\Local\Microsoft\Windows\INetCache\Content.Word"
+mkdir "%USERPROFILE%\AppData\Local\Microsoft\Windows\INetCacheContent.Word"
+echo.
+echo Defining new registry entries for chache path. . .
+reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "Cache" /t REG_SZ /d "%userprofile%\AppData\Local\Microsoft\Windows\INetCache" /f
+echo.
+echo Done. Please log off & on and try if the problem was resolved.
+pause
diff --git a/README.md b/README.md
index 8c42289..451d59a 100644
--- a/README.md
+++ b/README.md
@@ -7,7 +7,9 @@ These are made for double-click execution via file explorer.
 * `Fix edgegdi.dll.bat` fixes the `edgegdi.dll` not being available for certain tasks, leading to errors thrown.
 * `Fix long login times.bat` deletes `WebCache`and `WebCacheLock.dat` on all normal users to fix unbearable login times after installing windows through a custom made image.
 * `Fix printer not install- and selectable.bat` fixes a problem where no printer can be selected or even installed, caused by corrupted files.
+* `Fix prompt for password change.bat` disables the prompting for a password change when using a Microsoft account.
 * `Fix search & settings.bat` fixes the windows search and the settings app not starting up correctly and freezing.
 * `Fix winmail.dat - Disable RTF & TNEF.reg` fixes the receiver of an email getting a `winmail.dat` file as attachment instead of a normal file by introducing a registry fix to keep Outlook from ever sending emails in RTF format or TNEF encryption.
+* `Fix work file not createable.bat` fixes the "Could not create the work file" error in Office.
 * `Remove Java.bat` removes remains of a Java installation after uninstall.
 * `Windows activation helper.bat` shows you the product key of your current Windows installation to potentially resolve activation issues.
\ No newline at end of file
-- 
GitLab