运行CMD,确定。
net use //ComputerName(or IP) Password /user:username.
//*win2k自动验证服务器密码 (转贴)
net use //servername password /user:username
保存为$system$/system32/GroupPolicy/User/Scripts/Logon/abc.bat
gpedit.msc 用户配置,Windows设置,脚本,(登陆/注销),登录,选中abc.bat
例如某服务器名:server 帐号:admin 密码:pass
net use //server pass /user:admin
net use (windows 解释)
NET USE [devicename | *] [//computername/sharename[/volume] [password | *]]
[/USER:[domainname/]username]
[/USER:[dotted domain name/]username]
[/USER:[username@dotted domain name]
[[/DELETE] | [/PERSISTENT:{YES | NO}]]
NET USE {devicename | *} [password | *] /HOME
NET USE [/PERSISTENT:{YES | NO}]