A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows 7 » Windows 7 Forum
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

CMDKEY: Specifying ID/PW of another device?



 
 
Thread Tools Rate Thread Display Modes
  #1  
Old July 24th 15, 06:28 PM posted to alt.windows7.general
(PeteCresswell)
external usenet poster
 
Posts: 1,933
Default CMDKEY: Specifying ID/PW of another device?

I'd bet the mortgage money that this .BAT file used to work... but it's
not working now...

Seems like the obvious tripping point is specification of the NAS box's
ID/PW. It's acting like I have supplied only Windows' admin ID/pw (the
ID and PW are the same text values on my PC and on the NAS box).

Am I on the right track?

The .BAT file:
================================================== ===================
:* ----------------------------------------------------
:* Deletes, then re-establishes connections
:* using NAS box's Admin ID... which gets
:* us access to the "Admin" share, as opposed
:* to using the Windows' ID which does not.


NET USE * /DELETE /yes
KLIST purge

CMDKEY /delete:NAS
CMDKEY /add:NAS /user:admin /pass:Sandow1

NET USE A: \\NAS\A /savecred /p:yes
NET USE T: \\NAS\Temp /savecred /p:yes
NET USE O: \\NAS\B\DVDs_Owned /savecred /p:yes
NET USE S: \\NAS\$OriginalRips /savecred /p:yes
NET USE L: \\NAS\B\DVDs_Library /savecred /p:yes
NET USE N: \\NAS\B\DVDs_NetFlix /savecred /p:yes

NET USE H: \\NAS\PeteCress /savecred /p:yes


PAUSE
================================================== ===================

The failed result:
NB: In response to the prompt, I did enter the right values for ID/PW
on the NAS box).
================================================== ===================

C:\BATNET USE * /DELETE /yes
You have these remote connections:

A: \\NAS\A
L: \\NAS\B\DVDs_Library
N: \\NAS\B\DVDs_NetFlix
O: \\NAS\B\DVDs_Owned
S: \\NAS\$OriginalRips
T: \\NAS\Temp
Continuing will cancel the connections.

There are open files and/or incomplete directory searches pending on the
connect
ion to L:.

There are open files and/or incomplete directory searches pending on the
connect
ion to N:.

There are open files and/or incomplete directory searches pending on the
connect
ion to O:.

The command completed successfully.


C:\BATKLIST purge

Current LogonId is 0:0x93ac0
Deleting all tickets:
Ticket(s) purged!

C:\BATCMDKEY /delete:NAS

CMDKEY: Credential deleted successfully.

C:\BATCMDKEY /add:NAS /user:admin /pass:Sandow1

CMDKEY: Credential added successfully.

C:\BATNET USE A: \\NAS\A /savecred /p:yes
The command completed successfully.


C:\BATNET USE T: \\NAS\Temp /savecred /p:yes
The command completed successfully.


C:\BATNET USE O: \\NAS\B\DVDs_Owned /savecred /p:yes
The command completed successfully.


C:\BATNET USE S: \\NAS\$OriginalRips /savecred /p:yes
The command completed successfully.


C:\BATNET USE L: \\NAS\B\DVDs_Library /savecred /p:yes
The command completed successfully.


C:\BATNET USE N: \\NAS\B\DVDs_NetFlix /savecred /p:yes
The command completed successfully.


C:\BATNET USE H: \\NAS\PeteCress /savecred /p:yes
The password is invalid for \\NAS\PeteCress.

Enter the user name for 'NAS': admin
Enter the password for NAS:
System error 1219 has occurred.

Multiple connections to a server or shared resource by the same user,
using more
than one user name, are not allowed. Disconnect all previous
connections to the
server or shared resource and try again.


C:\BATPAUSE
Press any key to continue . . .
================================================== ===================

All the other shares have "Public Access" specified - so I am guessing
that is why it's working for them.... the ID/PW being moot in those
cases.

"PeteCress" is another animal... it is under the NAS box's "Home"
directory and requires Admin access.

??
--
Pete Cresswell
Ads
  #2  
Old July 25th 15, 01:06 AM posted to alt.windows7.general
B00ze[_2_]
external usenet poster
 
Posts: 58
Default CMDKEY: Specifying ID/PW of another device?

On 2015-07-24 13:28, (PeteCresswell) wrote:

Awww, I thought we'd fixed that before :-(

CMDKEY /delete:NAS
CMDKEY /add:NAS /user:admin /pass:Sandow1
NET USE H: \\NAS\PeteCress /savecred /p:yes


The password is invalid for \\NAS\PeteCress.
Enter the user name for 'NAS': admin
Enter the password for NAS:
System error 1219 has occurred.
Multiple connections to a server or shared resource by the same user,
using more than one user name, are not allowed.


I dont get it, you've added "admin" to the credentials manager already
using CMDKEY, so why is it saying that the password is invalid? Are you
using a different password when the prompt for pswd comes up (which
could be why you get error 1219)?

Regards,

--
! _\|/_ Sylvain /
! (o o) Member-+-David-Suzuki-Fdn/EFF/Red+Cross/Planetary-Society-+-
oO-( )-Oo BUREAUCRACY: Transforming energy into solid waste.

  #3  
Old July 26th 15, 06:05 PM posted to alt.windows7.general
(PeteCresswell)
external usenet poster
 
Posts: 1,933
Default CMDKEY: Specifying ID/PW of another device?

Per B00ze:
I dont get it, you've added "admin" to the credentials manager already
using CMDKEY, so why is it saying that the password is invalid? Are you
using a different password when the prompt for pswd comes up (which
could be why you get error 1219)?


Neither do I..... -)
--
Pete Cresswell
 




Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off






All times are GMT +1. The time now is 09:03 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.