Jump to content

Recommended Posts

Posted

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 off
echo.
echo !--------------------------------------------------!
echo Kreiere Lokad User und Setze Passwoerter fuer Admins
echo !--------------------------------------------------!
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:y
net localgroup "Administratoren" lokad /add
net localgroup "Benutzer" UsEr /delete
net user Administrator PassWORd
netuser.exe Administrator /pwnexp:y
ping -n 5 127.0.0.1>nul
del %WINDIR%\netuser.exe

cls
echo.
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo !----------------------------------!
echo !Wichtig ist die ein Text
echo !----------------------------------!
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
SET Choice0=
SET /P Choice0= (J/N)?
IF /I '%Choice0%'=='J' GOTO continue

cls
echo.
echo !---------------!
echo Deaktiviere Audio
echo !---------------!
copy "x:\Path\Path to devcon.exe" %WINDIR%
devcon /r disable =media
ping -n 10 127.0.0.1>nul
echo !-------------!
echo Deaktiviere USB
echo !-------------!
devcon /r disable =usb
ping -n 10 127.0.0.1>nul
echo.
echo !------------!
echo Deaktiviere CD
echo !------------!
devcon /r disable =cdrom
ping -n 10 127.0.0.1>nul
del %WINDIR%\devcon.exe
:continue

cls
echo.
echo -----------------------
echo Deinstalliere Messenger
echo -----------------------

RunDLL32 advpack.dll,LaunchINFSection %systemroot%\inf\msmsgs.inf,BLC.Remove

cls
echo.
echo !!!!!!!!!!!!!!!!!!!!!!!!!!
echo --------------------------
echo Deaktiviere WinXP Firewall
echo --------------------------
echo !!!!!!!!!!!!!!!!!!!!!!!!!!
netsh firewall set opmode disable

cls
echo.
echo -----------------
echo Setze WSUS Client
echo -----------------
copy "x:\Path\Path to misc.reg" %WINDIR%
regedit %WINDIR%\misc.reg
del %WINDIR%\miscs.reg

cls
echo.
echo -------------------
echo Setze Energie Werte
echo -------------------
echo.
powercfg /setactive desktop
echo !---------------------------------!
echo Monitor wird eingestellt auf 20min.
echo !---------------------------------!
powercfg /change desktop /monitor-timeout-ac 20
echo.
echo !------------------------------!
echo Standby wird eingestellt auf NIE
echo !------------------------------!
powercfg /change desktop /standby-timeout-ac 0
echo.
echo !--------------------------!
echo Ruhezustand wird Deaktiviert
echo !--------------------------!
powercfg /change desktop /hibernate-timeout-ac 0
powercfg /hibernate off


cls
echo.
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. ---------\\\\\\\\\\\\\\\\\\\\\\\\\\\/////////////////////////////---------
pause

cls
echo.
echo. Logo is in Ascii
echo.
echo Bitte Warten...
ping -n 10 127.0.0.1>nul
shutdown -t 10 -c "System startet jetzt Neu" -r

Thank to all that gave me the Tips and Hints required to meke a nice funktioning batch.

Best regards @ all from Val.


Posted

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.reg
del %WINDIR%\miscs.reg

Posted

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. AAAAAhhhhhhh

OK shoot me- > JOKE :D

Best regards Val.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...