
setting default printer based on sorkstation location for romaming profile
If you are using DHCP and Roaming Profiles then there isn't much else
to key on. There isn't a simple way for the server to "know" where
the computers are physically located.
Some suggestions, all three require a trip to the workstations:
1. Use the MAC address. This would be time consuming to set up, and
difficult to maintain.
2. Use something in the workstation name. You could have all the odd
numbers print to one printer... Would require parsing out the
workstation name, and most likely the renaming of some workstations.
3. Check for the existence of a file. This could be a simple 0 byte
file in the Winnt directory. Create the file using:
REM>c:\winnt\printera.txt
Then in the login script you could simply use:
If exist c:\winnt\printera.txt net use lpt1: \\server\printera
If not exist c:\winnt\printera.txt net use lpt1: \\server\printerb
This would be very easy to setup and maintain, and you would only have
to go to half of the workstations. The biggest disadvantage is that
you don't get to learn a whole lot about WSH.
My philosophy is, "Don't use a bigger hammer than you need to." You
can still learn about WSH for other things though.
On Sun, 27 Dec 1998 04:52:25 -0500, "mike mccafferty"
Quote:
> thanks for the reply. we are using dhcp to assign addresses for the
>workstations with 30 day leases. I should also mention that I am new at this
>so could use some pointers on best practices for learning wsh programming.
>none of the books are out yet.
> your site has been helpful but I am what learning path I should follow
>so the learning is incremental.
> mike
Clay Calvert, MCSE
www.languru.com/multimon.htm
Remove the "x" in my e-mail address to reply.