11.12.2012 Views

PC-Installation: Unattended-Setup Windows NT ... - Dr. Hubert Feyrer

PC-Installation: Unattended-Setup Windows NT ... - Dr. Hubert Feyrer

PC-Installation: Unattended-Setup Windows NT ... - Dr. Hubert Feyrer

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3.1.5 Dateien & Verzeichnisse für die Bootfloppies 39<br />

$cmd="net user $login $password /add"<br />

." /active:YES"<br />

." /comment:\"$fullname\""<br />

." /fullname:\"$fullname\""<br />

." /profilepath:$PROFILESDIR2\\$login"<br />

." /scriptpath:UserLogon.cmd"<br />

." /usercomment:\"$fullname\"";<br />

$rc=system($cmd); print "net user /add rc=$rc\n";<br />

$rc=system("mkdir $login"); print "mkdir rc=$rc\n";<br />

$rc=system("cacls $login /e /p Jeder:R"); print "cacls1 rc=$rc\n";<br />

$rc=system("cacls $login /e /p Administrator:F"); print "cacls2<br />

rc=$rc\n";<br />

$rc=system("cacls $login /e /p Administratoren:F"); print "cacls2<br />

rc=$rc\n";<br />

$rc=system("cacls $login /e /p System:F"); print "cacls2 rc=$rc\n";<br />

$rc=system("cacls $login /e /p $login:F"); print "cacls2 rc=$rc\n";<br />

system("copy $DEFAULTUSER\\<strong>NT</strong>USER.man $login\\ntuser.man");<br />

$rc=system("cacls $login\\ntuser.man /e /p Administrator:F"); print<br />

"cacls2 rc=$rc\n";<br />

$rc=system("cacls $login\\ntuser.man /e /p Administratoren:F"); print<br />

"cacls2 rc=$rc\n";<br />

$rc=system("cacls $login\\ntuser.man /e /p System:F"); print "cacls2<br />

rc=$rc\n";<br />

$rc=system("cacls $login\\ntuser.man /e /p $login:F"); print "cacls2<br />

rc=$rc\n";<br />

$rc=system("cacls $login"); print "cacls rc=$rc\n";<br />

__END__<br />

:endofperl<br />

3.1.5.21 deluser.bat<br />

@rem = '--*-Perl-*--<br />

@echo off<br />

perl -x -S %0 %1 %2 %3 %4 %5 %6 %7 %8 %9<br />

goto endofperl<br />

@rem ';<br />

#!/usr/local/bin/perl -w<br />

#line 8<br />

$PROFILESDIR='C:/winnt/Profiles';<br />

#$PROFILESDIR='y:/winnt/profiles';<br />

#$PROFILESDIR='c:\hf\adduser';<br />

#$PROFILESDIR2='\\bt-nt-server\profiles';<br />

#$PROFILESDIR2=$PROFILESDIR;<br />

#$DEFAULTUSER="Kurs";<br />

if ($#ARGV < 0) {<br />

die "Usage: $0 Login\n";<br />

}<br />

$login=shift(@ARGV);<br />

chdir($PROFILESDIR);<br />

(c) 1998 <strong>Hubert</strong> <strong>Feyrer</strong> Stand: 30. September 1998

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!