is there any place in windows where in admin or super user changes/commands are stored? like how linux has .bash_history for root?

link|improve this question
If you give a little bit more context on what exactly you are trying to achieve, we might be able to point you to the proper source of information. – Franci Penov Jun 29 '10 at 7:36
Related: superuser.com/questions/290107/… – pydave Jun 20 '11 at 15:50
feedback

migrated from stackoverflow.com Jun 29 '10 at 10:03

This question came from our site for professional and enthusiast programmers.

3 Answers

for 'powershell' i found this blog entry:

$MaximumHistoryCount = 1KB

if (!(Test-Path ~\PowerShell -PathType Container))
{   New-Item ~\PowerShell -ItemType Directory
}

function bye 
{   Get-History -Count 1KB |Export-CSV ~\PowerShell\history.csv
    exit
}

if (Test-path ~\PowerShell\History.csv)
{   Import-CSV ~\PowerShell\History.csv |Add-History
}

then you have to end the session with "bye" (instead of "exit" or closing the window via the "x" button).

link|improve this answer
feedback

the only thing which comes "close" to something like a "stored history" (but only for the current session) is to press F7.

link|improve this answer
feedback

No, the windows Command Prompt does not have automatic logging facilities.

And actually, the linux .bash_history is not only for root - it's for any bash user that doesn't explicitely disable it.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown