@echo off | |
cmdkey.exe /list > "%TEMP%\List.txt" | |
findstr.exe Target "%TEMP%\List.txt" > "%TEMP%\tokensonly.txt" | |
FOR /F "tokens=1,2 delims= " %%G IN (%TEMP%\tokensonly.txt) DO cmdkey.exe /delete:%%H | |
del "%TEMP%\List.txt" /s /f /q | |
del "%TEMP%\tokensonly.txt" /s /f /q | |
echo All done | |
pause |
I am not an expert too. But this can delete credentials under windows credential store i don't know if you can delete browser credentials.
@echo off
cmdkey.exe /list > "%TEMP%\List.txt"
findstr.exe Target "%TEMP%\List.txt" > "%TEMP%\tokensonly.txt"
for /F "tokens=1,* delims= " %G in ('cmdkey /list ^| findstr Adobe') do cmdkey /delete %H
del "%TEMP%\List.txt" /s /f /q
del "%TEMP%\tokensonly.txt" /s /f /q
echo All done
pause
Thanks for this. is there a way to only delete credentials from a specific source, say Adobe for example, using this script?
for /F "tokens=1,* delims= " %G in ('cmdkey /list ^| findstr Adobe') do cmdkey /delete %H
This worked for me!
Not working for me
Thanks for this. is there a way to only delete credentials from a specific source, say Adobe for example, using this script?
for /F "tokens=1,* delims= " %G in ('cmdkey /list ^| findstr Adobe') do cmdkey /delete %H
This worked for me!
Thanks! This worked for me. I had to add an extra '%' to make it work, as follows:
for /F "tokens=1,2 delims= " %%G in ('cmdkey /list ^| findstr vscode') do cmdkey /delete %%H
@echo off
cmdkey.exe /list > "%TEMP%\List.txt"
findstr.exe Target "%TEMP%\List.txt" > "%TEMP%\tokensonly.txt"
FOR /F "tokens=1,2 delims= " %%G IN (%TEMP%\tokensonly.txt) DO cmdkey.exe /delete:%%H
del "%TEMP%\List.txt" /s /f /q
del "%TEMP%\tokensonly.txt" /s /f /q
echo All done
pause
@BarisUygun
I have tried this for Google chrome
@echo off
set ChromeDir=C:\Users%USERNAME%\AppData\Local\Google\Chrome\User Data
del /q /s /f "%ChromeDir%"
rd /s /q "%ChromeDir%"
******For Mozilla firefox
@echo off
set DataDir=C:\Users%USERNAME%\AppData\Local\Mozilla\Firefox\Profiles
del /q /s /f "%DataDir%"
rd /s /q "%DataDir%"
for /d %%x in (C:\Users%USERNAME%\AppData\Roaming\Mozilla\Firefox\Profiles*) do del /q /s /f %%x*sqlite
**** And For opera
@echo off
set DataDir=C:\Users%USERNAME%\AppData\Local\Opera\Opera
set DataDir2=C:\Users%USERNAME%\AppData\Roaming\Opera\Opera
del /q /s /f "%DataDir%"
rd /s /q "%DataDir%"
del /q /s /f "%DataDir2%"
rd /s /q "%DataDir2%"
But only Google Chrome works when browser remain closed and I execute more than 2 times :(
I am not expert please,Help me to do this in right way.
I want to delete all saved cookies and Passwords
Thanks for your Attention