Files

33 lines
1.1 KiB
Batchfile

@Echo off
change user /install
REM #######Change directory to current user's desktop#########
C:
cd Users\%username%\Desktop
REM #######Grab AcroCleaner from Adobes website and place on desktop##########
powershell -Command "Invoke-WebRequest https://www.adobe.com/devnet-docs/acrobatetk/tools/Labs/AcroCleaner_DC2015.zip -OutFile AcroCleaner_DC2015.zip"
REM #######Unzip the downloaded package#########
powershell -Command "Expand-Archive -LiteralPath 'C:\Users\%username%\Desktop\AcroCleaner_DC2015.zip' -DestinationPath "C:\Users\%username%\Desktop"
REM #######Run the cleaner with special paramaters##########
AdobeAcroCleaner_DC2015.exe /silent /product=1 /installpath=Default /cleanlevel=1
REM #######Just adding a space between outputs for easier reading#############
Echo .
Echo .
Echo .
REM ######Adding a warning before proceeding##########
Echo Continuing will delete this script and downloaded files
pause
REM ######Deleting/cleaning up all files############
del AcroCleaner_DC2015.zip
del AdobeAcroCleaner_DC2015.exe
del Arcocleaner.bat
change user /execute
exit