This isn't PERL, but you could use regedt32.exe to set permissions for that user on the registry key. I don't see any problems with giving that user read permissions on that key. They don't need to delete things from the print queue do they?
-_-Aaron -----Original Message----- From: Kip DeGraaf [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 16, 2002 6:56 AM To: '[EMAIL PROTECTED]' Subject: Getting NT print queue jobs via CGI I'm trying to write a little piece of middleware to allow one of our developers to use Flash to pull up a webpage that lists the current jobs in a print queue in Windows NT. I found this very nice little script called NTPStat.pl at http://www.roth.net/perl/scripts/scripts.asp?NTPStat.pl and removed the code for the deleting of a print job and hardcoded the server that we need to query. Ran the script in a command window and it works wonderfully. So I went and tried to turn it into a CGI script for use via a web page. Now I get the following message after the column headings when I try to access the CGI: Unable to attach to registry key on MAIN Where MAIN is the server whose queues I'm trying to access. So, apparently I need to give the user account running the web service some permissions, or should I run this script off of a webserver on MAIN?? Any pointers or security concerns I should be aware of would be greatly appreciated. Thank you, Kip -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]