Solved

Authenticate to a Server Through Script

Posted on 2009-05-14
4
502 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
Comment Utility
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
Comment Utility
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
Comment Utility
Yup it worked.
0
 

Author Closing Comment

by:Mixxit
Comment Utility
Net Use was the answer. Thanks!

0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

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…
Sometimes people don't understand why download speed shows differently for Windows than Linux.Specially, this article covers and shows the solution for throughput difference for Windows than a Linux machine. For this, I arranged a test scenario.I…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

762 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

13 Experts available now in Live!

Get 1:1 Help Now