Page 1 of 2

Advantage Database Server ODBC

Posted: October 16th, 2008, 12:17
by amblin
.

Posted: October 16th, 2008, 12:36
by fabyak
What system are you running them on?

Posted: October 16th, 2008, 12:44
by Lateralus
How are your supplies of jam?

Posted: October 16th, 2008, 12:44
by amblin
.

Posted: October 16th, 2008, 12:56
by fabyak
Are they shared off servers as well or are they standalone (but networked jobbers)?

Posted: October 16th, 2008, 13:02
by amblin
.

Posted: October 16th, 2008, 13:05
by fabyak
In that case:

CSCRIPT \\server04\c$\windows\system32\prnmngr.vbs -ac -p "\\server04\Kyocera FS-3820N"

Should do the trick

Otherwise if you have an active directory add that into a login script but sub in \\server04\c$\windows for %windir%

Posted: October 16th, 2008, 13:07
by amblin
.

Posted: October 16th, 2008, 13:19
by amblin
.

Posted: October 16th, 2008, 13:29
by Stoat
You missed one

Code: Select all

if exist z: net use o: /delete 

Posted: October 16th, 2008, 13:36
by amblin
.

Posted: October 16th, 2008, 13:51
by fabyak
If that's an AD login script, change the

CSCRIPT \\server04\c$\windows\system32\prnmngr.vbs -ac -p "\\server04\Kyocera FS-3820N"

to

CSCRIPT %windir%\system32\prnmngr.vbs -ac -p "\\server04\Kyocera FS-3820N"

Posted: October 16th, 2008, 14:20
by Fear
Oh, i posted this in the disco board.

http://cwashington.netreach.net/depo/view.asp?Index=388

Create DSNs without 3rd party executables (eeew security risk)

Posted: October 16th, 2008, 14:23
by Fear
I wrote a login script that used to map printers depending on group membership.

So being a member of say "ggSales" would map printers in and around the sales department. If this is of interest I can try and find it, hopefully I'll have archived it somewhere.

Posted: October 16th, 2008, 14:32
by amblin
.

Posted: October 16th, 2008, 14:33
by fabyak
:w00t:

I was actually doing this for the first time about 3 days ago so your timing is quite remarkable!

Posted: October 16th, 2008, 14:37
by amblin
.

Posted: October 16th, 2008, 14:38
by Fear
If you follow that script I linked, it is creating the DSN by writing to the registry. You could easily reverse engineer it, so to speak.

Create a valid Advantage DSN.

Find it in the registry.

Alter the code of the script to write the Advantage DSN registry keys (it will have extra keys and things I think)

Put code in login script.

...

Profit



Edit: Oh you fixed it as I was typing this.

Posted: October 16th, 2008, 14:43
by spoodie
7

Posted: October 16th, 2008, 14:55
by amblin
.