Windows Powershell – Win32_Share中的“MaximumAllowed”参数创build方法

任何想法是什么'MaximumAllowed'参数应该设置为在Windows中的共享文件夹属性上勾选“最大允许”单选button? 我知道这将是相同的说有100个并发用户,但我很想知道这是否是可以实现的。 提前致谢。 汤姆

uint32创build([in]stringPath,[in]stringName,[in] uint32 Type,[in] uint32 MaximumAllowed,[in]string描述,[in]string密码,[in] Win32_SecurityDescriptor Access);

根据Windows SDK 6.1,在Lmshare.h头文件中定义的SHARE_INFO_2结构:

shi2_max_uses Specifies a DWORD value that indicates the maximum number of concurrent connections that the shared resource can accommodate. The number of connections is unlimited if the value specified in this member is –1.