diff options
| author | WindowsAddict | 2024-07-28 02:33:09 +0000 |
|---|---|---|
| committer | WindowsAddict | 2024-07-28 02:33:09 +0000 |
| commit | 816925bfef9715ff730190ee704b4dcde64d0cfc (patch) | |
| tree | b6a42301b0e79365d714bdb295364dc999d695ff /MAS | |
| parent | ad45cf092677a4b9351e3da2940593fc318c63f9 (diff) | |
| download | Microsoft-Activation-Scripts-816925bfef9715ff730190ee704b4dcde64d0cfc.zip | |
Ignore log deletion error
Diffstat (limited to 'MAS')
| -rw-r--r-- | MAS/Separate-Files-Version/Change_Edition.cmd | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/MAS/Separate-Files-Version/Change_Edition.cmd b/MAS/Separate-Files-Version/Change_Edition.cmd index 2e7b173..21681f7 100644 --- a/MAS/Separate-Files-Version/Change_Edition.cmd +++ b/MAS/Separate-Files-Version/Change_Edition.cmd @@ -683,13 +683,6 @@ set preperror= for /f %%a in ('%psc% "(Get-Date).ToString('yyyyMMdd-HHmmssfff')"') do set _time=%%a
-if not defined _time (
-%eline%
-echo Failed to get time with Powershell command.
-set preperror=1
-exit /b
-)
-
%psc% Stop-Service TrustedInstaller -force %nul%
%psc% Stop-Service TrustedInstaller -force %nul%
@@ -707,14 +700,6 @@ copy /y /b "%SystemRoot%\logs\DISM\dism.log" "%SystemRoot%\logs\DISM\backup_dism del /f /q "%SystemRoot%\logs\cbs\cbs.log" %nul%
del /f /q "%SystemRoot%\logs\DISM\dism.log" %nul%
-for %%# in (%SystemRoot%\logs\cbs\cbs.log %SystemRoot%\logs\DISM\dism.log) do if exist %%# (
-%eline%
-echo Failed to backup and delete %%#
-echo Try again or Restart your system and then try again.
-set preperror=1
-exit /b
-)
-
:: Initiate this to appear in fresh logs
dism /online /english /Get-CurrentEdition %nul%
|
