问题描述
我正在运行批处理:
"net use j: \\192.168.1.241\sausb /user:srvfeskar\administrator Ratata12 /persistent:yes /p:yes"
重新启动Windows 8计算机后.我需要再次输入密码.
After restarting the windows 8 computer. I need to insert the password again.
推荐答案
如果我理解的话,重启后每次都不会运行相同的命令.您希望运行一次命令,然后在成功登录后无需验证即可映射驱动器.
If i understand it, you are not running the same command each time after restart. You want to run the command once and then in sucessive logins have the drive mapped without having to validate.
有两个选择
-
在
net use j:
命令中包含/persistent:yes
和/savecred
开关,但不包括用户或密码数据.将要求它,然后将其保存以备后用.
In
net use j:
command include the/persistent:yes
and/savecred
switches, but do not include user or password data. It will be asked and then saved for later use.
使用 cmdkey
命令将所需的凭据存储在计算机中.
Use the cmdkey
command to store the required credentials in the machine.
cmdkey/add:191.168.1.241/user:srvfeskar \ administrator/pass:Ratata12
然后,当使用 net use j:\\ 192.168.1.241 \ sausb/persistent:yes
时,存储的凭据将用于映射.
Then when net use j: \\192.168.1.241\sausb /persistent:yes
is used, the credentials stored will be used for the mapping.
这篇关于映射网络驱动器并无法保存密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!