Impersonation, Printing and other matters

From: Any old Joe (joe_at_starseaford.co.uk)
Date: 05/30/03


Date: Fri, 30 May 2003 06:19:37 -0700


Hello

I'm hoping that some kind individual can offer a cunning way around a
printing problem I have. I am aware that I can enumerate network printers
if I am running my aspnet worker process as SYSTEM and impersonating the
user currently logged onto my machine because the account reads the printer
settings for HKEY_CURRENT_USER. However, if I impersonate another domain
user windows does not seem to load up their settings and so no network
printers are found. Can anyone suggest a way around this - is there some
method for loading up the impersonated users printer settings??
As a little aside, is it correct that for the ASPNET account to impersonate
a user all that is required is to give it the "Act as part of operating
system" right? I have tried this out and keep getting a memory violation
after the impersonated user has logged on. Is there something else that
needs adjusting or is this just bad luck? Many thanks for any help,

Joe



Relevant Pages

  • Re: Network Printing from NT Service
    ... I needed to load the profile of the user I was impersonating ... This in turn made the network printers show up in the ... // Impersonate the user to gain access to network printers connected to the ...
    (borland.public.delphi.nativeapi)
  • Re: plain, recycle, color and bond paper
    ... but the setting for paper type was plain. ... the real question is whether the customer is getting satisfactory results. ... the printer will result from not changing the settings. ... The majority of modern laser printers do not change the speed according to ...
    (comp.periphs.printers)
  • Re: Printer Preferences keep Changing
    ... I use regini.exe to import settings directly to the registry to force the ... are the printers that the user will see. ... and pdf creates a pdf file in the users My Documents, ... > We have a windows 2003 terminal server, ...
    (microsoft.public.windows.terminal_services)
  • Re: Local LPR printer fails to auto attach in Terminal server
    ... Since this is a client setting, you have to configure it on the ... This problem is well-known for HP All-in-One printers, ... registry settings described in the article above. ... Have you checked the EventLog on the Termianl Server? ...
    (microsoft.public.windows.terminal_services)
  • Default formpapersize when creating new printer.
    ... When creating new printerqueue's (Logical Printers according to MS) ... we use A4 papersize instead of Letter. ... I've tried to change the regional settings, from English US into English UK ... Which setting changes the default form option on the server from Letter into ...
    (microsoft.public.windows.server.general)