Solved

Login Scripts

Posted on 2009-06-30
1
271 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 500 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

Increase Agility with Enabled Toolchains

Connect your existing build, deployment, management, monitoring, and collaboration platforms. From Puppet to Chef, HipChat to Slack, ServiceNow to JIRA, Splunk to New Relic and beyond, hand off data between systems to engage the right people.

Connect with xMatters.

Question has a verified solution.

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

Ever notice how you can't use a new drive in Windows without having Windows assigning a Disk Signature?  Ever have a signature collision problem (especially with Virtual Machines?)  This article is intended to help you understand what's going on and…
When you upgrade from Windows 8 to 8.1 or to Windows 10 or if you are like me you are on the Insider Program you may find yourself with many 450MB recovery partitions.  With a traditional disk that may not be a problem but with relatively smaller SS…
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…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

717 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