However, many will also forget to delete the exported. I’m sure if you are implementing a password manager like Bitwarden then you have told your employees to “export your passwords from Chrome by X date, otherwise they will be deleted”.Ĭhances are many people will export them and import them into their new corporate password manager. This one is optional, but I found it pretty useful. Powershell Script to Find & Delete Chrome/Edge Password Exports taskkill /IM msedge.exe /F Remove-Item "C:\Users\*\AppData\Local\Microsoft\Edge\User Data\Default\Login Data"Īnd if using PDQ Deploy for this one as well, make sure to set the Error Mode of Step 1 to “Continue” as well. Just like the Chrome script, you’ll need to close down Edge first and then delete the Login Data file. Powershell Script to Delete Microsoft Edge Passwords Otherwise, if you run this on a computer that already has Chrome closed, then Step 2 won’t run – which means it’ll fail and the passwords will not be removed. Under the first step, set the Error Mode to “Continue”. If you are using PDQ Deploy like I am, create a new package and add each script as a new step. Here is the script to close the Google Chrome process: get-process chrome | stop-process -forceĪnd here is the script to delete the Chrome “Login Data” file: Remove-Item "C:\Users\*\AppData\Local\Google\Chrome\User Data\Default\Login Data" Powershell Script to Delete Chrome Saved Logins I turned this into a PDQ Package that runs both steps. It’s also important to note that the Login Data file gets rebuilt everytime the browser is launched, so it’s best to do this once across the entire organization. The browser HAS to be closed otherwise it won’t delete this file.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |