Re: How can I change "Allow this number of users" value for user share
- From: Jerold Schulman <Jerry@xxxxxxxxxx>
- Date: Fri, 27 Jan 2006 09:21:19 -0500
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
.
- Prev by Date: Re: problems with formatting get-acl output
- Next by Date: Re: Scripting directory/file security in IIS Manager?
- Previous by thread: Re: problems with formatting get-acl output
- Next by thread: Wired error of get-credential for non-privilege user
- Index(es):
Relevant Pages
|