markw Posted June 8, 2006 Posted June 8, 2006 This is the code ive got to map a printer through a web page. . . Printers Function AddPrinter dim oNet Set oNet = CreateObject("Wscript.Network") oNet.AddWindowsPrinterConnection "\\serverName\Roc-ITOffice-HPColour3500" Set oNet = Nothing End Function Roc-ITOffice-HPColour3500 It will work fine on my PC but other users just get the "error on page" message when clicking on the link. The page is only held on a shared drive on my PC at the moment. Is this something to do with it or have i missed something else out? Thanks.
TechMonkey Posted June 8, 2006 Posted June 8, 2006 Could it be they don't have permission to add a printer on their station?
markw Posted June 8, 2006 Author Posted June 8, 2006 nice idea, but the users have permission as im testing it in the IT dept.
ico2 Posted June 8, 2006 Posted June 8, 2006 Could it be that they dont have the stuff to use vbscript locally? Maybe you have visual studio installed and they dont or something?
markw Posted June 8, 2006 Author Posted June 8, 2006 im going to try hosting it on the intranet server rather than running it off my machine locally.
ChrisH Posted June 8, 2006 Posted June 8, 2006 If you are using 2003 as a print server then just use the inbuilt IPP website which alows you to view queues and add printers.
ChrisH Posted June 8, 2006 Posted June 8, 2006 @ChrisH: IIRC 2000 does that too. Not your 2000 server though j/k
Ric_ Posted June 8, 2006 Posted June 8, 2006 @ChrisH: IIRC 2000 does that too. Not your 2000 server though j/k Does for 40 minutes at a time (or a day without a backup tape in!)
Nij.UK Posted June 9, 2006 Posted June 9, 2006 well like ric and chris said, windows already has this built in, but if you want to run these scripts, im sure u already know this, but u have to run them through IIS... also paged saved as ASP, is yr machine part of the domain aswell... so that the access right apply.... u dont have to have VB installed on the local machine, u just need IIS running where the files are located and the server will process the page
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now