Limiting the number of clients on a DFS target/CIFS server

Anonymous
2025-01-06T09:09:35+00:00

Hello,

is there a way to limit the number of users of a target in DFS, or can the clients of a Windows CIFS server be limited?

Thank you and Happy New Year

Windows Server Remote and virtual desktops Session connectivity

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2025-01-06T14:49:58+00:00

    Hello,

    DFS itself does not have direct settings to limit the number of users targeted, but you can control access indirectly by configuring the permissions of the DFS namespace:

    In DFS Manager, right-click on the DFS namespace or folder destination and select Properties.

    In the Security tab, you can set who can access the namespace or target, and control the number of users by restricting access.

    For CIFS/SMB shares, you can use the "net share" command to limit the number of users accessing the shared resources at the same time:

    Open a command prompt with administrator privileges and use the following command to set the maximum number of users to share:

      ```bash

      net share sharename /users:number

      ```

    "sharename" is the name of your share, and "number" is the maximum number of users you want to allow.

    If you wish to remove the restriction, you can use the following command:

     ```bash

      net share sharename /unlimited

      ```

    With these methods, you can effectively control the number of user visits to DFS targets and CIFS servers.

    I hope this information helps.

    Best regards,

    Jingjing Wu

    0 comments No comments