I need to have machines in a workgroup be able to authenticate to a domain file server and a print server using AD accounts.
Anyways, I wrote a visual basic application that runs a net use command, i.e. net use \\servername /user:domain\username password basically. It runs two of these commands, the first to the file server, and second to the print server.
The variables are being passed correctly, and it allows students to authenticate to our servers without even mapping a drive letter. It works 100% on Windows XP.
Here is the issue... On windows 7 about 20-30% of the time this fails. The net use command returns error 1219, which is a multiple connections error. The server security event logs show a login attempt from the machine with the local account instead of the
domain account. I am 100% positive the variables are being passed right, AND the net use command is passing the correct syntax.
Any thoughts on why this is happening or a better way to authenticate?
According to the description of Event 1219, I suggest you add a command in your script to disconnect the previous connection(s)
to the server first. Then use the command to connect the server with proper credential. You may use the command
net use /delete.
Hope it helps.
Marked as answer byBruce-LiuWednesday, September 29, 2010 1:22 PM
Microsoft is conducting an online survey to understand your opinion of the Technet Web site. If you choose to participate, the online survey will be presented to you when you leave the Technet Web site.