Re: How can I change "Allow this number of users" value for user share

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On Fri, 27 Jan 2006 05:35:02 -0800, "paoutdoorsman" <paoutdoorsman@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

>Hello all, On a Windows 2003 file server I have a user folder with a share
>for each user inside. This space maps as drive T: when users authenticate to
>the network. I currently have all shares configured to allow 1 user to
>connect, but would like to increase this number for each share in the user
>folder - I have about 1100. A script to do this task would be absolutely
>wonderful. Anybody already have something built to do this or can you point
>me to something useful? Thanks in advance! Have a great day!

See tip 6353 » RMTShare.exe is in the public domain.
in the 'Tips & Tricks' at http://www.jsifaq.com

Assumeing the share name is the \\ServerName\UserName and the parent folder is C:\Users and you want the number to be 10,
run the following batch from your workstation. UserIds are assumed to NOT contain spaces.

@echo off
setlocal
set server=\\ServerName
set fold=\\ServerName\C$\Users
for /f "Tokens=*" %%a in ('dir /b /ad "%fold%') do (
RMTSHARE %server%\%%a /USERS:10
)
endlocal


Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
.



Relevant Pages

  • Re: File Sharing XP Pro and WIN98SE
    ... You really should look into using XP Pro or Windows 2003 ... file server and configure share/NTFS folder permissions to manage access to ... such as folder auditing. ... yours to see if that solves your problem if you believe it may be SP2 ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Macintosh Group Folder in AD
    ... > users to shared a folder on its PC rather than using a File server? ... If your Macs are bound the AD then they may also take advantage of the ... it's only storing file path information for Windows using UNC pathing. ...
    (microsoft.public.win2000.macintosh)
  • Re: [Fedora] Re: Outside access
    ... specific folder on our (Windows) file server (which in and by itself is ... our network, but does require me to do a bit more legwork. ...
    (Fedora)
  • Re: User Folder Disappeared
    ... In our Windows 2003 File Server, one of our user's folder ... I restored data ...
    (microsoft.public.windows.server.general)
  • Re: Why do we have to put up with this rubbish.
    ... > Windows 2000/3 makes is a truly abysmal file server. ... > gleaned only by laboriously examining each folder in turn. ... In NetWare this ...
    (microsoft.public.win2000.general)