RE: Disable Access to a printer



you have a few options ... 1st check your version of IE on your Windows 2000
machine ... if it is not running IE6sp1 update it ... that could be why its
not working on 2000 ... 2nd you can use a VBS script to add a printer, start
a new process, the check app ... watch the process, once it completes
continue processing the script .... delete the printer

Found this online for ya:

The WshShell.Run strCommand, [intWindowStype], [bWaitOnReturn]
command will do this. e.g.
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.run "notepad" & " c:\temp\textfile.txt", 1, true
Setting the WaitOnReturn to true causes the script execution to wait until
execution of the
program being run has been terminated.






--
Kevin Callanan
MSCA 2003, A+, Network+
www.weblabtechs.com

Please let us know if this response was helpful...


"Chip pellegrino" wrote:

The printer has to stay on. The checks are cashier's check and the
printer is on the teller line in a bank and if a customer comes in and
purchases a cashier's check the teller then needs to produce one so turning
the printer off won't work (the teller would have to walk away from the
customer twice in addition to waitng for the printer to warm up). In fact
forget the 80 computers i mentioned as they are really 7-10 computers in 11
branches and that is really 11 printers. Let's just assume one branch 10
with computers sharing two printers one of them being the check printer.

The check printing pogram is started from a batch file if i could have
the batch file add a printer then run the check program then delete the
printer, that would work too and all i would then need is a vbscript to
add/delete the printer. I found a couple but could not get them to work
right with windows 2000.

The other possibility i thought of is to use runas and set the printer
up to only allow printing by a specific user and then use runas to run the
program as that user. The problem with that is that i would have to set up a
user and chabge the printer settings on every computer (11 branches 7-10
computers=80 to 100 computers). I also couln't get runas to use the correct
working directory of the program.

"Kevin C" wrote:

Your best bet would be to setup a printer server and map the printers to user
via the printer server shares ... then when you don't need the check printer
you can turn it off line or you could set it up so only people in the Payroll
group can print checks ect.
--
Kevin Callanan
MSCA 2003, A+, Network+
www.weblabtechs.com

Please let us know if this response was helpful...


"Chip pellegrino" wrote:

I have 80 computers that have two networked printers (TCPIP) called
HPPrinter and CheckPrinter. The paper in the CheckPrinter are stock forms
with control numbers. The problem is that sometimes, for whatever reason,
people print things other than checks to it ie: sometimes the checkprinter is
the deafualt printer in the print dialog. Anyway is there a way i can
disable printing to the checkprinter. I was thinking by unchecking the
printer security setting for "Print", then i would need a vbscript to change
it back,run our check printing program, then turn it off again. How would i
do this in windows 2000--windows 2000-windows 2000?
.



Relevant Pages

  • Re: FM 8.5 and several printing issues
    ... I have some printing issue too, ... Someone told me that the new FM8.5 remember the printer when the script was ... ChangePrinter plug in was compatble with FM8+. ... happens even after changing deafult printer, logging out of FM, logging ...
    (comp.databases.filemaker)
  • Re: Print Automation with IE7
    ... whether the page has finished loading before starting ... print html, wait for completion ... force my script to wait until the web page is really fully loaded. ... I know IE7 has made a lot of changes to the underlying printing from ...
    (microsoft.public.scripting.vbscript)
  • Re: Print Tasks List PREFS works OK!
    ... > wanted to correct this among the Entourage group members. ... > printing my Task List for a given project, ... The script does not print individual TASKS - it prints the Tasks LIST. ... It's only "Memo Style" that prints the notes. ...
    (microsoft.public.mac.office.entourage)
  • Re: How can I disable users from printing
    ... account types) from printing? ... this on a Windows XP Pro computer? ... thus enabling or disabling printing. ... clearify would you be saying that if I was to run a script for each ...
    (microsoft.public.windowsxp.general)