Jobs tagged windows server hosting setup

Need Seller All Round The World

Need seller to sell web hosting and windows key all round the world

See also: , , , , , , , , , , , ,

Need Batch File To Setup Ftp Users Windows Server

We setup user groups and have a batch file that sets up users with default virtual directories on our server. The user is setup with a directory of the same name and the user if defaulted to that location when they login so they will be uploading to the correct location (e.g. jim logs in and is automatically in the jim directory). We need a second batch file that completes the same exact process but allows us to name a different default directory (not one that is the same as the user). Eg. jims assistant, sam, logs in and is defaulted to the jim directory so all files are uploaded to the jim directory NOT the sam directory.

Here is the current batch file code:
@echo off
set /p username=Please input the new users username:
set /p group=Which group should this user belong to? (uploaddownload or userdirectoryonly):
set /p password=What should their password be? (this is case sensitive!):
mkdir c:webserverftproot%username%
net user %username% %password% /add
net localgroup Users %username% /delete
net localgroup %group% %username% /add
xcacls C:webserverftproot%username% /G %username%:RWC /E
iisftpdr /create "FTP_Site" %username% C:webserverftproot%username%

We need a second one that can be run after this one to add users to each directory. Those users should be defaulted into the directory we enter and be added to the group we enter for appropriate permissions.

See also: , , , , , , , , , , , , , , , ,