add script to clean previous windows installation #35
This commit is contained in:
@@ -424,6 +424,17 @@ actions:
|
|||||||
net start DPS
|
net start DPS
|
||||||
)
|
)
|
||||||
endlocal
|
endlocal
|
||||||
|
-
|
||||||
|
name: Clear previous Windows installations
|
||||||
|
code: |-
|
||||||
|
if exist "%SystemDrive%\Windows.old" (
|
||||||
|
takeown /f "%SystemDrive%\Windows.old" /a /r /d y
|
||||||
|
icacls "%SystemDrive%\Windows.old" /grant administrators:F /t
|
||||||
|
rd /s /q "%SystemDrive%\Windows.old"
|
||||||
|
echo Deleted previous installation from "%SystemDrive%\Windows.old\"
|
||||||
|
) else (
|
||||||
|
echo No previous Windows installation has been found
|
||||||
|
)
|
||||||
-
|
-
|
||||||
category: Disable OS data collection
|
category: Disable OS data collection
|
||||||
children:
|
children:
|
||||||
|
|||||||
Reference in New Issue
Block a user