Can I remove all credentials from credentials manager at one time?

Clear all credentials from Credential Manager

While you can individually clear or remove credentials, you can create this batch file sourced from Github and run it to clear all credentials from Credential Manager. Here’s how:

  • Press Windows key + R to invoke the Run dialog.
  • In the Run dialog box, type notepad and hit Enter to open Notepad.
  • Copy and paste the code below into the text editor.
@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
  • Save (to the desktop, preferably) the file with a name and append the .bat file extension – eg; ClearCREDS.bat and on the Save as type box select All Files.

To clear all credentials, simply run the batch file with admin privilege (right-click the saved file and select Run as Administrator from the context menu).

You can also schedule the batch file to run automatically in Windows 11/10 if you want.

You can use scripting or command-line tools to automate the removal of credentials. One way to do this is by using the cmdkey command in Command Prompt or PowerShell. Here’s how you can do it:

  1. Open Command Prompt or PowerShell with administrative privileges:
    • Press Win + X and select “Windows Terminal (Admin)” or “Command Prompt (Admin)” if you’re using Windows 10 or earlier.
    • For Windows 11 or later, search for “Command Prompt” or “PowerShell” in the start menu, right-click on the result, and choose “Run as administrator.”
  2. Use the cmdkey command to list and remove credentials. For example, to list all stored credentials, you can run:batchCopy codecmdkey /list To remove a specific credential, you can use:batchCopy codecmdkey /delete:TargetName Replace TargetName with the name of the credential you want to remove.
  3. Automate the removal: If you have a lot of credentials to remove, you can create a script to remove them all one by one. Here’s an example PowerShell script that removes all generic and Windows credentials:powershellCopy codeGet-WmiObject -Class Win32_NetworkAdapterConfiguration | ForEach-Object { cmdkey /delete:$($_.Description) } Save the script as a .ps1 file and execute it with administrative privileges in PowerShell.

How to Delete your Office Document Cache

  1. Perform a clean boot: This step is necessary to make sure the cache files don’t get loaded during startup. If they did, they would be locked and you couldn’t delete them.Important: You must have administrator rights on the computer before you can perform a clean boot.
  1. To open the Office Upload Center, do one of the following, depending on your version of Windows:
    • In Windows 10, click the Windows button, type Microsoft Upload Center in the Search box, and then double-click the Microsoft Upload Center app in the search results (it may say 2010 or 2013, depending on your Office version).
    • In Windows 8 or 8.1, point to the lower-right corner of the screen, click Search, then type Microsoft Upload Center in the Search box, and then double-click the Microsoft Upload Center app in the search results (it may say 2010 or 2013, depending on your Office version).
    • In Windows 7, click Start, point to All Programs, then point to Microsoft Office, then point to Microsoft Office Tools, and then click Microsoft Office Upload Center.
  2. In the Upload Center, click Settings, and then click Delete Cached Files.
  1. Delete cache files: Often, this step fixes the problem. Office typically repairs the document cache files if it detects problems. If the cache files are corrupt and irreparable, deleting them allows Office to repair itself by replacing the corrupt files.

  1. Reboot and sync: This step is when Office repairs the cache. After the cache is repaired, a sync operation should clear up any “stuck” files.

How to remove an old OneDrive from the local File Explorer

Situation: After the tenant migration, the client map their new OneDrive to the File Explorer. They would like to know how to remove the old OneDrive from file Explorer.

Resolution 1:

  1. Open File Explorer.
  2. Click on OneDrive in the left-hand column.
  3. Navigate to the file or folder in question.
  4. Right-click on the file/folder.
  5. Click on Free up space.

Resolution 2: Mass-Delete Local Copies on OneDrive

  1. Launch the OneDrive app.
  2. Head to Settings > Sync and back up.
  3. Expand the Advanced settings menu.
  4. From the Files On-Demand section, click the Free up disk space option.

Resolution 3: You may remove the OneDrive Folder From File Explorer by Editing the Registry

HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}

Double-click the System.IsPinnedToNameSpaceTree option in the right pane. Set it to 0 and click “OK”.

HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}

Double-click the System.IsPinnedToNameSpaceTree option in the right pane. Set it to 0 and click “OK”.

How to bulk import Office group members

Steps in this article may vary slightly based on the portal you start from. Content will be updated to reflect the Microsoft Entra admin center over the next few months.

1.            Sign in to the Azure portal with a User administrator account in the organization. Group owners can also bulk import members of groups they own.

2.            In Azure AD, select Groups > All groups.

3.            Open the group to which you’re adding members and then select Members.

4.            On the Members page, select bulk operations and then choose Import members.

5.            On the Bulk import group members page, select Download to get the CSV file template with required group member properties.

How to connect to Exchangeonline using Powrshell commands

To connect to Exchange Online (part of Microsoft 365) using PowerShell, you can use the following commands:

powershellCopy code

# Install the required module if not already installed Install-Module -Name ExchangeOnlineManagement -Force -AllowClobber # Connect to Exchange Online $UserCredential = Get-Credential Connect-ExchangeOnline -UserPrincipalName $UserCredential.UserName -ShowProgress $true

Explanation:

  1. The Install-Module command installs the Exchange Online Management module if it’s not already installed. This module provides the necessary cmdlets to manage Exchange Online.
  2. The Get-Credential command prompts you to enter your Microsoft 365 email address and password. This creates a secure credential object that will be used to authenticate when connecting to Exchange Online.

3. The Connect-ExchangeOnline command is used to establish a connection to Exchange Online. You provide the email address from the credential object (UserPrincipalName) and set the -ShowProgress $true parameter to display the progress of the connection.

or Connect-ExchangeOnline -UserPrincipalName username@yourdomain.com

Make sure you have the necessary permissions and prerequisites to run PowerShell commands against Exchange Online. Also, keep in mind that the module and commands may have received updates since my knowledge cutoff in September 2021, so make sure to refer to Microsoft’s official documentation for the most up-to-date information.

How to Export Microsoft 365 Group Members To CSV

Option 1: Export group members to CSV Using Exchange Admin Center

  1. With Office 365 Admin Center open, go to the Exchange option.

2. In the Recipients category, go to Groups and select Microsoft 365 or Distribution list.

3. Under the Group, choose the group you want to export its members. for example AM Meeting under Microsoft 365.

4. When you click on the Export option, it shows two options – Exports groups in this list or Export all groups or Export group members.

5. When you choose an export option, a popup message will inform you about the time it will take to export groups. Click Continue.

6. The CSV file is created and downloaded in download folder.

Option 2: Export Microsoft 365 Group Members Using PowerShell Script

How to install Cato VPN Client

Step 1: Download the Cato Client from:

clientdownload.catonetworks.com

Step 2: install Cato VPN Client.

Step 3: Open the Client, enter your login credentials and then connect to the Cato Cloud.

  • Click on Stars.

  • Enter the login email.

  • Enter the credentials.
  • Send code.
  • Enter the code and conenct.
  • You should have the connection.

  • You should be able to ping or access the inside network device.
  • To disconnect, right click n the Cato icon and lick on Disconnect.

How to Set Up Windows Without a Microsoft Account

By design, Microsoft requires to have a Microsoft account to set up Windows. This article shows you how to set up Windows without Microsoft account. In other words, we bypass Microsoft account creation and will create a local account to login Windows.

In Windows 10, you can create a local account by disconnecting it from the internet.

With Windows 11, you may pull out your Ethernet cable (if you use one) or hitting Shift+F10 to open command line and run ipconfig /release to disconnect the Intrenet.

How to add Gmail folder All Mail in Outlook

  • In Outlook, click on the “Folder” tab at the top. Then you will see “IMAP Folders”
  • Hit the “Query” button
  • Click on the [Gmail]/All Mail and unsubscribe and then hit query and then subscribe again.
  • Gmail/All Mail is selected.  Then click on OK.
  • In Outlook, expand the folders under the [Gmail}. Right click on the [Gmail} and select “New Folder” (see image below)
  • Name it “All Mail”
  • Hit send/receive and email will start downloading to Outlook.

Hopefully this helps someone out there like it did me!

P.S. after doing this it can take several minutes (15+) before you will start to see sync progress due to the normal size of this folder and contents.