A hive is a logical group of keys, subkeys, and values in the registry that has a set of supporting files containing backups of its data.
Most of the supporting files for the hives are in the %SystemRoot%\System32\Config directory. These files are updated each time a user logs on.
Registry hive Supporting files
HKEY_CURRENT_CONFIG System, System.alt, System.log, System.sav
HKEY_CURRENT_USER Ntuser.dat, Ntuser.dat.log
HKEY_LOCAL_MACHINE\SAM Sam, Sam.log, Sam.sav
HKEY_LOCAL_MACHINE\Security Security, Security.log, Security.sav
HKEY_LOCAL_MACHINE\Software Software, Software.log, Software.sav
HKEY_LOCAL_MACHINE\System System, System.alt, System.log, System.sav
HKEY_USERS\.DEFAULT Default, Default.log, Default.sav
Detail URL: http://msdn.microsoft.com/en-us/library/windows/desktop/ms724877%28v=vs.85%29.aspx
Wednesday, June 4, 2014
Thursday, May 22, 2014
Powershell: Get FQDN of local or remote computer
To get FQDN of local computer:
PS C:\> [System.Net.Dns]::GetHostByName(($env:computerName))
To get FQDN of Remote computer:
PS C:\> [System.Net.Dns]::GetHostByName("notebook01")
Note:
System.Net.DNS class has a few other useful methods using which you can get FDQN and IP address details.
Refer to http://msdn.microsoft.com/en-us/library/system.net.dns.aspx for more details.
PS C:\> [System.Net.Dns] | Get-Member -Static
PS C:\> [System.Net.Dns]::GetHostByName(($env:computerName))
To get FQDN of Remote computer:
PS C:\> [System.Net.Dns]::GetHostByName("notebook01")
Note:
System.Net.DNS class has a few other useful methods using which you can get FDQN and IP address details.
Refer to http://msdn.microsoft.com/en-us/library/system.net.dns.aspx for more details.
PS C:\> [System.Net.Dns] | Get-Member -Static
Friday, May 2, 2014
How to Use the Cipher Security Tool to Overwrite Deleted Data
To overwrite deleted data on a volume by using Cipher.exe, use the /w switch with the cipher command. Use the following steps:
C:>Users\user_name\> cipher /w:C:\ and then press ENTER.
To overwrite deleted data on folder
C:>Users\user_name\> cipher /w:C:\your_folder_name and then press ENTER.
Note: Specify the drive and the folder that identifies the volume that contains the deleted data that you want to overwrite. Data that is not allocated to files or folders will be overwritten. This permanently removes the data. This can take a long time if you are overwriting a large space.
Detail URL: http://support.microsoft.com/kb/315672
- Quit all programs.
- Click Start, click Run, type cmd, and then press ENTER.
- Type cipher /w:driveletter:\foldername, and then press ENTER.
C:>Users\user_name\> cipher /w:C:\ and then press ENTER.
To overwrite deleted data on folder
C:>Users\user_name\> cipher /w:C:\your_folder_name and then press ENTER.
Note: Specify the drive and the folder that identifies the volume that contains the deleted data that you want to overwrite. Data that is not allocated to files or folders will be overwritten. This permanently removes the data. This can take a long time if you are overwriting a large space.
Detail URL: http://support.microsoft.com/kb/315672
Wednesday, April 2, 2014
Microsoft Outlook temporary OLK folder
Where does Microsoft create the Outlook Temporary folder Or store temporary data such as attachments?
Depending on the operating system, version of Outlook AND user logged in, the OLK temporary folder will be created in a different spot. To find where it’s been created, open the Windows registry using regedit32.exe and use the MAP below:
Outlook 97: HKEY_CURRENT_USER\Software\Microsoft\Office\8.0\Outlook\Security
Outlook 98: HKEY_CURRENT_USER\Software\Microsoft\Office\8.5\Outlook\Security
Outlook 2000: HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Outlook\Security
Outlook 2002/XP: HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Outlook\Security
Outlook 2003: HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Security
Outlook 2007: HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Outlook\Security
BackGround:
When you open file attachments that are considered safe, Outlook places these attachments in a subdirectory under the your Temporary Internet Files directory as an extra precaution. When Outlook first tries to use a temporary file, it examines the registry to determine whether or not the TEMP OLK folder has already been created. If yes, it uses the folder. If no, it creates a random folder then stores the path in the registry location mentioned above.
Detail URL: http://www.hancockcomputertech.com/blog/2010/01/06/find-the-microsoft-outlook-temporary-olk-folder/
Depending on the operating system, version of Outlook AND user logged in, the OLK temporary folder will be created in a different spot. To find where it’s been created, open the Windows registry using regedit32.exe and use the MAP below:
Outlook 97: HKEY_CURRENT_USER\Software\Microsoft\Office\8.0\Outlook\Security
Outlook 98: HKEY_CURRENT_USER\Software\Microsoft\Office\8.5\Outlook\Security
Outlook 2000: HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Outlook\Security
Outlook 2002/XP: HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Outlook\Security
Outlook 2003: HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Security
Outlook 2007: HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Outlook\Security
BackGround:
When you open file attachments that are considered safe, Outlook places these attachments in a subdirectory under the your Temporary Internet Files directory as an extra precaution. When Outlook first tries to use a temporary file, it examines the registry to determine whether or not the TEMP OLK folder has already been created. If yes, it uses the folder. If no, it creates a random folder then stores the path in the registry location mentioned above.
Detail URL: http://www.hancockcomputertech.com/blog/2010/01/06/find-the-microsoft-outlook-temporary-olk-folder/
Friday, November 8, 2013
How to delete a file in Windows with a too long filename?
Solution 1)
From a command prompt:
dir /X
This will list your files or folders in short name format. Then use the short name exactly as written to delete the file:
del LONGFI~1.txt
you are done! :)
Solution 2)
Try this in a Command Prompt.
rd /s first_part_of_subdirectory_name
e.g. if the file is called "C:\temp\Files\verylongfilenames.ext"
rd /s C:\temp\Files
From a command prompt:
dir /X
This will list your files or folders in short name format. Then use the short name exactly as written to delete the file:
del LONGFI~1.txt
you are done! :)
Solution 2)
Try this in a Command Prompt.
rd /s first_part_of_subdirectory_name
e.g. if the file is called "C:\temp\Files\verylongfilenames.ext"
rd /s C:\temp\Files
Monday, October 28, 2013
What is Encase "Lost Files" folder
This was posted by Jeffery Misner. I want to give credit for the source.
What is the Lost Files folder?
EnCase has a different method (compared to FAT) for recovering deleted files and folders with NTFS evidence files. When you add an NTFS Evidence file to EnCase, you will notice a folder added automatically to the evidence file in the case view called "Lost Files." In the MFT (Master File Table) in NTFS, all files and folders are marked as a folder or file, and are associated to a "parent."
Suppose you have a folder contain many files. Those files are its "children." For those files to become "lost," you delete them along with the folder itself. You then create a new folder. The entry in the MFT for the old folder is overwritten. So the original "parent" folder and its entry in the MFT are gone. But it's "children," while deleted, have not been overwritten, and their entries are still in the MFT. EnCase can then tell what those files are, but there is no longer any record of what folder those files were in. Because of this, all those files (without parent folders anymore) are lumped into the "Lost Files" folder that EnCase creates and places in the Entries view so that you can see those files.
That is different from the recover folders feature, btw. Also note that Lost Files only appear for NTFS volumes since FAT does not work the same way.
Note: There is no way you can see those deleted files without using specialized software like EnCase.
Original source link : http://www.forensicfocus.com/Forums/viewtopic/t=2718/
What is the Lost Files folder?
EnCase has a different method (compared to FAT) for recovering deleted files and folders with NTFS evidence files. When you add an NTFS Evidence file to EnCase, you will notice a folder added automatically to the evidence file in the case view called "Lost Files." In the MFT (Master File Table) in NTFS, all files and folders are marked as a folder or file, and are associated to a "parent."
Suppose you have a folder contain many files. Those files are its "children." For those files to become "lost," you delete them along with the folder itself. You then create a new folder. The entry in the MFT for the old folder is overwritten. So the original "parent" folder and its entry in the MFT are gone. But it's "children," while deleted, have not been overwritten, and their entries are still in the MFT. EnCase can then tell what those files are, but there is no longer any record of what folder those files were in. Because of this, all those files (without parent folders anymore) are lumped into the "Lost Files" folder that EnCase creates and places in the Entries view so that you can see those files.
That is different from the recover folders feature, btw. Also note that Lost Files only appear for NTFS volumes since FAT does not work the same way.
Note: There is no way you can see those deleted files without using specialized software like EnCase.
Original source link : http://www.forensicfocus.com/Forums/viewtopic/t=2718/
Thursday, September 26, 2013
How to get hard drive serial number from command line on Windows computer?
Get the Manufacturers serial number of the hard drive.
C:\>wmic diskdrive get serialnumber
Get the volume serial number:
C:\>vol C:
C:\>wmic diskdrive get serialnumber
Get the volume serial number:
C:\>vol C:
Get Drive Info:
C:>wmic diskdrive list brief
Get service tag report:
C:>wmic csproduct get name,vendor,identifyingNumber
Determine when Windows was installed on a computer
C:\>wmic OS Get InstallDate
InstallDate
20091204171103.000000+480
You can easly read the above output adding the relevant markup: 2011-02-14 13:36:58
The install date is stored in the registry value HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\InstallDate as UNIX time
(32-bit value containing the number of seconds since 1/1/1970).
For more info get it at :
http://blogs.technet.com/b/askperf/archive/2012/02/17/useful-wmic-queries.aspx
http://theinterw3bs.com/wiki/index.php?title=WMIC_Commands
http://travisaltman.com/one-liner-commands-for-windows-cheat-sheet/
C:>wmic diskdrive list brief
Get service tag report:
C:>wmic csproduct get name,vendor,identifyingNumber
Determine when Windows was installed on a computer
C:\>wmic OS Get InstallDate
InstallDate
20091204171103.000000+480
You can easly read the above output adding the relevant markup: 2011-02-14 13:36:58
The install date is stored in the registry value HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\InstallDate as UNIX time
(32-bit value containing the number of seconds since 1/1/1970).
For more info get it at :
http://blogs.technet.com/b/askperf/archive/2012/02/17/useful-wmic-queries.aspx
http://theinterw3bs.com/wiki/index.php?title=WMIC_Commands
http://travisaltman.com/one-liner-commands-for-windows-cheat-sheet/
Subscribe to:
Posts (Atom)