Save Credentials not working (File Sharing)

  • Thread starter Thread starter clintster
  • Start date Start date
C

clintster

Hi

I would like to setup a batch file to automaticallly map a drive on my work
domain laptop to my home workgroup computer. I don't want to add a password
in the batch file (security reasons) and was trying the savecred option in
net use but after disconnecting the mapped drive, when I try map again it
again asks for my username and password.

Thanks
Clinton
 
In
clintster said:
Hi

I would like to setup a batch file to automaticallly map a drive on
my work domain laptop to my home workgroup computer. I don't want to
add a password in the batch file (security reasons) and was trying
the savecred option in net use but after disconnecting the mapped
drive, when I try map again it again asks for my username and
password.
Thanks
Clinton

I've never tried using savecred, but I thought it was used for runas only
(and I've heard it's a huge security hole).
However, take a look at http://support.microsoft.com/?kbid=287536 .
 
NET USE [/PERSISTENT:{YES | NO}]

Persistent is the command line parameter you want.
 
It, /SAVECRED for runas, is a huge security hole, because it doesn't just apply to that one instance. Any later use of RunAs won't require a matching password for the RunAs username.

--
Doug Knox, MS-MVP Windows Media Center\Windows Powered Smart Display\Security
Win 95/98/Me/XP Tweaks and Fixes
http://www.dougknox.com
 
Back
Top