Backslashes are escape characters. You need to either:
- Escape the backslashes
- Use a non-parsing string identifier (single quotes) <-- Preferred option
like so:
$shell = new COM("WScript.Shell") or die("Requires Windows Scripting Host");
$key=" HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\Sys
temBiosDate";
$t = $shell->RegRead($key);
print "BIOS date:$t<br/>\n";
So far, the only location I've come across printer installations in the registry (for Windows XP) is:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\LPTENUM\
and
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USBPRINT\
depending on how your printer is plugged into your PC. I'm no expert on this, however; just did a ctrl+f in my registry.