The simple answer is to use the net user
addnew.bat
net user %1 password /add /homedir:\
net localgroup "
repeat for local groups
net group "
repeat for global groups
xcopy \
nltest /sync /server:BDCname
repeat for all BDCs you might be authenticating to
sleep 20
cacls \
remove the everyone permission to the directory
cacls \
cacls \
The nltest commands are needed as otherwise it fails to do the cacls command, since the user account does not exist on the BDC to which you are authenticating as only the PDC has been updated.
'FAQ Topics > User Configuration' 카테고리의 다른 글
| 내 문서 폴더와 My Pictures 폴더를 이동시키는 방법은? (0) | 2000/12/28 |
|---|---|
| 프로파일을 저장하는 디렉토리를 변경하는 방법은? (0) | 2000/12/27 |
| 'My Documents'와 'My Pictures' 폴더를 다른 곳으로 옮기는 방법은 ? (0) | 2000/11/15 |
| 윈도우 2000 로그인시 '시스템의 로컬계정에 따라 대화형으로 로그온 할 수 없습니다' 뜨는 이유는 ? (1) | 2000/06/14 |
| How can I add a user from the command line? (0) | 2000/05/05 |
| 사용자 계정과 패스워드 백업 방법에 대해서 (0) | 2000/03/23 |



댓글을 달아 주세요