Solved

Authenticate to a Server Through Script

Posted on 2009-05-14
4
503 Views
Last Modified: 2012-05-07
Greetings Experts! Here's my dilemma. I have several users in my office that are contract employees. Their laptops are not joined to my domain, however they do have domain user accounts. They need to use our workgroup printers from time to time. Problem is, before the print server will allow them to send a job through, they must authenticate to the print server since their machines are not on the domain. I've just been having them open and explorer window and type \\servername in the address bar. That prompts them to authenticate. Once they do, obviously a window with all of our shared printers opens. They close that window. Now they are able to print.

I would like to create a batch file that pops the login box to the server and finishes. I've tried just plain ol' START \\Servername but that still leaves the shared printers window open once they authenticate.

Any thoughts on how I can authenticate their domain account to the server without jumping through this many hoops? Thanks in advance. Sorry for what might be an easy question. I'm a network/hardware dude; not a scripting/coding dude. Thanks again!
0
Comment
Question by:Mixxit
  • 2
4 Comments
 
LVL 7

Expert Comment

by:dolomiti
ID: 24386808
hi,
a solution, even if no elegant, is to give to these persons
the IP-Address of the printer, and its model, and say them
(that probably can be Administrator in their PC), to add such
printers, as Local Printer (using a standard TCPIP Port with that address)
rather than Network Printer (shared from a server).

It's no elegant, becouse the jobs goes directly to the printer, without be spooled by server, but seen as exceptions, it may be acceptable.

bye
vic
0
 
LVL 21

Accepted Solution

by:
AmazingTech earned 250 total points
ID: 24386851
This might work.

I'm removing a workstation from the domain to test.
Set /p UserID=Enter your Domain credentials
 

net use \\Servername /user:%UserID% *

Open in new window

0
 
LVL 21

Expert Comment

by:AmazingTech
ID: 24386896
Yup it worked.
0
 

Author Closing Comment

by:Mixxit
ID: 31581535
Net Use was the answer. Thanks!

0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How Do I Set Up XP Mode in Windows 7? 8 73
Windows server 2003 bootable iso 9 45
Can’t delete a file 14 139
VB Script/Bat: check if a file has been modified based on prefix 10 59
Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
If you have done a reformat of your hard drive and proceeded to do a successful Windows XP installation, you may notice that a choice between two operating systems when you start up the machine. Here is how to get rid of this: Click Start Clic…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now