Valvaris Posted November 5, 2007 Author Share Posted November 5, 2007 Here is my Finished Script,like promised for all here is the Batch. The only thing that was missing was the MSN Explorer and the other Progs.@echo offecho.echo !--------------------------------------------------!echo Kreiere Lokad User und Setze Passwoerter fuer Adminsecho !--------------------------------------------------!echo.copy "x:\Path\Path of Netuser.exe" %WINDIR%net user UsEr PaSsWORd! /add /active:yes /expires:never /passwordchg:no /fullname:"UsEr" /comment:"UsEr"netuser.exe UsEr /pwnexp:ynet localgroup "Administratoren" lokad /addnet localgroup "Benutzer" UsEr /deletenet user Administrator PassWORdnetuser.exe Administrator /pwnexp:yping -n 5 127.0.0.1>nuldel %WINDIR%\netuser.execlsecho.echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!echo !----------------------------------!echo !Wichtig ist die ein Textecho !----------------------------------!echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!SET Choice0=SET /P Choice0= (J/N)?IF /I '%Choice0%'=='J' GOTO continueclsecho.echo !---------------!echo Deaktiviere Audioecho !---------------!copy "x:\Path\Path to devcon.exe" %WINDIR%devcon /r disable =mediaping -n 10 127.0.0.1>nulecho !-------------!echo Deaktiviere USBecho !-------------!devcon /r disable =usbping -n 10 127.0.0.1>nulecho.echo !------------!echo Deaktiviere CDecho !------------!devcon /r disable =cdromping -n 10 127.0.0.1>nuldel %WINDIR%\devcon.exe:continueclsecho.echo -----------------------echo Deinstalliere Messengerecho -----------------------RunDLL32 advpack.dll,LaunchINFSection %systemroot%\inf\msmsgs.inf,BLC.Removeclsecho.echo !!!!!!!!!!!!!!!!!!!!!!!!!!echo --------------------------echo Deaktiviere WinXP Firewallecho --------------------------echo !!!!!!!!!!!!!!!!!!!!!!!!!!netsh firewall set opmode disableclsecho.echo -----------------echo Setze WSUS Clientecho -----------------copy "x:\Path\Path to misc.reg" %WINDIR%regedit %WINDIR%\misc.reg del %WINDIR%\miscs.regclsecho.echo -------------------echo Setze Energie Werteecho -------------------echo.powercfg /setactive desktopecho !---------------------------------!echo Monitor wird eingestellt auf 20min.echo !---------------------------------!powercfg /change desktop /monitor-timeout-ac 20echo.echo !------------------------------!echo Standby wird eingestellt auf NIEecho !------------------------------!powercfg /change desktop /standby-timeout-ac 0echo.echo !--------------------------!echo Ruhezustand wird Deaktiviertecho !--------------------------!powercfg /change desktop /hibernate-timeout-ac 0powercfg /hibernate offclsecho.echo.echo. ---------\\\\\\\\\\\\\\\\\\\\\\\\\\\/////////////////////////////---------echo. ---------# +---------------------------+ #---------echo. ---------# !PC ist Eingestellt fuer Text! #---------echo. ---------# +---------------------------+ #---------echo. ---------///////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\---------echo. ---------Der PC wird nach dem Bestaetigen Neustarten fuer weitere---------echo. ---------------------System relevante installationen----------------------echo. ---------\\\\\\\\\\\\\\\\\\\\\\\\\\\/////////////////////////////---------pauseclsecho.echo. Logo is in Asciiecho.echo Bitte Warten...ping -n 10 127.0.0.1>nulshutdown -t 10 -c "System startet jetzt Neu" -rThank to all that gave me the Tips and Hints required to meke a nice funktioning batch. Best regards @ all from Val. Link to comment Share on other sites More sharing options...
Yzöwl Posted November 5, 2007 Share Posted November 5, 2007 You fixed your %choice%, but why are you're still copying, using, and deleting?copy "x:\Path\Path of Netuser.exe" %WINDIR%<snip>net user <snip>del %WINDIR%\netuser.exe<snip>copy "x:\Path\Path to devcon.exe" %WINDIR%devcon <snip>del %WINDIR%\devcon.exe<snip>copy "x:\Path\Path to misc.reg" %WINDIR%regedit %WINDIR%\misc.regdel %WINDIR%\miscs.reg Link to comment Share on other sites More sharing options...
Valvaris Posted November 6, 2007 Author Share Posted November 6, 2007 thanks now ive noticed what a fool i am. ****........ I was thinking on executing it on a local machine this would be necessary. Nope i was wrong.... the files are on a central server were all the clients have access. AAAAAhhhhhhhOK shoot me- > JOKE Best regards Val. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now