Page 1 of 1 1
Topic Options
#184957 - 2008-01-30 11:03 PM Error 122 when adding printer connection
d.adams Offline
Fresh Scripter

Registered: 2000-12-07
Posts: 41
Loc: Eagle Rock, VA, USA
I am trying to add a printer connection in a Citrix/Terminal server login script to a printer on the domain where the server is located. When I run the AddPrinter command it gives me the error code 122 (ERROR_INSUFFICIENT_BUFFER). This only happens on some login ids and not others. Does anyone have any idea what may be going on here? I have deleted and recreated login profiles with no luck.

Thanks in advance!

Don

Top
#205705 - 2012-09-10 10:38 AM Re: Error 122 when adding printer connection [Re: d.adams]
MartinAD Offline
Fresh Scripter

Registered: 2011-08-01
Posts: 13
Loc: -
Hi, did this issue ever got resolved?

I am running into the same problem on multiple machines. All regular desktop systems, OS is mixed between XP and W7.

I did a little google search, but was unable to find any reaonable results. Any Ideas?

Top
#205707 - 2012-09-10 02:47 PM Re: Error 122 when adding printer connection [Re: MartinAD]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4536
Loc: USA
I would start by making sure you have the latest drivers for your printers, especially if they have not been updated since the XP days.
Top
#205708 - 2012-09-10 03:08 PM Re: Error 122 when adding printer connection [Re: Allen]
MartinAD Offline
Fresh Scripter

Registered: 2011-08-01
Posts: 13
Loc: -
the drivers are fairly new, the thing is: the printer gets sometimes connected, sometimes not.

If I just retry the connection, it almost always connects the printer right away.

Top
#205709 - 2012-09-10 05:11 PM Re: Error 122 when adding printer connection [Re: MartinAD]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4536
Loc: USA
I'm not a Citrix guy, so I don't know if this applies. There is a setting that started with XP that you really need to set prior to running logon scripts. XP and above makes the desktop appear before all your network services are actually running. Changing the setting makes the computer wait for the network before showing the desktop.

See the FAQ:
Windows XP Professional Fast Logon Optimization
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=112428#Post112428

Top
#205727 - 2012-09-11 06:09 AM Re: Error 122 when adding printer connection [Re: Allen]
MartinAD Offline
Fresh Scripter

Registered: 2011-08-01
Posts: 13
Loc: -
yeah. we already set this setting, it says "wait for network" and when you set it, the computer will not show the logon mask until the network is fully available.

besides that, the error shows up on w7 and xp.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 241 anonymous users online.
Newest Members
SHEBLU_HOSSAIN, JohnShearer, sam_white, Luuraap, mve666
17800 Registered Users

Generated in 0.062 seconds in which 0.028 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org