Jump to content

devil270975

Member
  • Posts

    367
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United Kingdom

Everything posted by devil270975

  1. Hi everyone here is a little bit of code for removing files and shortcuts with ease that can be reused with little editing put this in a cmd script for removing the screensavers except logon ECHO. ECHO Removing Screensavers... REN %systemroot%\System32\dllcache\logon.scr logon.old REN %systemroot%\System32\logon.scr logon.old for %%t in (scr) do del "%systemroot%\system32\*.scr" for %%t in (scr) do del "%systemroot%\system32\dllcache\*.scr" REN %systemroot%\System32\dllcache\logon.old logon.scr REN %systemroot%\System32\logon.old logon.scr ECHO. for removing all shortcuts on desktop ECHO. ECHO Removing Shortcuts from desktop... for %%t in (lnk) do del "%systemdrive%\Documents and Settings\All Users\Desktop\*.lnk" ECHO. all you have to do is replace the file type inside the parenthesis and the file extension at the end CAUTION!!!!!!!! do not experiment with exe inside your windows directory or dll's in system32-IT WILL DELETE THEM ALL use at your own risk, if you are carefull it is very usefull and cuts the margin for error and the amount of typing needed
  2. WTF?????? Does anyone understand all that??? What are you on? remind me never to take it...lol...
  3. AarronXP: net user Administrator /delete will not work xp will not allow you to delete admin account there is a way but it might take me a little while to sort the code out, basically what it will do is log in as admin for a split second add users write a registry value and log off then log on as the new user and start the setup process... it seems feasible just gotta try a few things out first though, will post the code and everything a.s.a.p Lee....
  4. you dont need quotes around your username another tip i use is to make a new cmd script with the code i want and test it ie: make a username and password up and run the script check to see if the code works, if it does then put it in your main script, that way no wasted discs you can allways delete the user from the example i posted earlier i do that to all my scripts to test them including software
  5. type pause ie: @echo off echo. all your code here after all your code type this echo. pause exit hope this helps
  6. someone correct me if i am wrong, but, isnt the windows directory $OEM$\$$\ and not $OEM\$1\ so it would be $OEM$\$$\Resources\Themes\ not tried it yet, and as i dont modify my themes or use custom ones i have no need to test or have any interest in testing, but i thought i would try and help you start in the right direction Good Luck with it and let me know if it works as i am sure a lot of other people would be interested Lee...
  7. if you would like to delete a user then put this in your command script CLS @ECHO OFF ECHO. ECHO Removing ASP.NET User Account created by .NET Framework 1.1... net user aspnet /delete ECHO. this is easier that using deluser.exe, no need to copy anything over, and uses the same amount of code, infact uses less code Hope this helps Lee...
  8. Not quite sure what you mean, but i have an inclining you might mean you want an example ie: net user AarronXP "password" /add <--! replace password with your desired password WITHOUT the quotes --> if you are on about net user "name" >> "C:\user.log" , then this is the result C:\>net user lee User name lee Full Name Comment User's comment Country code 000 (System Default) Account active Yes Account expires Never Password last set 8/15/2003 3:00 PM Password expires 9/27/2003 1:47 PM Password changeable 8/15/2003 3:00 PM Password required Yes User may change password Yes Workstations allowed All Logon script User profile Home directory Last logon Never Logon hours allowed All Local Group Memberships *Power Users Global Group memberships *None The command completed successfully. hope this all helps
  9. this is the code i use CLS TITLE Creating User Accounts ECHO. ECHO Please wait while Windows sets up your user accounts ECHO. ECHO Setting up 1st account net user name password /add /FULLNAME:" my name" /EXPIRES:never /PASSWORDREQ:yes net localgroup "Power Users" name /ADD net localgroup "users" name /DELETE ECHO. ECHO Setting up 2nd account net user anothername anotherpassword /add /FULLNAME:" my other name" /EXPIRES:01/01/2004 /PASSWORDREQ:yes net localgroup "Users" anothername /ADD ECHO. net user >> "C:\user.log" net user name >> "C:\user.log" net user anothername >> "C:\user.log" EXIT and it is all good, works perfectly Lee.......
  10. I am trying to find a way to set up my internet connection from a cmd script or vbscript, but i am unable to find any info on it at all, basically what i am trying to do is write a script that will enter my username and password in for my internet connection, the software for my bt modem sets up all the other stuff. if there is anyway to do this without manually going into internet properties, then please please PLEASE let me know. Lee
  11. Do you wanna elaberate a little more Post your winnt.sif code so ppl can have a look to see what your doing wrong Lee
  12. If i put the edited sfc_os.dll in the $OEM$\$$\system32 folder, do i still have to apply the reg for it??? [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon] "SFCDisable"=dword:ffffff9d if so, when is the best time to enter it??? at the beginning of my setup.cmd script, also do i still have to eject the cd or will it no longer matter???? OH yeah, the wallpaper, does it need a certain name???? and type???? ie: wallpaper.bmp Thanks for your help Lee.......
  13. Terminator3: is that sfc_os.dll hacked for xp os xp-sp1? cus you have to change different offsets for xp & sp1. Windows XP (no Service Pack) At offset 0000E2B8 (0E2B8h) you should find the values "8B" and "C6". Windows XP (Service Pack 1) At offset 0000E3BB (0E3BBh) you should find the values "8B" and "C6". please let us know which one Lee
  14. Im sorry "ThA_FiLeR" do i know you????? No! i dont think so, so dont be so stupid and rude When i clicked reply it said error, so i tried again
  15. Does anybody know how to enable single click from the registry???? this is the only thing that is holding me back now, i have got everything else set perfectly if anyone can help i would really appreciate it, thanks in advance. Lee
  16. whenever i put main.cmd > c:\main.log it keeps calling itself why????
  17. still loops through the code ie: keeps repeating the cmd script any chance of some example code that you have tested????
  18. when i tried user.cmd >"c:\setup.log" it kept on looping my code, why, and wherte in the batch do i put >blah blah
  19. Yes I would also like to know this, Anyone???????
  20. Why are you putting >nul???? you dont need to Lee...
  21. This is the official xp site for it, it has all the switches, and believe me there are a few http://www.microsoft.com/windowsxp/home/us...en/shutdown.asp Lee
  22. Did you also know then that you can add the -c switch at the end to add a comment/message? SHUTDOWN -r -t 120 -c "Restarting computer in 2 minutes"
  23. Another thing you, if you would like to stop the reboot is use another cmd script with just this line SHUTDOWN -a and copy it to the desktop and if you want to cancel the reboot just click on this when the counter has stopped, in other words SHUTDOWN -a cancels out SHUTDOWN -r -t 60 once it has started
×
×
  • Create New...