我的实验networking:2个Windows 7个人电脑。
当使用下面的命令尝试连接到PC2(无密码的pipe理员帐户)时:
net use X: \\PC2\c$ /user:PC2\administrator
它会得到:
System error 5 has occurred. Access is denied.
但是,如果给PC2pipe理员帐户设置了一个密码,并做如下:
net use X: \\PC2\c$ /user:PC2\administrator mypwd
这将工作。
是否有必要设置密码以启用Windows文件共享?
默认情况下,networkinglogin不允许使用空密码。 要更改此设置,请修改本地安全策略MMCpipe理单元中的相关设置。
Windows Settings\Security Settings\Local Policies\Security Options\Accounts: Limit local account use of blank passwords to console logon only
详情请看这里 。
您可以使用以下命令使用空密码:
net use X: \\PC2\c$ /user:PC2\administrator ""
net use X: \\PC2\c$ /user:PC2\administrator ""
工作得很好
您可能需要运行:
net use X: \\PC2\c$ /delete
第一