Clear Charms History

I know that you can clear the Charm History by going:

Change PC Settings, Search and Apps, Clear Search history.

Is there anyway this can be done via command line? I would like to script it in a batch file.

May 25th, 2014 11:53am

"Clear" would delete the type history in Run and Bing APP search results.


I was wondering about a Powershell solution for this requirement and noticed  Clear-History.   "Deletes entries from the command history"

Doesn't mention what "command history"?  Sounds perfect.  <eg>

Free Windows Admin Tool Kit Click here and download it now
May 25th, 2014 12:14pm

Hi,

Based on my test, this feature "Clear" would delete the type history in Run and Bing APP search results. These history stored at Registry, such as

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU

While there are many other items, such as Bing APP histroy, store at other key. It is complicated.

To know more details, you can use RegShot to capture registry changing after run Clear.

May 26th, 2014 5:49am

Clear-History affects only the command history for the PowerShell session:

The Clear-History cmdlet deletes commands from the command history, that is, the list of commands entered during the current session.

Clear-History on TechNet here.

Brandon
Windows Outreach Team- IT Pro
The Springboard Series on TechNet

Free Windows Admin Tool Kit Click here and download it now
June 2nd, 2014 4:51pm

From another post...

I had the same issue. Turns out the history file is stored here:

C:\Users\<USERNAME>\AppData\Local\Microsoft\Windows\ConnectedSearch\History

So if you've already sysprepped, clear that on the new user's profile.

If you haven't sysprepped yet, clear that before sysprepping.

  • Marked as answer by alanplum 16 hours 44 minutes ago
March 16th, 2015 10:35am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics