Hi,
Can anyone point me in the right direction of deleting IE browsing history using PS?
I'm finding that I can browse to the directory of the cache, but PS can't see anything there to list, or delete. Here's the line I have
gci "C:\Users\me\AppData\Local\Microsoft\IE Temporary Internet Files\Temporary Internet Files\*" -recurse -force | foreach { Remove-Item -recurse -force}
I'm thrown back an error stating that the Temporary internet Files directory does not exist when I use this.
If I then do a set-location to the directory it's fine - but I can't list what is in there for some reason.
All I really want to do is add a function to my PS profile that will allow me to simply run 'remove-tifs' in a console to delete any browser cache (since I use several browsers, it's quicker that way).
Can anyone help??
Thanks in advance.
Rob