Solved

Net use in Win7

Posted on 2011-02-28
7
690 Views
Last Modified: 2012-05-11
Hi.
Have alot of customers that work out of the office from time to time.
Most have terminal servers, but also need access to shared folders from their local pc.
Have for years used VPN software and a bat file with net use command to connect shares.
like:
net use f: /delete
net use f: \\serverIP\Sharename "password"

Where the user is logged in as domain user, and the password in qutationsmarks is their domain password.
Often use servername instead of server ip, but then with host file like:
192.168.20.2     servername.domainname.local   servername

And as long as the bat file manage to disconnect all the network shares connected piror to this bat file being run, it have always worked great. (with xp that is)

But now with Win 7, it very often does not work.
To clearify, get it working on all computers, but maybe on of 3 times it gives error msg.
Some times it helps, manualy disconnecting shares, reboot, and rerun bat file.
Sometimes it gives error msgs like "an atempt to breach sercurity has occured" (loosely transelated from norwegian...)

Any ideas? maybe a diffrent syntax?
And also, this is the same with sbs2003 and sbs2008 servers

Thanx
0
Comment
Question by:Tore Jacobsen
7 Comments
 
LVL 16

Expert Comment

by:Carol Chisholm
Comment Utility
0
 
LVL 1

Author Comment

by:Tore Jacobsen
Comment Utility
Hi.
Sorry for late response.
Tried:
##
- Click Start
- Click Control Panel
- Click System and Maintenance
- Click Administrative Tools
- Double-Click Local Security Policy
- In the left pane, click the triangle next to Local Policy
- In the left pane, click Security Options
- In the right pane near the bottom, double-click "Network security: LAN
manager authentication level"
- Click the drop-down box, and click "Send LM & NTLM responses"
- Click OK
###
With no luck.

0
 
LVL 27

Expert Comment

by:Tolomir
Comment Utility
Give this a try:


Click on the Start button and type SECPOL.MSC in the search function.

Browse to "Local Policies" -> "Security Options". Now Look for the Entry "Network Security: Lan Manager

Authentication Level" and open it. Click on the dropdown menu and select "Send LM & NTLM - use  NTLMv2

session security if negotiated". Aplly the Settings.

In the advanced Sharing settings of Network and Sharing center, you need to have it set as Work/Home

Profile. Now Try It!

Please check these related Policy items also!

Enter the "GPEDIT.MSC" in the start search function box.
Open the "Computer Configuration" goto "Windows Settings" then to "Security Settings" followed by the

"Local Policies" and then "Security Settings".
In the right pane window, "Enable" the following Policies:

Network Access: Allow Anonymous SID/Name translation
Network Access: Let Everyone Permissions aplly to anonymous users

Also, Please Disable the Following Policies:

Network Access: Restrict anonymous access to Named Pipes and Shares
Network Access: Do Not Allow Anonymous Enumeration of Sam Accounts
Network Access: Do Not Allow Anonymous Enumeration of Sam Accounts and Shares



from http://social.technet.microsoft.com/Forums/en-US/w7itprovirt/thread/e08c3500-a722-4b44-b644-64f94f63c8e5
0
 
LVL 21

Accepted Solution

by:
dan_blagut earned 500 total points
Comment Utility
Hello

Can you try:
net use f: //server/share /user:username@domain_name password

Dan
0
 
LVL 1

Author Closing Comment

by:Tore Jacobsen
Comment Utility
Also set usercontroll to low
0

Featured Post

Too many email signature updates to deal with?

Do you feel like you are taking up all of your time constantly visiting users’ desks to make changes to email signatures? Wish you could manage all signatures from one central location, easily design them and deploy them quickly to users? Well, there is an easy way!

Join & Write a Comment

If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This Micro Tutorial will go in depth within Systems and Security in Windows 7 and will go into detail regarding Action Center, Windows Firewall, System, etc. This will be demonstrated using Windows 7 operating system.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

772 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

12 Experts available now in Live!

Get 1:1 Help Now