Sartup Net USe Commands removal

Posted on 2006-11-18
Last Modified: 2012-06-27

   I have a user that logs onto the sbs2003 domain.  On PC that is logging onto domain is a Win XP Pro Pc.  On startup it runs net use commands to map to drives, it also runs other scripts.  I want to stop these commands running.  I have tried looking in the autoexec.bat and autoexec.nt but I cant find where these are entered?  does nyone know where these entries could be added.  I also tried msconfig but couldnt find anything.

Hope someone can help

Question by:cstephen100
LVL 30

Expert Comment

ID: 17971777
That's because when you log in as the user on the domain, you incur the login script that is assigned to that user.  You can find this when you go to Active Directory on the server, locate the user account.  Check out the profile and the login script (.bat) that exists.  Remove or modify the script at the server.
LVL 74

Accepted Solution

Jeffrey Kane - TechSoEasy earned 250 total points
ID: 17973232
A properly joined client workstation in an SBS domain will run the SBS_LOGIN_SCRIPT.bat file which is located in the \\SBSSERVER\NETLOGON share.  This file MUST be run by each client machine and the default file contains just one line (which should not be changed):

\\SBSSERVER\Clients\Setup\setup.exe /s SBSSERVER

Most likely though, someone put other lines in that file for mapping the drives.


Expert Comment

ID: 17973542
since you're running SBS I'd use the proper wizard like Jeff recommends but just in case you don't want to.


the SBS_LOGIN_SCRIPT.bat is located in there.  if you open it in notepad and add rem before each net use it will stop mapping of the drives

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

LVL 74

Expert Comment

by:Jeffrey Kane - TechSoEasy
ID: 17973604

The NETLOGON share maps to that same directory.

LVL 30

Expert Comment

ID: 18156874
@redseatechnologies....why would my comment not count to split?
LVL 39

Expert Comment

ID: 18161313
Simple, you suggested removing the script which is not the correct way to do things with SBS.

Were this windows 2003 server or networking, I would have split between you and Jeff - as it is not, Jeff's is the only "correct" answer.

LVL 30

Expert Comment

ID: 18161959
@redseatechnologies...ok fair enough

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Roaming profile issues 1 34
SBS 2007 remove AD ? 10 73
In RDP gateway  Setting default remote desktop  How do I do this in RDPGW 2012 ? 4 65
IPV6 Issues 3 36
In the event you manage a Small Business Server 2003, and you are audited for PCI compliance, there are several changes you must make in order to pass the audit. I can take no credit for discovering any of these fixes or workarounds, but there is no…
I've often see, or have been asked, the question about the difference between the Exchange 2010 SP1 version, available as part of Small Business Server (SBS) 2011, and the “normal” Exchange 2010 SP1 Standard. The answer to the question is relativ…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

821 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