Auto install printer based upon location / Dept - Techist - Tech Forum

Go Back   Techist - Tech Forum > Computer Software > Microsoft Windows and Software
Click Here to Login
Closed Thread
 
Thread Tools Display Modes
 
Old 04-10-2008, 01:16 PM   #1 (permalink)
Newb Techie
 
Join Date: Apr 2008
Location: Denver, CO
Posts: 4
Send a message via AIM to SoCi0pAtH Send a message via Yahoo to SoCi0pAtH
Default Auto install printer based upon location / Dept

I've got a print server and about 7 different depts with various printers.

I'd like when a user logs into a PC to auto map the correct printer by dept. My computers are named by the department they are in. For example a computer in accounting could be ACCT01, ACCT02 and so on.

My idea was using the login script.

IF %computername%==ACCT (install accounting printer)
IF %computername%==HR (install HR printer)

The problem is IF command compares the entire string. So ACCT01 returns a false value. I need to able to pull just the ACCT from the %computername% variable.

I'm open to anything!
__________________

SoCi0pAtH is offline  
Old 04-10-2008, 06:17 PM   #2 (permalink)
Newb Techie
 
Join Date: Apr 2008
Location: Denver, CO
Posts: 4
Send a message via AIM to SoCi0pAtH Send a message via Yahoo to SoCi0pAtH
Default Re: Auto install printer based upon location / Dept

Kixtart did the trick. Works great.
SoCi0pAtH is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to install printer over a network ? linux1880 Computer Networking and Internet Hardware 2 03-28-2008 02:39 PM
500gig externaal usb HD ziceman Microsoft Windows and Software 6 03-13-2008 01:24 AM
Printer install problems kprtop Hardware Repairs and Troubleshooting 6 01-22-2008 01:43 PM
printer install sandgyp Hardware Repairs and Troubleshooting 3 10-30-2007 01:10 PM
Disabling Symantec to install a printer Instrumediatech Hardware Repairs and Troubleshooting 1 05-23-2007 09:50 AM



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 09:52 AM.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.