Solved

Net use in Win7

Posted on 2011-02-28
7
700 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
[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
7 Comments
 
LVL 16

Expert Comment

by:Carol Chisholm
ID: 35004548
0
 
LVL 1

Author Comment

by:Tore Jacobsen
ID: 35149862
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
ID: 35186918
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 22

Accepted Solution

by:
dan_blagut earned 500 total points
ID: 35186941
Hello

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

Dan
0
 
LVL 1

Author Closing Comment

by:Tore Jacobsen
ID: 35297385
Also set usercontroll to low
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

OpenVPN is a great open source VPN server that is capable of providing quick and easy VPN access to your network on the cheap.  By default the software is configured to allow open access to your network.  But what if you want to restrict users to on…
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

738 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