Valvaris Posted October 22, 2007 Share Posted October 22, 2007 hi @ all,ive got a question about Batch Scripting. Is it possible to write a batch file that does the following:Create Admin (2) User Set Password - Set Admin Password for existing Admin (1) UserDisable Offline FilesUninstall MSNExplorerUninstall MessengerUninstall Outlook ExpressUninstall GamesDisable Audio DiviceDisable CD DriveDisable USB ProtsSet Networkcard to 100Full DuplexDisable Windows FirewallSet Regkey for WSUSRestart PC-------------------------------------------------100000000000000000000000Thanks in advance.I dont want a complete batch file only hints on creating one so i can write it my self. Then nothing is better then learning by doing.Best regards ValvarisP.S. is Powershell better??? Link to comment Share on other sites More sharing options...
Arie Posted October 22, 2007 Share Posted October 22, 2007 You can do quite a lot of these things via a batch file, maybe even all. For some you will need to import registry keys from your batch file. Hints? What have you done thus far yourself? Link to comment Share on other sites More sharing options...
gosh Posted October 22, 2007 Share Posted October 22, 2007 ya really we're not here to write your batch files for you-gosh Link to comment Share on other sites More sharing options...
Valvaris Posted October 23, 2007 Author Share Posted October 23, 2007 Hello @ all,thanks for the fast reply. I found out how to create and set a passwort for the Admin Accounts via Batch. Found it at the Unattended area.I never wanted that someone wrote me the script. Im sorry for this missunderstanding. But the only thing i wanted are the commands on how to uninstall windows apps like MSN Explorer and MSN Messenger via Batch. I also found out how to port Regkeys via Batch also found in the Unatended area. Like mentioned above. I dont know how to uninstall Windows Imbeded apps, Switch Offline files to deaktivate, Set Networkkard to Fullduplex 100MB, Energie settings like monitor shutdown after 20min. and Standby at none.Im ok with batchscripting but i realy dont know how to approch this. Looked at google and didnt find anything. It dosent need to be done for use with copy paste. But a little of examples on how the attributes work and what they do. So I can edit these my self and learn in the proccess. Thanks again @ all in advance.Best regards Val. Link to comment Share on other sites More sharing options...
jaclaz Posted October 23, 2007 Share Posted October 23, 2007 Each app has it's own ways, you will never find a "general guide".As an example:Uninstall Outlook ExpressLooky here:http://koti.mbnet.fi/digitale/throwoutoe/jaclaz Link to comment Share on other sites More sharing options...
Arie Posted October 23, 2007 Share Posted October 23, 2007 You can delete Windows Messenger as follows:rundll32 advpack.dll,LaunchINFSection %SystemRoot%\inf\msmsgs.inf,BLC.RemoveAs for quite some of the other things you want, install a freeware Registry monitor such as RegShot, make the changes you want on a test system and monitor the Registry to see which keys are changed. Import those via your batch script and you're done. Link to comment Share on other sites More sharing options...
Valvaris Posted October 23, 2007 Author Share Posted October 23, 2007 (edited) Thanks for the advice m8s,Here is the little that ive scripted.@echo offecho Kreiere Lokad User und Setze Passwoerter fuer Adminsnet user UsEr password /add /fullname:"lokad" /comment:"lokad"net localgroup Administratoren UsEr /addnet accounts /maxpwage:unlimitednet user UsEr NeWPassWORDnet accounts /maxpwage:unlimitedecho Deinstalliere MSN Explorer - Messenger und SpieleRunDLL32 advpack.dll, launchINFSection %windir%\inf\msmsgs.inf, BLC.RemoveRunDLL32 advpack.dll, launchINFSection %windir%\inf\games.inf, BLC.RemoveRunDLL32 advpack.dll, launchINFSection %windir%\inf\msmqocm.inf, BLC.Removeecho Deinstalliere Outlook Expressreg delete HKEY_LOCAL_MACHINE\Software\Microsoft\Outlook Expressreg delete HKEY_LOCAL_MACHINE\Software\Microsoft\WABreg delete HKEY_CURRENT_USER\Identitiesreg delete HKEY_CURRENT_USER\Software\Microsoft\Outlook Expressreg delete HKEY_CURRENT_USER\Software\Microsoft\WABreg delete HKEY_LOCAL_MACHINE \Software\Microsoft\Active Setup\Installed Components\{44BBA840-CC51-11CF-AAFA-00AA00B6015C}reg delete HKEY_LOCAL_MACHINE \Software\Microsoft\Active Setup\Installed Components\{7790769C-0471-11D2-AF11-00C04FA35D02}erase Inetcomm.dllerase Msoeacct.dllerase Msoert2.dllerase Msoe.dllerase Msoeres.dllerase Msimn.exeerase Oeimport.dllerase Oemiglib.dllerase Oemig50.exeerase Setup50.exeerase Wab.exeerase Wabfind.dllerase Wabimp.dllerase Wabmig.exeerase Csapi3t1.dllerase Directdb.dllerase Wab32.dllerase Wab32res.dllecho Setze WSUS ClientRegedit /S "\\Path\Path\WSUS_client.reg"clsecho # +---------------------------+ #echo # !PC ist Eingestellt fuerXXX! #echo # +---------------------------+ #echo ///////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\echo Der PC wird nach dem Bestaetigen Neustarten fuer weitereecho ------------System relevante installationen-------------echo \\\\\\\\\\\\\\\\\\\\\\\\\\\/////////////////////////////pauseSHUTDOWN /r /t:15 /d P:2:18Now that realy bugs me is the Energie settings and the Offline files grrrrrrrrrrrrr. Ill post any progress here Best regards Val. Edited October 23, 2007 by Valvaris Link to comment Share on other sites More sharing options...
[deXter] Posted October 23, 2007 Share Posted October 23, 2007 (edited) You might want to modify your script a bit:reg delete "HKEY_LOCAL_MACHINE\Software\Microsoft\Outlook Express" /freg delete "HKEY_LOCAL_MACHINE\Software\Microsoft\WAB" /freg delete "HKEY_CURRENT_USER\Identities" /freg delete "HKEY_CURRENT_USER\Software\Microsoft\Outlook Express" /freg delete "HKEY_CURRENT_USER\Software\Microsoft\WAB" /freg delete "HKEY_LOCAL_MACHINE\Software\Microsoft\Active Setup\Installed Components\{44BBA840-CC51-11CF-AAFA-00AA00B6015C}" /freg delete "HKEY_LOCAL_MACHINE\Software\Microsoft\Active Setup\Installed Components\{7790769C-0471-11D2-AF11-00C04FA35D02}" /f-> Whenever there are spaces in the path, don't forget to use quotes ("")-> Don't forget to add a "/f" at the end, otherwise reg.exe will keep prompting you for confirmation.As jaclaz already mentioned earlier, go to this site http://koti.mbnet.fi/digitale/throwoutoe/ for uninstalling OE. They already have a comprehensive (better) .bat file for removing OE. Edited October 23, 2007 by [deXter] Link to comment Share on other sites More sharing options...
DL. Posted October 24, 2007 Share Posted October 24, 2007 Use the powercfg command to set the energy options.Check out the threads on registry tweaks to find some more useful info.Here's a thread on disabling "Offline Files".This tool may also be useful to you. Link to comment Share on other sites More sharing options...
PC_LOAD_LETTER Posted October 24, 2007 Share Posted October 24, 2007 (edited) Wow thats a tall order -Im not into looking up commands for you but i will give you a few snippets from my pen drive to make you and your users lifes easierOk first off, great try on the add user commands but if you use that you'll have issues in 30-60 days when the password expires because "/expires:never" refers to the account NOT the password for that account(Im told if you have AD this isnt an issue but it has been an issue for me) use the attached netuser.exe and the following bat file to prevent the password from expiring (and also disable the administrator and guest accounts)@echo offecho creating Staff user...net user Staff /add /active:yes /expires:never /passwordchg:no /fullname:"Staff" /comment:"Staff login"netuser.exe staff /pwnexp:yecho --------------------echo adding staff to Power Users group...net localgroup "Power Users" Staff /addecho -------------------------------------echo adding staff to Administrators group...net localgroup "Administrators" Staff /addecho -------------------------------------echo Disabling Administrator Account...net user Administrator /active:no /expires:never /passwordchg:noecho --------------------echo Disabling Guest Account...net user Guest /active:no /expires:never /passwordchg:noecho --------------------echo donepausethe next section of code will uninstall MSN messanger, disable Win Firewall/ICS, and also disable security center so it wont nag your users about "no firewall is turned on" or "your antivirus is 12 minutes out of date"@echo offecho Uninstalling MSN/Windows Messenger... (choose no if asked to reboot)RunDll32 advpack.dll,LaunchINFSection %windir%\inf\msmsgs.inf,BLC.Remove echo ------------------------------echo Stopping "Windows Firewall/Internet Connection Sharing (ICS)" sc stop SharedAccess > nul net start | find "Windows Firewall/Internet Connection Sharing (ICS)" > nul if errorlevel 1 echo "Windows Firewall/Internet Connection Sharing (ICS)" was stopped successfullyecho Disabling "Windows Firewall/Internet Connection Sharing (ICS)" sc config SharedAccess start= disabled > nulecho ------------------------------echo Stopping "Security Center" @sc stop wscsvc > nul net start | find "Security Center" > nul if errorlevel 1 echo "Security Center" was stopped successfullyecho Disabling "Security Center" @sc config wscsvc start= disabled > nulecho ------------------------------echo Press any key to close . . .pause > nulHeres a snippet that kills the messenger service that lets users send messages with "net send" (we had a problem with it so its gone now)echo ------------------------------echo Stopping "Messenger" @sc stop Messenger > nul net start | find "Messenger" > nul if errorlevel 1 echo "Messenger" was stopped successfullyecho Disabling "Messenger" @sc config Messenger start= disabled > nulecho ------------------------------echo Press any key to close . . .pause > nulthe files in this zip will let your define a set of workgroups to choose from or specify a workgroupSet_Workgroup_Name.zip (zipped cause MSFN forums think .exe attachment=ok but .vbs attachment=bad )here is the script i use for getting those annoying miscellaneous item that annoy the crap out of me when im settin up a new machine: (it copies to WINDIR temporarily because it easier than reliably finding the current path)Windows Registry Editor Version 5.00[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]"Search Bar"="http://www.google.com/ie""Start Page"="http://www.google.com"[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Tour]"RunCount"=dword:00000000[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MessengerService]"PassportBalloon"="0"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList]"IT"=dword:00000000What it does is set IEs searchengine and homepage to google (customize as you see fit)Disable the windows XP tourDisable the Add your passport to XP popup ballon (redundant(i think) if your uninstalling messenger but what the hell)hides the user named IT from being displayed on the welcome screen or in the users control panel (customize as you see fit) Edited October 24, 2007 by Yzöwl Reason for edit: code tags replaced to improve page rendering Link to comment Share on other sites More sharing options...
PC_LOAD_LETTER Posted October 24, 2007 Share Posted October 24, 2007 also this site shuld be helpfull for disabling/enabling thingshttp://www.intelliadmin.com/Downloads.htmhttp://www.intelliadmin.com/CDRomDisabler_Free.exe (CD ROM disabler)http://www.intelliadmin.com/DisableUSB_Free.exe (USB Drive Disabler -USB mice/Keyboards/printers still work)http://www.intelliadmin.com/FloppyDisabler_Free.exe (Floppy Drive disabler)but nothing to kill windows audio -could prolly just disable the sound card in devman or stop/disable the windows audio service Link to comment Share on other sites More sharing options...
Valvaris Posted October 24, 2007 Author Share Posted October 24, 2007 WOOOOW thats allot of info,thank you allot GEEK for giving me hints and recomandations to optimize the script in a new level. That means ive done allmost everything wrong lolI will post the optimized version ASAP as i can between working hours. This Community rocks. Best regards Val.P.S.: Slime attack -----> THANKS-a-Mil Link to comment Share on other sites More sharing options...
Valvaris Posted October 24, 2007 Author Share Posted October 24, 2007 Hi @ all,here is the modified version of the Batch file. :)@echo offecho.echo !--------------------------------------------------!echo Kreiere Lokad User und Setze Passwoerter fuer Adminsecho !--------------------------------------------------!echo.copy netuser.exe %WINDIR%net user UsEr PaSSworD /add /active:yes /expires:never /passwordchg:no /fullname:"lokad" /comment:"lokad"netuser.exe UsEr /pwnexp:ynet localgroup "Administratoren" lokad /addnet user Administrator NeWPassWORdnetuser.exe Administrator /pwnexp:ydel %WINDIR%\netuser.execlsecho.echo -------------------------------------------------echo Deinstalliere MSN Explorer - Messenger und Spieleecho -------------------------------------------------RunDLL32 advpack.dll, launchINFSection %windir%\inf\msmsgs.inf, BLC.RemoveRunDLL32 advpack.dll, launchINFSection %windir%\inf\games.inf, BLC.RemoveRunDLL32 advpack.dll, launchINFSection %windir%\inf\msmqocm.inf, BLC.Removeclsecho !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!echo ---Deinstalliere Outlook Express-----echo -------------------------------------echo WICHTIG: Ist dies ein Verwaltungs PC?echo -------------------------------------set choice0=set /P choice0= Antwort (J/N)?set /I '%choice%'=='N' GOTO end echo. ---------------------------------------------------------------echo. Deleting Identities (accounts, address book and email messages)echo. ---------------------------------------------------------------echo. User: %Username%echo. -Deleting Identities...RD /S /Q "%userprofile%\Application Data\Identities"echo. -Deleting Identities (Local Settings)...RD /S /Q "%userprofile%\Local Settings\Application Data\Identities"echo. -Deleting Address Book...RD /S /Q "%userprofile%\Application Data\Microsoft\Address Book"echo.echo. -Deleting registry entriesREG DELETE "HKCU\Identities" /fREG DELETE "HKCU\Software\Microsoft\Outlook Express" /fREG DELETE "HKCU\Software\Microsoft\WAB" /fREG DELETE "HKCU\AppEvents\EventLabels\MailBeep" /f REG DELETE "HKCU\AppEvents\Schemes\Apps\.Default\MailBeep" /f FOR /F "tokens=2* delims= " %%A IN ('REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion" /v CommonFilesDir') DO SET CommonFilesDir=%%BFOR /F "tokens=2* delims= " %%A IN ('REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion" /v ProgramFilesDir') DO SET ProgramFilesDir=%%BFOR /F "tokens=2* delims= " %%A IN ('REG QUERY "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Programs') DO SET StartMenuPrograms=%%Bclsecho. -------------------------------echo. Uninstalling Outlook Express...echo. -------------------------------echo. Uninstalling OE program files...echo. DEL "%systemroot%\system32\dllcache\acctres.dll"DEL "%systemroot%\system32\dllcache\directdb.dll" DEL "%systemroot%\system32\dllcache\inetcomm.dll"DEL "%systemroot%\system32\dllcache\inetcomm.old"DEL "%systemroot%\system32\dllcache\inetcomm.old"DEL "%systemroot%\system32\dllcache\inetres.dll" DEL "%systemroot%\system32\dllcache\msident.dll" DEL "%systemroot%\system32\dllcache\msimn.exe" DEL "%systemroot%\system32\dllcache\msoe.dll"DEL "%systemroot%\system32\dllcache\msoe.old" DEL "%systemroot%\system32\dllcache\msoeacct.dll"DEL "%systemroot%\system32\dllcache\msoeacct.old"DEL "%systemroot%\system32\dllcache\msoeres.dll"DEL "%systemroot%\system32\dllcache\msoeres.old" DEL "%systemroot%\system32\dllcache\msoert2.dll"DEL "%systemroot%\system32\dllcache\msoert2.old"DEL "%systemroot%\system32\dllcache\oeimport.dll"DEL "%systemroot%\system32\dllcache\oeimport.old"DEL "%systemroot%\system32\dllcache\oemig50.exe"DEL "%systemroot%\system32\dllcache\oemig50.old"DEL "%systemroot%\system32\dllcache\oemiglib.dll"DEL "%systemroot%\system32\dllcache\oemiglib.old"DEL "%systemroot%\system32\dllcache\setup50.exe"DEL "%systemroot%\system32\dllcache\setup50.old"DEL "%systemroot%\system32\dllcache\Q330994.inf"DEL "%systemroot%\system32\dllcache\wab.exe"DEL "%systemroot%\system32\dllcache\wab.old"DEL "%systemroot%\system32\dllcache\wab32.dll"DEL "%systemroot%\system32\dllcache\wab32.old"DEL "%systemroot%\system32\dllcache\wab32res.dll"DEL "%systemroot%\system32\dllcache\wab32res.old"DEL "%systemroot%\system32\dllcache\wabfind.dll"DEL "%systemroot%\system32\dllcache\wabfind.old"DEL "%systemroot%\system32\dllcache\wabimp.dll"DEL "%systemroot%\system32\dllcache\wabimp.old"DEL "%systemroot%\system32\dllcache\wabmig.exe"DEL "%systemroot%\system32\dllcache\wabmig.old"DEL "%ProgramFilesDir%\Outlook Express\msimn.exe"DEL "%ProgramFilesDir%\Outlook Express\msoe.dll"DEL "%ProgramFilesDir%\Outlook Express\msoe.txt"DEL "%ProgramFilesDir%\Outlook Express\msoeres.dll"DEL "%ProgramFilesDir%\Outlook Express\oeimport.dll"DEL "%ProgramFilesDir%\Outlook Express\oemig50.exe"DEL "%ProgramFilesDir%\Outlook Express\oemiglib.dll"DEL "%ProgramFilesDir%\Outlook Express\setup50.exe"DEL "%ProgramFilesDir%\Outlook Express\wab.exe"DEL "%ProgramFilesDir%\Outlook Express\wabfind.dll"DEL "%ProgramFilesDir%\Outlook Express\wabimp.dll"DEL "%ProgramFilesDir%\Outlook Express\wabmig.exe"DEL "%CommonFilesDir%\Services\verisign.bmp"DEL "%CommonFilesDir%\Services\bigfoot.bmp"DEL "%CommonFilesDir%\Services\whowhere.bmp"DEL "%CommonFilesDir%\System\directdb.dll"DEL "%CommonFilesDir%\System\directdb.old"DEL "%CommonFilesDir%\System\wab32.dll"DEL "%CommonFilesDir%\System\wab32.old"DEL "%CommonFilesDir%\System\wab32res.dll"DEL "%CommonFilesDir%\System\wab32res.old"DEL "%systemroot%\System32\acctres.dll"DEL "%systemroot%\System32\inetcomm.dll"DEL "%systemroot%\System32\inetcomm.old"DEL "%systemroot%\System32\inetres.dll"DEL "%systemroot%\System32\msident.dll"DEL "%systemroot%\System32\msoeacct.dll"DEL "%systemroot%\System32\msoeacct.old"DEL "%systemroot%\System32\msoert2.dll"DEL "%systemroot%\System32\msoert2.old"DEL "%systemroot%\inf\msoe50.inf"DEL "%systemroot%\inf\msoe50.pnf"RD /S /Q "%ProgramFilesDir%\Outlook Express"RD /S /Q "%CommonFilesDir%\Stationery"clsecho.echo -----------------------------echo Uninstalling OE help files...echo -----------------------------echo.DEL %systemroot%\Help\msoe.chmDEL %systemroot%\Help\msoe.hlpDEL %systemroot%\Help\msoeacct.hlpDEL %systemroot%\Help\wab.chmDEL %systemroot%\Help\wab.hlpecho.echo ----------------------------echo Uninstalling OE shortcuts...echo ----------------------------echo.DEL "%userprofile%\Start Menu\Programs\Accessories\Address Book.lnk"DEL "%StartMenuPrograms%\Outlook Express.lnk"echo.echo ---------------------------------------echo Uninstalling old OE update inf files...echo ---------------------------------------echo.DEL "%systemroot%\inf\q330994.inf"DEL "%systemroot%\inf\q330994.pnf"DEL "%systemroot%\inf\q802223.inf"DEL "%systemroot%\inf\q802223.pnf"DEL "%systemroot%\inf\q837009.inf"DEL "%systemroot%\inf\q837009.pnf"DEL "%systemroot%\inf\q823353.inf"DEL "%systemroot%\inf\q823353.pnf"DEL "%systemroot%\q330994.exe"DEL "%systemroot%\q820223.exe"DEL "%systemroot%\oewablog.txt"DEL "%systemroot%\oeuninst.exe"echo.echo. unregistering DLL's and deleting registry entries...echo. echo.echo. Outlook ExpressREG DELETE "HKLM\Software\Microsoft\Active Setup\Installed Components\{44BBA840-CC51-11CF-AAFA-00AA00B6015C}" /f REG DELETE "HKLM\Software\Microsoft\Outlook Express" /fREG DELETE "HKLM\Software\Microsoft\Shared Tools\Stationery" /fREG DELETE "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\OutlookExpress" /fREG DELETE "HKLM\Software\Microsoft\Windows Messaging Subsystem" /v MAPI /fREG DELETE "HKLM\Software\Microsoft\Windows Messaging Subsystem\MSMapiApps" /v inetsw95.exe /fREG DELETE "HKLM\Software\Microsoft\Windows Messaging Subsystem\MSMapiApps" /v choosusr.dll /fREG DELETE "HKLM\Software\Microsoft\Windows Messaging Subsystem\MSMapiApps" /v msab32.dll /fREG DELETE "HKLM\Software\Microsoft\Windows Messaging Subsystem\MSMapiApps" /v nwab32.dll /fREG DELETE "HKLM\Software\Microsoft\Windows Messaging Subsystem\MSMapiApps" /v outstore.dll /fFOR /F "tokens=2* delims= " %%A IN ('REG QUERY "HKEY_CLASSES_ROOT\mailto\shell\open\command" /ve') DO set mailto=%%BFOR /F "tokens=2* delims= " %%A IN ('REG QUERY "HKEY_CLASSES_ROOT\news\shell\open\command" /ve') DO set news=%%BSET marker=%mailto:*Outlook=Outlook%SET marker=%marker:~0,7%IF %marker% EQU Outlook REG ADD HKEY_CLASSES_ROOT\mailto\DefaultIcon /ve /t REG_SZ /d "" /f IF %marker% EQU Outlook REG ADD HKEY_CLASSES_ROOT\mailto\shell\open\command /ve /t REG_EXPAND_SZ /d "" /fSET marker=%news:*Outlook=Outlook%SET marker=%marker:~0,7%IF %marker% EQU Outlook REG ADD HKEY_CLASSES_ROOT\news\DefaultIcon /ve /t REG_SZ /d "" /fIF %marker% EQU Outlook REG ADD HKEY_CLASSES_ROOT\news\shell\open\command /ve /t REG_EXPAND_SZ /d "" /f echo.echo. WabREG DELETE "HKLM\Software\Microsoft\Active Setup\Installed Components\{7790769C-0471-11D2-AF11-00C04FA35D02}" /f REG DELETE "HKLM\Software\Microsoft\WAB" /f REG DELETE "HKLM\Software\Microsoft\Internet Account Manager\Preconfigured" /fREG DELETE "HKLM\Software\Microsoft\Internet Account Manager\Import" /f REG DELETE "HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\wab.exe" /f REG DELETE "HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\wabmig.exe" /f REG DELETE "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\AddressBook" /fREG DELETE "HKCU\Software\Microsoft\Internet Account Manager\Accounts" /f REG DELETE "HKCU\Software\Microsoft\Internet Account Manager\Preconfigured" /f echo.echo. directdb.dllREG DELETE "HKEY_CLASSES_ROOT\CLSID\{4A16043F-676D-11d2-994E-00C04FA309D4}" /fecho.echo. inetcomm.dll and inetress.dllREG DELETE "HKEY_CLASSES_ROOT\CLSID\{FD853CD9-7F86-11d0-8252-00C04FD85AB4}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{FD853CDB-7F86-11d0-8252-00C04FD85AB4}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{FD853CDC-7F86-11d0-8252-00C04FD85AB4}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{FD853CDD-7F86-11d0-8252-00C04FD85AB4}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{FD853CDE-7F86-11d0-8252-00C04FD85AB4}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{FD853CDF-7F86-11d0-8252-00C04FD85AB4}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{FD853CE0-7F86-11d0-8252-00C04FD85AB4}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{FD853CE1-7F86-11d0-8252-00C04FD85AB4}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{FD853CED-7F86-11d0-8252-00C04FD85AB4}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{FD853CE2-7F86-11d0-8252-00C04FD85AB4}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{FD853CE3-7F86-11d0-8252-00C04FD85AB4}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{35461E30-C488-11d1-960E-00C04FBD7C09}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{FD853CE6-7F86-11d0-8252-00C04FD85AB4}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{FD853CE7-7F86-11d0-8252-00C04FD85AB4}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{FD853CE8-7F86-11d0-8252-00C04FD85AB4}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{FD853CE9-7F86-11d0-8252-00C04FD85AB4}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{FD853CEA-7F86-11d0-8252-00C04FD85AB4}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{FD853CEB-7F86-11d0-8252-00C04FD85AB4}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{5A580C11-E5EB-11d1-A86E-0000F8084F96}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{BB847B8A-054A-11d2-A894-0000F8084F96}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{EA678830-235D-11d2-A8B6-0000F8084F96}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{E4B28371-83B0-11d0-8259-00C04FD85AB4}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{05300401-BCBC-11d0-85E3-00C04FD85AB4}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{1C82EAD9-508E-11D1-8DCF-00C04FB951F9}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{64577982-86D7-11d1-BDFC-00C04FA31009}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{B0D17FC2-7BC4-11d1-BDFA-00C04FA31009}" /fREG DELETE "HKEY_CLASSES_ROOT\OutlookExpress.MimeEdit" /fREG DELETE "HKEY_CLASSES_ROOT\OutlookExpress.MimeEdit.1" /fREG DELETE "HKEY_CLASSES_ROOT\PROTOCOLS\Handler\mhtml" /fecho.echo. msoe.dllREG DELETE "HKEY_CLASSES_ROOT\CLSID\{626BAFE1-E5D6-11D1-B1DD-006097D503D9}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{CAE80521-F685-11d1-AF32-00C04FA31B90}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{6F74FDC6-E366-11d1-9A4E-00C04FA309D4}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{6F74FDC5-E366-11d1-9A4E-00C04FA309D4}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{BE09F473-7FEB-11d2-9962-00C04FA309D4}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{101A8FB9-F1B9-11d1-9A56-00C04FA309D4}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{E70C92A9-4BFD-11d1-8A95-00C04FB951F3}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{8F0C5675-AEEF-11d0-84F0-00C04FD43F8F}" /fREG DELETE "HKEY_CLASSES_ROOT\OutlookExpress.MessageList" /fREG DELETE "HKEY_CLASSES_ROOT\OutlookExpress.MessageList.1" /fREG DELETE "HKEY_CLASSES_ROOT\OutlookExpress.AddressBook" /fREG DELETE "HKEY_CLASSES_ROOT\OutlookExpress.AddressBook.1" /fREG DELETE "HKEY_CLASSES_ROOT\OutlookExpress.Envelope" /fREG DELETE "HKEY_CLASSES_ROOT\OutlookExpress.Envelope.1" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{233A9692-667E-11d1-9DFB-006097D50408}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{233A9694-667E-11d1-9DFB-006097D50408}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{06BE7323-EF34-11d1-ACD8-00C04FA31009}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{A08AF898-C2A3-11d1-BE23-00C04FA31009}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{abc00000-0000-0000-0000-000000000000}" /fREG DELETE "HKLM\Software\Clients\Mail\Outlook Express" /fREG DELETE "HKLM\Software\Clients\News\Outlook Express" /fecho.echo. oeimport.dllREG DELETE "HKEY_CLASSES_ROOT\CLSID\{B7AAC060-2638-11d1-83A9-00C04FBD7C09}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{0A522730-A626-11D0-8D60-00C04FD6202B}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{1198A2C0-0940-11d1-838F-00C04FBD7C09}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{B7AAC060-2638-11d1-83A9-00C04FBD7C09}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{BCE9E2E7-1FDD-11d2-9A79-00C04FA309D4}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{B977CB11-1FF5-11d2-9A7A-00C04FA309D4}" /fecho.echo. oemiglib.dllREG DELETE "HKEY_CLASSES_ROOT\CLSID\{A1006DE3-2173-11d2-9A7C-00C04FA309D4}" /f echo.echo. msident.dllREG DELETE "HKEY_CLASSES_ROOT\CLSID\{a9ae6c91-1d1b-11d2-b21a-00c04fa357fa}" /fecho.echo. msoeacct.dllREG DELETE "HKEY_CLASSES_ROOT\CLSID\{8D4B04E1-1331-11d0-81B8-00C04FD85AB4}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{1438E821-B6D2-11D0-8D86-00C04FD6202B}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{39981125-C287-11D0-8D8C-00C04FD6202B}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{39981127-C287-11D0-8D8C-00C04FD6202B}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{39981129-C287-11D0-8D8C-00C04FD6202B}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{0FF15AA1-2F93-11d1-83B0-00C04FBD7C09}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{911685D1-350F-11d1-83B3-00C04FBD7C09}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{17869501-36C8-11d1-83B7-00C04FBD7C09}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{33102459-4B30-11d2-A6DC-00C04F79E7C8}" /fREG DELETE "HKEY_CLASSES_ROOT\CLSID\{E9C8B700-88B1-11d2-8C1F-00C04FA31009}" /fREG DELETE "HKLM\Software\Microsoft\Internet Domains\hotmail.com" /fecho.echo. wab32.dllREG DELETE "HKEY_CLASSES_ROOT\.wab" /fREG DELETE "HKEY_CLASSES_ROOT\wab_auto_file" /fREG DELETE "HKEY_CLASSES_ROOT\certificate_wab_auto_file" /fREG DELETE "HKEY_CLASSES_ROOT\vcard_wab_auto_file" /fREG DELETE "HKLM\Software\Clients\Contacts\Address Book" /fecho.echo. wabimp.dllREM REG DELETE "HKLM\Software\Microsoft\WAB\Import" /fREM REG DELETE "HKLM\Software\Microsoft\WAB\Export" /fecho.echo. wabfind.dllREG DELETE "HKEY_CLASSES_ROOT\CLSID\{32714800-2E5F-11d0-8B85-00AA0044F941}" /fREG DELETE "HKLM\Software\Microsoft\Windows\CurrentVersion\explorer\FindExtensions\Static\WabFind" /fecho.echo. OE updatesREG DELETE "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\oeupdate" /fREG DELETE "HKLM\Software\Microsoft\Active Setup\Installed Components\{F5776D81-AE53-4935-8E84-B0B283D8BCEF}" /fREG DELETE "HKLM\Software\Microsoft\Active Setup\Installed Components\{f5173cf0-1dfb-4978-8e50-a90169ee7ca9}" /fREG DELETE "HKLM\Software\Microsoft\Advanced INF Setup\oeupdate" /fREG DELETE "HKLM\Software\Microsoft\Active Setup\Installed Components\{2cc9d512-6db6-4f1c-8979-9a41fae88de0}" /fecho.echo. Outlook Express uninstallation is completed.echo. If you are using non-English Windows XP you may need to echo. manually delete shortcuts.PAUSE:endecho -----------------echo Setze WSUS Clientecho -----------------copy misc.reg %WINDIR%regedit %WINDIR%\misc.reg /fdel %WINDIR%\miscs.regecho -------------------echo Setze Energie Werteecho -------------------echo.echo !---------------------------------!echo Monitor wird eingestellt auf 20min.echo !---------------------------------!powercfg /monitor-timeout-ac 20echo.echo !------------------------------!echo Standby wird eingestellt auf NIEecho !------------------------------!powercfg /standby-timeout-ac 0echo.echo !--------------------------!echo Ruhezustand wird Deaktiviertecho !--------------------------!powercfg /hibernate-timeout-ac 0powercfg /hibernate offclsecho.echo.echo. \\\\\\\\\\\\\\\\\\\\\\\\\\\/////////////////////////////echo. # +---------------------------+ #echo. # !PC ist Eingestellt fuer XXX! #echo. # +---------------------------+ #echo. ///////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\echo. Der PC wird nach dem Bestaetigen Neustarten fuer weitereecho. ------------System relevante installationen-------------echo. \\\\\\\\\\\\\\\\\\\\\\\\\\\/////////////////////////////pauseSHUTDOWN /r /t:15 /d P:2:18and the Regfile misc.reg;Windows Registry Editor Version 5.00;Firewall Deaktivieren[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile]"EnableFirewall"=dword:00000000;Windows Tour Deaktivieren;Disable Windows Tour bubble popup[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Applets\Tour]"RunCount"=dword:00000000;Turn Off Offline Files (System)[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\NetCache]"Enabled"=dword:00000000"NoConfigCache"=dword:00000001"NoMakeAvailableOffline"=dword:00000001"NoCacheViewer"=dword:00000001; Wsus ClientHere is a key -JokE- Hope untill then ive done it right. ;)Now the only thing are the divices. Becouse i think with the tool from dl. devcon i need to know what divice i can deaktivate by id since in other tipes of systems there is different hardware or is this a cool general solution ;)Best regards Val.P.S. I will modify the batch for OE in the german XP Pro and post this here too. Link to comment Share on other sites More sharing options...
jaclaz Posted October 24, 2007 Share Posted October 24, 2007 Also, if I may, you might want to search and learn a bit about batch files, just as an example, if you make a file "todelete.txt" with this contents:Inetcomm.dllMsoeacct.dllMsoert2.dllMsoe.dllMsoeres.dllMsimn.exeOeimport.dllOemiglib.dllOemig50.exeSetup50.exeWab.exeWabfind.dllWabimp.dllWabmig.exeCsapi3t1.dllDirectdb.dllWab32.dllWab32res.dlland you put:FOR /F %%A IN (todelete.txt) DO DEL %%Ain your batch, it is easier to read and to modify (adding or removing files to the todelete.txt list)This is a VERY good site to get ideas from:http://www.robvanderwoude.com/jaclaz Link to comment Share on other sites More sharing options...
Yzöwl Posted October 24, 2007 Share Posted October 24, 2007 Nevermind all that, just take a look at the del command and use it a little better in order to reduce all those lines.::Syntax - DEL [/switches] names::Example - DEL file1.ext file2.ext file3.ext file4.extWhere does %choice% come from? and why create a reg file, copy it, invoke it and delete it when you could just incorporate it in your batch file. 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