Net use in Win7
Posted on 2011-02-28
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.
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