I would like to check a machine's internet browsing history and I would like to do this from the commandline or powershell.
Is there any windows command for this or are there any tools for doing this ?
You can view cached DNS entries from CMD.
Every time you browse to a web page, your PC has to request the IP Address for that web site from your default DNS server, and then caches them locally on your machine for a while to speed up future access to that web site — even in a private browsing session.
You can see these for yourself by opening up a command prompt and typing in
Now, the first thing you’ll notice is that a whole lot of information will appear, to the point that all of it can’t fit in the command prompt. What you can do is take the output of the command and send it to a text file somewhere on your machine.
Now, when you open that file you’ll see information about the websites you've visited directly or indirectly.
To get rid of this, just type the command
Angel Luis has written a nice tutorial and script on this topic, I suggest you read it.
Perhaps check out Nirsoft's IEHistoryView, as it allows saving the resutls to a text file:
In PowerShell, this will display just the DNS names:
And this will display the IP and Record Type:
Type 1 is an A record and type 5 is an alias.