Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Manager printers through SQL Server Expand / Collapse
Author
Message
Posted Tuesday, June 8, 2010 9:44 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, July 18, 2014 10:15 AM
Points: 7, Visits: 154
Hello All,

Hoping to get a little help and direction. Here is a little background:

I have an SQL job that will set the default printer, then pause the printer, and then un-pause the printer (all down through xp_cmdshell 'Cscript C:\Windows\System32\prnmngr.vbs -t -p test') and is working with SQL 2008 and Vista 32-bit.

I am trying to put this same job on SQL 2008 but on Windows Server 2008 R2 64-bit OS. However I get an error.

When I try executing I get "Unable to set the default printer Win32 error code 1801" even though i know my printer is named "test".

Any help/direction is much appreciated.

Thanks!
Post #934078
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse