Rechercher dans ce blog

lundi 7 novembre 2011

system_profiler - mac os X leopard - hardware listing

Pour obtenir une liste du matériel installé sur un pc tournant sous mac os x (testé sous leopard) utiliser en ligne de commande : system_profiler

Possibilité de ne lister que certain type de matériel, etc.

dimanche 6 novembre 2011

dmidecode

Pour obtenir sous linux / ubuntu 8.04 une liste détaillée du matériel présent sur une machine, utiliser la commande : dmidecode

DESCRIPTION

dmidecode is a tool for dumping a computer's DMI (some say SMBIOS) table contents in a human-readable format. This table contains a description of the system's hardware components, as well as

other useful pieces of information such as serial numbers and BIOS revision. Thanks to this table, you can retrieve this information without having to probe for the actual hardware. While this

is a good point in terms of report speed and safeness, this also makes the presented information possibly unreliable.

The DMI table doesn't only describe what the system is currently made of, it also can report the possible evolutions (such as the fastest supported CPU or the maximal amount of memory sup-

ported).

SMBIOS stands for System Management BIOS, while DMI stands for Desktop Management Interface. Both standards are tightly related and developed by the DMTF (Desktop Management Task Force).

samedi 5 novembre 2011

To reset a forgotten administrator password

Found this trick on http://4sysops.com/archives/forgot-the-administrator-password-the-sticky-keys-trick/

  • Boot from Windows PE or Windows RE and access the command prompt.
  • Find the drive letter of the partition where Windows is installed. In Vista and Windows XP, it is usually C:, in Windows 7, it is D: in most cases because the first partition contains Startup Repair. To find the drive letter, type C: (or D:, respectively) and search for the Windows folder. Note that Windows PE (RE) usually resides on X:.
  • Type the following command (replace “c:” with the correct drive letter if Windows is not located on C:):
    copy c:\windows\system32\sethc.exe c:\
    This creates a copy of sethc.exe to restore later.
  • Type this command to replace sethc.exe with cmd.exe:
    copy /y c:\windows\system32\cmd.exe c:\windows\system32\sethc.exe
    Reboot your computer and start the Windows installation where you forgot the administrator password.
  • After you see the logon screen, press the SHIFT key five times.
  • You should see a command prompt where you can enter the following command to reset the Windows password (see screenshot above):
    net user your_user_name new_password
    If you don’t know your user name, just type net user to list the available user names.
  • You can now log on with the new password.