Page 1 of 1

Check registry for installed printers

Posted: Tue May 03, 2005 1:57 pm
by luke_lepine
Hello, this is my first post.

I've seen some code to read a registry with php:

<?php
$shell = new COM("WScript.Shell") or die("Requires Windows Scripting Host");
$key="HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\SystemBiosDate";
$t = $shell->RegRead($key);
print "BIOS date:$t<br/>\n";
?>


but Im not sure how I could check for all the installed printers on a machine. Does anyone have any idea? Also, do I need to do it from a specific kind of server?

Thanks in advance,
Luke