Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Login Scripts

Posted on 2009-06-30
1
Medium Priority
?
273 Views
Last Modified: 2012-05-07
I have a login script that runs when a user log into the domain which maps drives.  If the user does not have access to a particular server, the login script stops and asks for a password.  Does anyone know how to bypass this password request and allow the script to continue without mapping that server drive?  I have included the contents of the script below.  It is the OEMServer drive that is in question.  I do not want to run a separate logon script.

net use m: /delete
net use m: \\mvtsntdc\ET$
net use o: /delete
net use o: \\OEMServer\oem
0
Comment
Question by:orther
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 85

Accepted Solution

by:
oBdA earned 2000 total points
ID: 24749606
You can try to create a directory listing before mapping, and only map if the listing is successful:
net use m: /delete
net use m: \\mvtsntdc\ET$
dir \\OEMServer\oem >NUL 2>&1 || goto SkipODrive
net use o: /delete
net use o: \\OEMServer\oem
:SkipODrive

Open in new window

0

Featured Post

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Preface Having the need * to contact many different companies with different infrastructures * do remote maintenance in their network required us to implement a more flexible routing solution. As RAS, PPTP, L2TP and VPN Client connections are no…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

610 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