To limit the number of users of a shared resource

Using Shared Folders

1.

Open Computer Management (Local) 

2.

In the console tree, click Shares.

Where?

Computer Management > System Tools > Shared Folders > Shares

3.

In the details pane, right-click the shared folder or drive for which you want to limit the number of users, and then click Properties.

4.

Under User Limit, click Maximum Allowed, and then click OK, or click Allow.

If you click Allow, type or select a maximum number of users in the Users box, and then click OK.

 Note

To open Computer Management, click Start, and then click Control Panel. Click Performance and Maintenance, click Administrative Tools, and then double-click Computer Management

The maximum number of users allowed is limited by software licensing limits. Software licensing limits preempt any limits that you set in Shared Folders.

You must be a member of the Administrators or Power Users group to use Shared Folders.

Using Windows Explorer

1.

Open Windows Explorer, and then locate the shared folder or drive for which you want to limit the number of users.

2.

Right-click the shared folder or drive, and then click Sharing and Security.

3.

Under User limit, click Maximum allowed, and then click OK, or click Allow.

If you click Allow, type or select a maximum number of users in the Users box, and then click OK.

 Note

To open Windows Explorer, click Start, point to All Programs, point to Accessories, and then click Windows Explorer

The maximum number of users allowed is limited by software licensing limits. Software licensing limits preempt any limits that you set in Shared Folders.

You cannot use Windows Explorer to complete this task on computers that are running Windows XP Home Edition or on computers that are running Windows XP Professional that are not joined to a domain.

Using a command line 

1.

Open Command Prompt

2.

Type:

net share sharename /users:number

ValueDescription

net share

Creates, deletes, or displays shared resources.

sharename

The network name of the shared resource and its absolute path.

/users:number

Sets the maximum number of users who can simultaneously access the shared resource.

 Note

To open command prompt, click Start, point to All Programs, point to Accessories, and then click Command Prompt

To view the complete syntax for this command, at the Command Prompt, type:

net help share

 Note

You can use Shared Folders to manage shared resources on both local and remote computers. Windows Explorer and the command line allow you to manage shared resources on your local computer only.

Software licensing limits preempt any limits that you set in Shared Folders.

Shared Folders overview

Net share

Send a console message to all connected computers

Send a console message to a computer that you are managing



© 2014 Microsoft Corporation. All rights reserved. Contact Us |Terms of Use |Trademarks |Privacy & Cookies