none
delete all credentials using CMDkey RRS feed

  • Pergunta

  • Guys, good afternoon

    I need help!
    I need to delete all credentials through the credential manager via cmd or powerShell. But it is not working follows a script .. it is just listing the credentials that I have registered but does not delete ...

    @echo off
    cmdkey.exe / list> "% c: \ TEMP% \ List.txt"
    # findstr.exe Target "% c: \ TEMP% \ List.txt"> "% TEMP% \ tokensonly.txt"
    for / F "tokens = 1, * delims ="% G in ('cmdkey / list ^ | findstr) from cmdkey / delete% H
    del "% c: \ TEMP% \ List.txt" / s / f / q
    del "% c: \ TEMP% \ tokensonly.txt" / s / f / q
    echo All done
    pause
    terça-feira, 25 de maio de 2021 20:51

Todas as Respostas