Jump to content

Valvaris

Member
  • Posts

    12
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Germany

About Valvaris

Profile Information

  • OS
    Windows 10 x64

Valvaris's Achievements

0

Reputation

  1. Hi, wow thanks will give it a try at Monday next week. and there is more code but it has nothing to do with this and is sepperated by other events ------------ Thank you for the advice to write the comments in xml will look more in to this -------------- Best regards Val.
  2. Hi @ all, its me again. This time i cant figure out why i cant get the folders to delete - and recieve a Path not found error. Situation -> There are paths to delete but sometimes the path dosent exist and the deletion process has to go an. Example -> PATH A, PATH B, PATH C ----- Some Computers have all 3 Paths but Some of them only have PATH A and C or PATH A and B or only PATH C. In CMD there is not problem - IT will Prompt for an error but goes on - in C Sharp it gets an error and Stops the Process of Deletion. AND PATH has to remein Dynamic becouse sometimes the Folder is under C: or D: on some PCs. Here my Code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows; using System.Windows.Forms; using System.Security.Principal; using System.Diagnostics; using Microsoft.Win32; using System.Threading; using System.IO; private void button4_Click(object sender, EventArgs e) { string f1 = Directory.GetCurrentDirectory() + @"\TEST\TEST2\TEST3"; Directory.Delete(f1); //Weiter Thread.Sleep(2000); string f2 = Directory.GetCurrentDirectory() + @"\TEST8\TEST4"; Directory.Delete(f2); //Weiter Thread.Sleep(2000); string f3 = Directory.GetCurrentDirectory() + @"\AA\BB"; Directory.Delete(f3); //Weiter Thread.Sleep(2000); string f4 = Directory.GetCurrentDirectory() + @"\DD\EE\FF"; Directory.Delete(f4); //Weiter Thread.Sleep(2000); string f5 = Directory.GetCurrentDirectory() + @"\More\to\Test"; Directory.Delete(f5); //Weiter Thread.Sleep(2000); string f6 = Directory.GetCurrentDirectory() + @"\its\fun"; Directory.Delete(f6); //Weiter Thread.Sleep(2000); string f7 = Directory.GetCurrentDirectory() + @"\more"; Directory.Delete(f7); //Weiter Thread.Sleep(2000); string f8 = Directory.GetCurrentDirectory() + @"\done\testing"; Directory.Delete(f8); //ENDE } Thanks allot in advance. Best regards Val.
  3. Hi @ all, im in a Projekt to help my co Workers with a little app to save time in uninstallig a special app - My Goal is to write this tool in Framework 2.0 (Windows Forms Projekt) and later after 6-8Months to Framework 3.5. OK now to my question - I know it sounds N00b but need help on how to setoff multiple commands to scan registry on a button. My Code Looks like so: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows; using System.Windows.Forms; using System.Security.Principal; using System.Diagnostics; using Microsoft.Win32; namespace WindowsFormsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button5_Click(object sender, EventArgs e) { WindowsIdentity wi = WindowsIdentity.GetCurrent(); WindowsPrincipal wp = new WindowsPrincipal(wi); if (wp.IsInRole(WindowsBuiltInRole.Administrator)) // Ok, user is administrator MessageBox.Show("OK"); else // Non privileged user, not ok to continue... MessageBox.Show("Nooooooo"); } private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { string mailtoString = @"mailto:xxx@xxx.xx"; Process.Start(mailtoString); } private void button3_Click(object sender, EventArgs e) { this.Close(); } private void button2_Click(object sender, EventArgs e) { string MyKeyName = "HKEY_LOCAL_MACHINE\\Software\\Test\\Product\\PAA003XX\\Versions\\1.0"; string MyKeyName1 = "HKEY_LOCAL_MACHINE\\Software\\Test\\Packages\\PAA003YY\\Versions\\1.0"; string MyValueName = "CompVersion"; string MyValueName1 = "CompVersion"; string MyValue = "####"; string MyValue1 = "####"; object MyObject = null; object MyObject1 = null; //Registry.GetValue returns an object: MyObject1 = Registry.GetValue(MyKeyName1, MyValueName1, null); if (MyValue1 != "####") { //Get the string value of the object returned: MyValue1 = MyObject1.ToString(); MessageBox.Show("Product Version = " + MyValue1); } else { MessageBox.Show("Product X not found"); } MyObject = Registry.GetValue(MyKeyName, MyValueName, null); if (MyValue != "####") { //Get the string value of the object returned: MyValue = MyObject.ToString(); MessageBox.Show("Product Version = " + MyValue); } else { MessageBox.Show("Product Y not found"); } } } } Main Code of problem is the Event from private void button2_Click(object sender, EventArgs e) - Downwards the rest is kinda ok. how do i get this to work im very new to C Sharp still need to learn allot. Many MAny thx in advance Val. --------------------- UPDATE ------------------------- ----------------------SOLVED------------------ Yes I did it --> So this is the Code I use now and it works! using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows; using System.Windows.Forms; using System.Security.Principal; using System.Diagnostics; using Microsoft.Win32; namespace WindowsFormsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button5_Click(object sender, EventArgs e) { WindowsIdentity wi = WindowsIdentity.GetCurrent(); WindowsPrincipal wp = new WindowsPrincipal(wi); if (wp.IsInRole(WindowsBuiltInRole.Administrator)) // Ok, user is power user or administrator MessageBox.Show("OK"); else // Non privileged user, not ok to continue... MessageBox.Show("Nooooooo"); } private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { string mailtoString = @"mailto:xxxx@xxxxx.xx"; Process.Start(mailtoString); } private void button3_Click(object sender, EventArgs e) { this.Close(); } private void button2_Click(object sender, EventArgs e) { string MyKeyName = "HKEY_LOCAL_MACHINE\\Software\\XXXXX\\Packages\\PYY003XX\\Versions\\1.0"; string MyKeyName1 = "HKEY_LOCAL_MACHINE\\Software\\YYYYY\\Packages\\PYY003YY\\Versions\\1.0"; string MyValueName = "CompVersion"; string MyValueName1 = "CompVersion"; string MyValue = ""; string MyValue1 = ""; object MyObject = null; object MyObject1 = null; //Registry.GetValue returns an object: MyObject = Registry.GetValue(MyKeyName, MyValueName, null); if (MyObject != null) { //Get the string value of the object returned: MyValue = MyObject.ToString(); MessageBox.Show("Product X Version = " + MyValue); } else { MessageBox.Show("Product X not found!"); MyObject1 = Registry.GetValue(MyKeyName1, MyValueName1, null); if (MyObject1 != null) { //Get the string value of the object returned: MyValue1 = MyObject1.ToString(); MessageBox.Show("Product Y Version = " + MyValue1); } else { MessageBox.Show("Product Y not found!"); } } } } } So what happened ive mixed the MyObject with the MyValue and recieved a String Error if nothing was found and if something got found nothing will happen becouse it got stuck. Now it searches for Product X and if thatone got found its done - But if Product X wasnt found it will search for Product Y and then its done ---- IF Found dialouge with Version of Product X/or/Y or a Message!!! So many many Thanks @ all - Bestregards HAppy Holidays @ ll and BEst regards Val.
  4. Hi @ all, found a easy solution. There is a Patch were you can setup the Limit the way you want it to be. For Security reasons ive scanned the File via Jotti. Here are the Stats: Service load: 0% 100% File: Half-open_limit_fix_2.6.zip Status: OK MD5: 1cb670e5c75a1cbbe8472a5769802b5a Packers detected: - Scanner results Scan taken on 25 Sep 2008 18:41:55 (GMT) A-Squared Found nothing AntiVir Found nothing ArcaVir Found nothing Avast Found nothing AVG Antivirus Found nothing BitDefender Found nothing ClamAV Found nothing CPsecure Found nothing Dr.Web Found nothing F-Prot Antivirus Found nothing F-Secure Anti-Virus Found nothing G DATA Found nothing Ikarus Found nothing Kaspersky Anti-Virus Found nothing NOD32 Found nothing Norman Virus Control Found nothing Panda Antivirus Found nothing Sophos Antivirus Found nothing VirusBuster Found nothing VBA32 Found nothing Tested with Fully patched Windows XP Pro 64bit with latest TCPIP.SYS The Link to the Site: Click Me The Link to File: Rapidshare Hope youll enjoy. Best regards Val.
  5. 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 Best regards Val.
  6. 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.
  7. Hi @ all, here is the modified version of the Batch file. :) @echo off echo. echo !--------------------------------------------------! echo Kreiere Lokad User und Setze Passwoerter fuer Admins echo !--------------------------------------------------! echo. copy netuser.exe %WINDIR% net user UsEr PaSSworD /add /active:yes /expires:never /passwordchg:no /fullname:"lokad" /comment:"lokad" netuser.exe UsEr /pwnexp:y net localgroup "Administratoren" lokad /add net user Administrator NeWPassWORd netuser.exe Administrator /pwnexp:y del %WINDIR%\netuser.exe cls echo. echo ------------------------------------------------- echo Deinstalliere MSN Explorer - Messenger und Spiele echo ------------------------------------------------- RunDLL32 advpack.dll, launchINFSection %windir%\inf\msmsgs.inf, BLC.Remove RunDLL32 advpack.dll, launchINFSection %windir%\inf\games.inf, BLC.Remove RunDLL32 advpack.dll, launchINFSection %windir%\inf\msmqocm.inf, BLC.Remove cls echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 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 entries REG DELETE "HKCU\Identities" /f REG DELETE "HKCU\Software\Microsoft\Outlook Express" /f REG DELETE "HKCU\Software\Microsoft\WAB" /f REG 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=%%B FOR /F "tokens=2* delims= " %%A IN ('REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion" /v ProgramFilesDir') DO SET ProgramFilesDir=%%B FOR /F "tokens=2* delims= " %%A IN ('REG QUERY "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Programs') DO SET StartMenuPrograms=%%B cls echo. ------------------------------- 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" cls echo. echo ----------------------------- echo Uninstalling OE help files... echo ----------------------------- echo. DEL %systemroot%\Help\msoe.chm DEL %systemroot%\Help\msoe.hlp DEL %systemroot%\Help\msoeacct.hlp DEL %systemroot%\Help\wab.chm DEL %systemroot%\Help\wab.hlp echo. 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 Express REG DELETE "HKLM\Software\Microsoft\Active Setup\Installed Components\{44BBA840-CC51-11CF-AAFA-00AA00B6015C}" /f REG DELETE "HKLM\Software\Microsoft\Outlook Express" /f REG DELETE "HKLM\Software\Microsoft\Shared Tools\Stationery" /f REG DELETE "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\OutlookExpress" /f REG DELETE "HKLM\Software\Microsoft\Windows Messaging Subsystem" /v MAPI /f REG DELETE "HKLM\Software\Microsoft\Windows Messaging Subsystem\MSMapiApps" /v inetsw95.exe /f REG DELETE "HKLM\Software\Microsoft\Windows Messaging Subsystem\MSMapiApps" /v choosusr.dll /f REG DELETE "HKLM\Software\Microsoft\Windows Messaging Subsystem\MSMapiApps" /v msab32.dll /f REG DELETE "HKLM\Software\Microsoft\Windows Messaging Subsystem\MSMapiApps" /v nwab32.dll /f REG DELETE "HKLM\Software\Microsoft\Windows Messaging Subsystem\MSMapiApps" /v outstore.dll /f FOR /F "tokens=2* delims= " %%A IN ('REG QUERY "HKEY_CLASSES_ROOT\mailto\shell\open\command" /ve') DO set mailto=%%B FOR /F "tokens=2* delims= " %%A IN ('REG QUERY "HKEY_CLASSES_ROOT\news\shell\open\command" /ve') DO set news=%%B SET 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 "" /f SET 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 "" /f IF %marker% EQU Outlook REG ADD HKEY_CLASSES_ROOT\news\shell\open\command /ve /t REG_EXPAND_SZ /d "" /f echo. echo. Wab REG 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" /f REG 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" /f REG DELETE "HKCU\Software\Microsoft\Internet Account Manager\Accounts" /f REG DELETE "HKCU\Software\Microsoft\Internet Account Manager\Preconfigured" /f echo. echo. directdb.dll REG DELETE "HKEY_CLASSES_ROOT\CLSID\{4A16043F-676D-11d2-994E-00C04FA309D4}" /f echo. echo. inetcomm.dll and inetress.dll REG DELETE "HKEY_CLASSES_ROOT\CLSID\{FD853CD9-7F86-11d0-8252-00C04FD85AB4}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{FD853CDB-7F86-11d0-8252-00C04FD85AB4}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{FD853CDC-7F86-11d0-8252-00C04FD85AB4}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{FD853CDD-7F86-11d0-8252-00C04FD85AB4}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{FD853CDE-7F86-11d0-8252-00C04FD85AB4}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{FD853CDF-7F86-11d0-8252-00C04FD85AB4}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{FD853CE0-7F86-11d0-8252-00C04FD85AB4}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{FD853CE1-7F86-11d0-8252-00C04FD85AB4}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{FD853CED-7F86-11d0-8252-00C04FD85AB4}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{FD853CE2-7F86-11d0-8252-00C04FD85AB4}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{FD853CE3-7F86-11d0-8252-00C04FD85AB4}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{35461E30-C488-11d1-960E-00C04FBD7C09}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{FD853CE6-7F86-11d0-8252-00C04FD85AB4}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{FD853CE7-7F86-11d0-8252-00C04FD85AB4}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{FD853CE8-7F86-11d0-8252-00C04FD85AB4}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{FD853CE9-7F86-11d0-8252-00C04FD85AB4}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{FD853CEA-7F86-11d0-8252-00C04FD85AB4}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{FD853CEB-7F86-11d0-8252-00C04FD85AB4}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{5A580C11-E5EB-11d1-A86E-0000F8084F96}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{BB847B8A-054A-11d2-A894-0000F8084F96}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{EA678830-235D-11d2-A8B6-0000F8084F96}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{E4B28371-83B0-11d0-8259-00C04FD85AB4}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{05300401-BCBC-11d0-85E3-00C04FD85AB4}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{1C82EAD9-508E-11D1-8DCF-00C04FB951F9}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{64577982-86D7-11d1-BDFC-00C04FA31009}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{B0D17FC2-7BC4-11d1-BDFA-00C04FA31009}" /f REG DELETE "HKEY_CLASSES_ROOT\OutlookExpress.MimeEdit" /f REG DELETE "HKEY_CLASSES_ROOT\OutlookExpress.MimeEdit.1" /f REG DELETE "HKEY_CLASSES_ROOT\PROTOCOLS\Handler\mhtml" /f echo. echo. msoe.dll REG DELETE "HKEY_CLASSES_ROOT\CLSID\{626BAFE1-E5D6-11D1-B1DD-006097D503D9}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{CAE80521-F685-11d1-AF32-00C04FA31B90}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{6F74FDC6-E366-11d1-9A4E-00C04FA309D4}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{6F74FDC5-E366-11d1-9A4E-00C04FA309D4}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{BE09F473-7FEB-11d2-9962-00C04FA309D4}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{101A8FB9-F1B9-11d1-9A56-00C04FA309D4}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{E70C92A9-4BFD-11d1-8A95-00C04FB951F3}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{8F0C5675-AEEF-11d0-84F0-00C04FD43F8F}" /f REG DELETE "HKEY_CLASSES_ROOT\OutlookExpress.MessageList" /f REG DELETE "HKEY_CLASSES_ROOT\OutlookExpress.MessageList.1" /f REG DELETE "HKEY_CLASSES_ROOT\OutlookExpress.AddressBook" /f REG DELETE "HKEY_CLASSES_ROOT\OutlookExpress.AddressBook.1" /f REG DELETE "HKEY_CLASSES_ROOT\OutlookExpress.Envelope" /f REG DELETE "HKEY_CLASSES_ROOT\OutlookExpress.Envelope.1" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{233A9692-667E-11d1-9DFB-006097D50408}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{233A9694-667E-11d1-9DFB-006097D50408}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{06BE7323-EF34-11d1-ACD8-00C04FA31009}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{A08AF898-C2A3-11d1-BE23-00C04FA31009}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{abc00000-0000-0000-0000-000000000000}" /f REG DELETE "HKLM\Software\Clients\Mail\Outlook Express" /f REG DELETE "HKLM\Software\Clients\News\Outlook Express" /f echo. echo. oeimport.dll REG DELETE "HKEY_CLASSES_ROOT\CLSID\{B7AAC060-2638-11d1-83A9-00C04FBD7C09}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{0A522730-A626-11D0-8D60-00C04FD6202B}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{1198A2C0-0940-11d1-838F-00C04FBD7C09}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{B7AAC060-2638-11d1-83A9-00C04FBD7C09}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{BCE9E2E7-1FDD-11d2-9A79-00C04FA309D4}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{B977CB11-1FF5-11d2-9A7A-00C04FA309D4}" /f echo. echo. oemiglib.dll REG DELETE "HKEY_CLASSES_ROOT\CLSID\{A1006DE3-2173-11d2-9A7C-00C04FA309D4}" /f echo. echo. msident.dll REG DELETE "HKEY_CLASSES_ROOT\CLSID\{a9ae6c91-1d1b-11d2-b21a-00c04fa357fa}" /f echo. echo. msoeacct.dll REG DELETE "HKEY_CLASSES_ROOT\CLSID\{8D4B04E1-1331-11d0-81B8-00C04FD85AB4}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{1438E821-B6D2-11D0-8D86-00C04FD6202B}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{39981125-C287-11D0-8D8C-00C04FD6202B}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{39981127-C287-11D0-8D8C-00C04FD6202B}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{39981129-C287-11D0-8D8C-00C04FD6202B}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{0FF15AA1-2F93-11d1-83B0-00C04FBD7C09}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{911685D1-350F-11d1-83B3-00C04FBD7C09}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{17869501-36C8-11d1-83B7-00C04FBD7C09}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{33102459-4B30-11d2-A6DC-00C04F79E7C8}" /f REG DELETE "HKEY_CLASSES_ROOT\CLSID\{E9C8B700-88B1-11d2-8C1F-00C04FA31009}" /f REG DELETE "HKLM\Software\Microsoft\Internet Domains\hotmail.com" /f echo. echo. wab32.dll REG DELETE "HKEY_CLASSES_ROOT\.wab" /f REG DELETE "HKEY_CLASSES_ROOT\wab_auto_file" /f REG DELETE "HKEY_CLASSES_ROOT\certificate_wab_auto_file" /f REG DELETE "HKEY_CLASSES_ROOT\vcard_wab_auto_file" /f REG DELETE "HKLM\Software\Clients\Contacts\Address Book" /f echo. echo. wabimp.dll REM REG DELETE "HKLM\Software\Microsoft\WAB\Import" /f REM REG DELETE "HKLM\Software\Microsoft\WAB\Export" /f echo. echo. wabfind.dll REG DELETE "HKEY_CLASSES_ROOT\CLSID\{32714800-2E5F-11d0-8B85-00AA0044F941}" /f REG DELETE "HKLM\Software\Microsoft\Windows\CurrentVersion\explorer\FindExtensions\Static\WabFind" /f echo. echo. OE updates REG DELETE "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\oeupdate" /f REG DELETE "HKLM\Software\Microsoft\Active Setup\Installed Components\{F5776D81-AE53-4935-8E84-B0B283D8BCEF}" /f REG DELETE "HKLM\Software\Microsoft\Active Setup\Installed Components\{f5173cf0-1dfb-4978-8e50-a90169ee7ca9}" /f REG DELETE "HKLM\Software\Microsoft\Advanced INF Setup\oeupdate" /f REG DELETE "HKLM\Software\Microsoft\Active Setup\Installed Components\{2cc9d512-6db6-4f1c-8979-9a41fae88de0}" /f echo. echo. Outlook Express uninstallation is completed. echo. If you are using non-English Windows XP you may need to echo. manually delete shortcuts. PAUSE :end echo ----------------- echo Setze WSUS Client echo ----------------- copy misc.reg %WINDIR% regedit %WINDIR%\misc.reg /f del %WINDIR%\miscs.reg echo ------------------- echo Setze Energie Werte echo ------------------- echo. echo !---------------------------------! echo Monitor wird eingestellt auf 20min. echo !---------------------------------! powercfg /monitor-timeout-ac 20 echo. echo !------------------------------! echo Standby wird eingestellt auf NIE echo !------------------------------! powercfg /standby-timeout-ac 0 echo. echo !--------------------------! echo Ruhezustand wird Deaktiviert echo !--------------------------! powercfg /hibernate-timeout-ac 0 powercfg /hibernate off cls echo. echo. echo. \\\\\\\\\\\\\\\\\\\\\\\\\\\///////////////////////////// echo. # +---------------------------+ # echo. # !PC ist Eingestellt fuer XXX! # echo. # +---------------------------+ # echo. ///////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ echo. Der PC wird nach dem Bestaetigen Neustarten fuer weitere echo. ------------System relevante installationen------------- echo. \\\\\\\\\\\\\\\\\\\\\\\\\\\///////////////////////////// pause SHUTDOWN /r /t:15 /d P:2:18 and 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 Client Here 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.
  8. 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 lol I 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
  9. Thanks for the advice m8s, Here is the little that ive scripted. @echo off echo Kreiere Lokad User und Setze Passwoerter fuer Admins net user UsEr password /add /fullname:"lokad" /comment:"lokad" net localgroup Administratoren UsEr /add net accounts /maxpwage:unlimited net user UsEr NeWPassWORD net accounts /maxpwage:unlimited echo Deinstalliere MSN Explorer - Messenger und Spiele RunDLL32 advpack.dll, launchINFSection %windir%\inf\msmsgs.inf, BLC.Remove RunDLL32 advpack.dll, launchINFSection %windir%\inf\games.inf, BLC.Remove RunDLL32 advpack.dll, launchINFSection %windir%\inf\msmqocm.inf, BLC.Remove echo Deinstalliere Outlook Express reg delete HKEY_LOCAL_MACHINE\Software\Microsoft\Outlook Express reg delete HKEY_LOCAL_MACHINE\Software\Microsoft\WAB reg delete HKEY_CURRENT_USER\Identities reg delete HKEY_CURRENT_USER\Software\Microsoft\Outlook Express reg delete HKEY_CURRENT_USER\Software\Microsoft\WAB reg 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.dll erase Msoeacct.dll erase Msoert2.dll erase Msoe.dll erase Msoeres.dll erase Msimn.exe erase Oeimport.dll erase Oemiglib.dll erase Oemig50.exe erase Setup50.exe erase Wab.exe erase Wabfind.dll erase Wabimp.dll erase Wabmig.exe erase Csapi3t1.dll erase Directdb.dll erase Wab32.dll erase Wab32res.dll echo Setze WSUS Client Regedit /S "\\Path\Path\WSUS_client.reg" cls echo # +---------------------------+ # echo # !PC ist Eingestellt fuerXXX! # echo # +---------------------------+ # echo ///////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ echo Der PC wird nach dem Bestaetigen Neustarten fuer weitere echo ------------System relevante installationen------------- echo \\\\\\\\\\\\\\\\\\\\\\\\\\\///////////////////////////// pause SHUTDOWN /r /t:15 /d P:2:18 Now that realy bugs me is the Energie settings and the Offline files grrrrrrrrrrrrr. Ill post any progress here Best regards Val.
  10. 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.
  11. 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) User Disable Offline Files Uninstall MSNExplorer Uninstall Messenger Uninstall Outlook Express Uninstall Games Disable Audio Divice Disable CD Drive Disable USB Prots Set Networkcard to 100Full Duplex Disable Windows Firewall Set Regkey for WSUS Restart 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 Valvaris P.S. is Powershell better???
  12. Hi @ all 1st im a new user to the MSFN Forum and im happy to come by to this supperb forum. I have mestered batch file installing runonceex installing and wpi now my approach is XPlode. From very weak knowlige on programming and scripting ive become a little smarter on this Forum and on XPlode as well it dosent have a huge lerning curve since RunOnceEX is a little more confusing. Since it uses XML it helps you how the programming goes on and the PDF file is ok for starters in mixture to this forum. I was a little lost since i read in the unattended page from XPlode and didnt know what to do!! Still a question is her do i nead to burn a cd again and again for using XPlode for free or does it work for years to come. @ all starters read read read it helps i mean it im stupid as hell but reading help allot and solves stupid awnsers. Your Valvaris P.S.: Thank you for developing such a great prog for FX unattended and easy install.
×
×
  • Create New...