Check registry for installed printers

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
luke_lepine
Forum Newbie
Posts: 1
Joined: Tue May 03, 2005 1:49 pm

Check registry for installed printers

Post 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
Post Reply