MSFN Forum: net use etc etc - error 1219 ONLY ON VISTA! - MSFN Forum

Jump to content



Windows Vista Forum Rules

If you have questions about customizing Windows Vista that are vLite-specific, please post them in the vLite forum, not here. If you have questions regarding the unattended installation of Windows Vista, please post them in the Unattended Windows Vista/Server 2008 section.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

net use etc etc - error 1219 ONLY ON VISTA! Rate Topic: -----

#1 User is offline   pavallokazzo 

  • Group: Members
  • Posts: 5
  • Joined: 09-November 08

Posted 09 November 2008 - 12:41 PM

Hello everybody!
I need an help on Vista.
I've got a script that connects a vista machine at 2 shares, one public and the other private

set user=
set pass=
net use z: \\server\public
if not defined %user% set /p user=Username:
net use y: \\server\private /u:%user% %pass%

Now who use this script can complete the declaration of variables to auto-login at runtime instead of having to give the "keys" during the script execution.
You can reuse it if you want ;)

More it creates 2 connections:
- public (that's just guest: users are mapped to guest account)
- private (it's a folder for every user, given the right credentials the server will open connection to your private folder)

On win xp this script DOES works.
On Vista instead it will lead everytime to error 1219
I've tried adding a net * /delete before the script, restart the computer etc etc but nothing came out. Still 1219.
Any solutions? Do I have to use the "net use \\IP" trick? Is there a way to get by script the IP address from a NBT name?

Also on the server-side (is a Linux-Samba machine but that's the same cause I've noticed this also happen on Windows) if I launch smbtree (to get a "tree-view" of the machine+share in the network) every time, for every machine, it tries to get share's list from 192.210.85.something while my network it's in a classic 192.168.0 environment.
Result of this operation is always a timeout (the other side didn't respond). What can be this? Maybe we are using an outside WINS server? Or are we under attack?!?!?

HELP!
Thanks.


#2 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 7,349
  • Joined: 28-April 06
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 10 November 2008 - 12:23 PM

1219 is a credentials error. Make sure you are using the correct password. Also make sure you aren't logging onto the same server with two different credential sets.

http://support.microsoft.com/kb/98724

#3 User is offline   pavallokazzo 

  • Group: Members
  • Posts: 5
  • Joined: 09-November 08

Posted 10 November 2008 - 02:28 PM

I'm sure I am using the right credentials and sure I don't have any other connection opened...

However:
- this script on win xp DOES work
- As I've already saved I've added at the script net use * /delete before the connection to be sure "connection table" was "free"

Do anybody knows how can I traceback this error on vista? Like logs, advice etc etc...?
Thanks

#4 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 7,349
  • Joined: 28-April 06
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 11 November 2008 - 10:24 AM

I do know that your script will always generate an error if there is no username given. You need to make it so if no username is given, then it doesn't attempt to connect to the share that requires it.

You can set up audit rules for both the client and the server. Have it audit failed logon attempts. Of course you can only do this if you have access to the Group Policy Object Editor, which only is in Vista Ultimate and Business, but should be in 2003 or any other OS you might have on the server.

#5 User is offline   Noise 

  • Windows Guru
  • PipPipPip
  • Group: Members
  • Posts: 425
  • Joined: 27-February 04

Posted 11 November 2008 - 10:59 AM

Try using /USER: instead of /u:

Make sure the username and password don't have spaces in them

This post has been edited by Nois3: 11 November 2008 - 11:00 AM


#6 User is offline   pavallokazzo 

  • Group: Members
  • Posts: 5
  • Joined: 09-November 08

Posted 11 November 2008 - 11:59 AM

DID IT!
You have to first authenticate then open the connection to the shares:

net use \\server /user:%user% %pass%
net use Z: \\server\private
net use Y: \\server\public

Plz notice that the public share connection is mapped to guest (using samba on debian, linux), so every connection on that share will be open as a guest user.

#7 User is offline   pavallokazzo 

  • Group: Members
  • Posts: 5
  • Joined: 09-November 08

Posted 11 November 2008 - 12:07 PM

I've noticed that know I can't log in using a different user...
If I use another user it won't ask for the password, seems like it's cached somewhere...
How can I release those password saved? any help?
thanks

#8 User is offline   pavallokazzo 

  • Group: Members
  • Posts: 5
  • Joined: 09-November 08

Posted 11 November 2008 - 12:24 PM

Sry guys... the rush...
just restart and it will release the keys

#9 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 7,349
  • Joined: 28-April 06
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 12 November 2008 - 10:44 AM

Yea it doesn't like using two different credential sets to log into one server. You shouldn't need to do it that way, just make a new user with access to the other folder or adjust the permissions on the one you are using already.

Good to see you've fixed it. I hadn't set a password like that before.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy