我试图使用以下命令以持久模式映射驱动器,并且我不希望它在每次重新引导计算机时都询问登录凭据:
net use P: \\server\folder Password123 /user:user123 /savecred /persistent:yes
但是我得到以下错误:
A command was used with conflicting switches.
More help is available by typing NET HELPMSG 3510.
我关注了这篇文章:http://pcsupport.about.com/od/commandlinereference/p/net-use-command.htm
请协助解决这个问题。
最佳答案
当我们使用/savecred
开关时,我们不应在同一行中提供凭据。正确的命令应为:
net use P: \\server\folder /savecred /persistent:yes
它将询问用户名和密码。
关于networking - Net.exe在使用/savecred时使用 'Error: A command was used with conflicting switches.',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17996846/