473,322 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Printing with UDB WSE v8 and Win2000

Having just rebuilt a server with Win 2000 OS (NOT using active
directory) and UDB WSE v8 FP 5, I am now setting up database backup
processing scripts. Reports are created and sent to a network printer
upon completion of various processing stages. The problem is the
reports are failing to print. A bat file which is called from the
Task Center, Command Script tab will successfully execute all the DOS
and DB2 commands in it BUT fail when the report file is sent to the
printer using the DOS 'copy' cmd. The error is 'Logon failure:
Unknown user name or bad password'. If I use the xcopy cmd, I get the
error 'Invalid drive specification'. Next I put the DOS and DB2
commands directly in the Task Center, Command Script. Again, all the
commands ran successfully until the 'copy' to the printer which
reported no error but also did not produce a paper report. If I send
the report file to LPT1 instead of a network printer the report
prints. I think I am facing some security issue, but can't put my
finger on the resolution. The id that runs the scripts is the same id
that is used to log on to the machine and is an Administrator. Under
Computer Management, Local user and groups, this id is listed in both
the Administrators and Users groups. I would be very grateful to
anyone who can offer me a solution to this problem?! Thank you!
Nov 12 '05 #1
2 1809
Definitely a security problem. Also XCOPY isn't usable for devices.
On the server, grant PRINT rights on the printer to the domain userid under
which the DB2 backup script is running.
If you're using a local userid for backups, change to a domain userid -
local userids have no rights to nonlocal systems.

"R. Clausen" <ra***********@ins.state.il.us> wrote in message
news:44**************************@posting.google.c om...
Having just rebuilt a server with Win 2000 OS (NOT using active
directory) and UDB WSE v8 FP 5, I am now setting up database backup
processing scripts. Reports are created and sent to a network printer
upon completion of various processing stages. The problem is the
reports are failing to print. A bat file which is called from the
Task Center, Command Script tab will successfully execute all the DOS
and DB2 commands in it BUT fail when the report file is sent to the
printer using the DOS 'copy' cmd. The error is 'Logon failure:
Unknown user name or bad password'. If I use the xcopy cmd, I get the
error 'Invalid drive specification'. Next I put the DOS and DB2
commands directly in the Task Center, Command Script. Again, all the
commands ran successfully until the 'copy' to the printer which
reported no error but also did not produce a paper report. If I send
the report file to LPT1 instead of a network printer the report
prints. I think I am facing some security issue, but can't put my
finger on the resolution. The id that runs the scripts is the same id
that is used to log on to the machine and is an Administrator. Under
Computer Management, Local user and groups, this id is listed in both
the Administrators and Users groups. I would be very grateful to
anyone who can offer me a solution to this problem?! Thank you!

Nov 12 '05 #2
ra***********@ins.state.il.us (R. Clausen) wrote in message news:<44**************************@posting.google. com>...
Having just rebuilt a server with Win 2000 OS (NOT using active
directory) and UDB WSE v8 FP 5, I am now setting up database backup
processing scripts. Reports are created and sent to a network printer
upon completion of various processing stages. The problem is the
reports are failing to print. A bat file which is called from the
Task Center, Command Script tab will successfully execute all the DOS
and DB2 commands in it BUT fail when the report file is sent to the
printer using the DOS 'copy' cmd. The error is 'Logon failure:
Unknown user name or bad password'. If I use the xcopy cmd, I get the
error 'Invalid drive specification'. Next I put the DOS and DB2
commands directly in the Task Center, Command Script. Again, all the
commands ran successfully until the 'copy' to the printer which
reported no error but also did not produce a paper report. If I send
the report file to LPT1 instead of a network printer the report
prints. I think I am facing some security issue, but can't put my
finger on the resolution. The id that runs the scripts is the same id
that is used to log on to the machine and is an Administrator. Under
Computer Management, Local user and groups, this id is listed in both
the Administrators and Users groups. I would be very grateful to
anyone who can offer me a solution to this problem?! Thank you!


Thanks Mark for offering a suggestion. Here is more pertinent
information. I failed to mention that the id I am using has full
administrator rights both locally and on the domain. Also, the 'copy'
cmd that fails to produce a hard copy report can be copied directly
out from the script (without the ! and end ; characters) and pasted
onto a DOS command line which prints just fine. Any good ideas?!
Thank you!
Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Pekka Niiranen | last post by:
Hi, I have a multiuser script, that I would like to convert to Python. The users open simultaneous telnet -sessions from win2000 to an unix machine and possibly edit unicode textfiles. Currently...
11
by: angel | last post by:
Hi I use python on win2000.I found python perhaps spend 10~15 second on starting. How to accelerate it? Thanx
1
by: Peter Nolan | last post by:
Hi All, I have some software that currently loads database tables into sorted arrays in memory to be binary searched by processes. (Long story as to why it does this..) Each process must either...
11
by: IC_Clearly | last post by:
I'm running Server 2003 and wonder how well WTS works when printing an Access report to a client. Any suggestions would be appreciated. Thanks. IC
2
by: Grei | last post by:
how can i impersonate from win2000 to WinXP? in MSDN says: (gives example how to implemet it but not with win2000, and it doesn't say what to do on win2000!!!) any ideas? workarounds? Thanx! ...
6
by: Grei | last post by:
how can i impersonate from win2000 to WinXP? MSDN gives example how to implemet impersonation from XP to XP, but not from win2000 to XP, and it doesn't say what to do with win2000!!! any ideas?...
4
by: Strahimir Antoljak | last post by:
I completed a VB.NET application and it runs fine on WinXP. I wanted to run it on Win2000 and it is not working. Is it not supposed to work on Win2000 too? (I installed .NET framework distributable...
5
by: C-Services Holland b.v. | last post by:
Hi all, I've run into a problem trying to print from vb.net (2002) in Windows 98. To test it I've setup a single form with a button and the following code: 'the form has a button called...
10
by: JP Bless | last post by:
Hi all, I have a database Access/MSDE and would like to have a website so users can search the data and update some records/fields through the website.... And I have high speed internet...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.