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. |
|
|
Thread Tools | Rate Thread | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 |
|
|