miroir de
https://github.com/massgravel/Microsoft-Activation-Scripts.git
synchronisé 2024-11-23 01:34:02 +01:00
Ignore log deletion error
Cette révision appartient à :
Parent
ad45cf0926
révision
816925bfef
1 fichiers modifiés avec 0 ajouts et 15 suppressions
|
@ -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%
|
||||
|
|
Chargement…
Référencer dans un nouveau ticket