Clean up code that stores a list of user names and passwords with batch/logoff scripts _dos/bat

Source: Internet
Author: User
Windows XP Pro systems, Windows user names and passwords for network sharing authentication, intranet or proxy domain authentication, runas/savecred, and so on can be managed in the password management of users and Accounts in Control Panel, or you can run controls Keymgr.dll for Management.

These saved user names and passwords are saved in Credentials, protect, under the user directory%appdata%/microsoft. After you delete both directories, you can clear the list of saved passwords by restarting them.

So you can set up batches to add to the user's logoff script:

Copy Code code as follows:

@echo off
Rd "%appdata%/microsoft/credentials"/q/s
Rd "%appdata%/microsoft/protect"/q/s


However, the two directories also hold the password to access the certificate. Use this method with caution, or you will not be able to use a password-added certificate.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.