如何修改windows CIFS/SMB共享的最大访问连接

背景

最近一台 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

扩展阅读

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值