|Derek you would start by clicking on the OPs name and look for the other post found here|
Debebe erdachew in the microsoft article there were three steps to try
restore the sam from backup
restore the sam from the repair folder
do a new install which blows away everything.
Now you tell us contradicting information
"As per your advice I have installed a fresh OS "
"all files will lost if I do fresh installation."
So which is it, a new install or not a new install? Did you try doing the first two steps?
BTW the article was wrong which is why your command did not work.
copy c:\Windows\system32\config\sam c:\windows\tmp\sam.bak
is invalid since it is temp not tmp
so instead issue the command
copy c:\Windows\system32\config\sam c:\windows\temp\sam.bak and hit enter
Answers are only as good as the information you provide.
How to properly post a question:
Sorry no tech support via PM's