Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - printer from different domain

Reply
 
Old 05-01-2009   #1 (permalink)
Jeremy


 
 

printer from different domain

In my school there is a student domain and a teacher domain. Each are on
different subnets but the subnets can talk to each other.
Student printers are mapped depending on the computer name.
Admin printers are mapped to all teacher laptops so they can print from
anywhere. All printers are shared from either the teacher or student 2003
server.
I want to cut and paste a section from the student's logon script to the
teacher logon script so that if a teacher logs on to a student machine, using
the teacher credentials (log on to the teacher domain but on a computer
joined to the student domain), the script realizes the computer is in the
other domain so it needs that domain's printers (talk about run on
sentences!).

So, should my case statement look like:
1. if computer name is student\computer-name, then choose this printer
2. if computer name is computer-name.student.ca, then choose this printer
3. Or should I be looking at saying if the computer is on such and such a
subnet, then use this printer.
Thanks,


My System SpecsSystem Spec
Old 05-02-2009   #2 (permalink)
Al Dunbar


 
 

Re: printer from different domain


"Jeremy" <Jeremy@xxxxxx> wrote in message
news:63F35E5C-3031-4DC1-95ED-98C4CB9F97FC@xxxxxx
Quote:

> In my school there is a student domain and a teacher domain. Each are on
> different subnets but the subnets can talk to each other.
> Student printers are mapped depending on the computer name.
Are they mapped by the logon script? is that logon script run through group
policy, or is it assigned to the users in active directory?
Quote:

> Admin printers are mapped to all teacher laptops so they can print from
> anywhere.
And how is that done?
Quote:

> All printers are shared from either the teacher or student 2003
> server.
> I want to cut and paste a section from the student's logon script to the
> teacher logon script so that if a teacher logs on to a student machine,
try posting the logon script...
Quote:

> using
> the teacher credentials (log on to the teacher domain but on a computer
> joined to the student domain), the script realizes the computer is in the
> other domain so it needs that domain's printers (talk about run on
> sentences!).
>
> So, should my case statement look like:
> 1. if computer name is student\computer-name, then choose this printer
> 2. if computer name is computer-name.student.ca, then choose this printer
> 3. Or should I be looking at saying if the computer is on such and such a
> subnet, then use this printer.
You could leverage your computer naming convention (assuming NO exceptions),
or you could just determine the domain that the computer and the user belong
to. I would think that to be better (simpler) than looking at subnets.

Ours is a single-domain (well, in production, at least), so I do not have
any directly relevant experience here. When person A from domain B logs on
at computer C from domain D, (where D=B) how is it determined which printer
will be mapped? Is it typically the one physically nearest to the
workstation, or is it assigned to the individual?

/Al


My System SpecsSystem Spec
Old 05-05-2009   #3 (permalink)
Jeremy Schubert


 
 

Re: printer from different domain

Thanks Al. I figured out that I could just use a case statement (an if then
statement really I guess.
if comp name = x then give this printer.
So problem solved, but I can still paste the code if you thik it would be
valuable.
Thanks,
Jeremy
"Al Dunbar" <alandrub@xxxxxx> wrote in message
news:uCLJ9Y2yJHA.4632@xxxxxx
Quote:

>
> "Jeremy" <Jeremy@xxxxxx> wrote in message
> news:63F35E5C-3031-4DC1-95ED-98C4CB9F97FC@xxxxxx
Quote:

>> In my school there is a student domain and a teacher domain. Each are on
>> different subnets but the subnets can talk to each other.
>> Student printers are mapped depending on the computer name.
>
> Are they mapped by the logon script? is that logon script run through
> group policy, or is it assigned to the users in active directory?
>
Quote:

>> Admin printers are mapped to all teacher laptops so they can print from
>> anywhere.
>
> And how is that done?
>
Quote:

>> All printers are shared from either the teacher or student 2003
>> server.
>> I want to cut and paste a section from the student's logon script to the
>> teacher logon script so that if a teacher logs on to a student machine,
>
> try posting the logon script...
>
Quote:

>> using
>> the teacher credentials (log on to the teacher domain but on a computer
>> joined to the student domain), the script realizes the computer is in the
>> other domain so it needs that domain's printers (talk about run on
>> sentences!).
>>
>> So, should my case statement look like:
>> 1. if computer name is student\computer-name, then choose this printer
>> 2. if computer name is computer-name.student.ca, then choose this
>> printer
>> 3. Or should I be looking at saying if the computer is on such and such
>> a
>> subnet, then use this printer.
>
> You could leverage your computer naming convention (assuming NO
> exceptions), or you could just determine the domain that the computer and
> the user belong to. I would think that to be better (simpler) than looking
> at subnets.
>
> Ours is a single-domain (well, in production, at least), so I do not have
> any directly relevant experience here. When person A from domain B logs on
> at computer C from domain D, (where D=B) how is it determined which
> printer will be mapped? Is it typically the one physically nearest to the
> workstation, or is it assigned to the individual?
>
> /Al
>
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Need to change external domain without changing the .local domain Virtual Server
Active Directory Domain Services Is Currently Not Available- Printer Missing Solution Vista networking & sharing
Using Vista Home to connect to printer on WS2003 and XP pro domain Vista networking & sharing
Connect laptop to domain printer Vista networking & sharing
Printing to a shared printer on a workgroup from a PC on a domain Vista networking & sharing


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46