背景
最近一台 Windows 2008 的服务器访问的时候,提示人数不能再多了,访问失败。
解决方法
输入 net help share 查看其帮助信息
/USERS:number Sets the maximum number of users who can
simultaneously access the shared resource.
/UNLIMITED Specifies an unlimited number of users can
simultaneously access the shared resource
第一个 users 是设置同时访问最大用户数,下面是对 sharename 的共享设置同时访问用户为 200.
net share sharename /users:200
第二个 unlimited 是设置同时访问最大用户数不受限制,下面是对 sharename 的共享设置.
net share sharename /unlimited
然后可以用 net share sharename,查看共享信息。
Share name sharename
Path H:\sharename
Remark
Maximum users No limit