Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Manager printers through SQL Server


Manager printers through SQL Server

Author
Message
delael
delael
Forum Newbie
Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: General Forum Members
Points: 7 Visits: 155
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!
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search