File Owner, Group and Permissions for Win2000
Paul LaMadeleine
plamadeleine at lightbridge.com
Tue Apr 2 03:27:50 EST 2002
We use this perl function. All we need to do is create an array "UserInfo"
with three parts:
1) username
2) group
3) comment
4) Full Name/Real Name
Hope this was what you were looking for.
Paul
>sub
>AddUser
>
>{
>
> if (`net user $UserInfo[1] $UserInfo[4] /domain /add
> /comment:\"$UserInfo[3]\" /expires:never /passwordchg:no /passwordreq:yes
> /fullname:\
>"$UserInfo[2]\"`)
>
> {
>
> return
> 1;
> }
>
> else
>
> {
>
> return
> 0;
> }
>
>}
>
>
>It's potentially a lot of work. Anybody know of a way to script user
>creation in Windoze?
>
>Tim Conway
More information about the rsync
mailing list