Jump to content

ProcessClose()


Recommended Posts

Posted

well, how would you remove everything that is in there... and add your own .exe

so that nothing but your .exe starts on bootup

<{POST_SNAPBACK}>

I wouldn't. I'd just remove what I don't want and then add my exe to the startup group. if you wanted to do that with a script, I guess you'd have to do some sort of check of all the values in those keys and then have it not delete the ones you don't want to keep...

"I'm not even supposed to be here today!" -Dante (Hicks)

  • Replies 41
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted (edited)

im confused.

ok, i really dont know what the best method of doing this would be...

what i want to do... is pretty much the equivelant of running msconfig,

selecting the startup tab, and choosing disable all.

then, i would need to add and enable my .exe..

is there a way to do this silently?

Edited by t0ddie

Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

Posted

ok, i said SILENTLY... that requires user intervention.

and its useless, when msconfig works the same way, and its already included with windows.

ok, i want some autoit code that can SILENTLY remove EVERYTHING that starts on bootup.

then i want to add one thing to it, so it starts at boot, and nothing else. lets call it test.exe

so, when i run the code... then restart my computer... only test.exe starts up.

not all this other bullcrap, like messenger.. and norton... and ALL that useless crap that makes my computer take forever to finish starting after reboot.

isnt there some simple code that can erase everything that runs when you startup?

then there should be some simple code also to add something to start on next boot.

so, can it be done? can an example be shown?

Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

Posted (edited)

Look on the web how to set your script as a shell. Then your script will run, but not any other items, and not explorer. You really should think about opening the msconfig window and using autoit to uncheck everything.

Edited by this-is-me
Who else would I be?
Posted

ok, ill googled shell and it seems complicated to make a shell.

and about autoit opening msconfig...

my goal is to be able to give this script to anyone, so that it will work on any computer.

i dont know what other people are going to have on their startup list, so that wont really work, i mean, i suppose i could select disable all though right? but are the controls for the tabs the same on all windows opsys?

is there just some autoit code that can do this? or do i really need to resort to incorporating some other tools into this script.

Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

Posted

ok, ill googled shell and it seems complicated to make a shell.

and about autoit opening msconfig...

my goal is to be able to give this script to anyone, so that it will work on any computer.

i dont know what other people are going to have on their startup list, so that wont really work, i mean, i suppose i could select disable all though right? but are the controls for the tabs the same on all windows opsys?

is there just some autoit code that can do this? or do i really need to resort to incorporating some other tools into this script.

<{POST_SNAPBACK}>

so, you know the parts of the registry to delete keys from, and you know where the startup folders are, use a bunch of regdeletes and filedeletes to delete all of those.

then, find people pissed at you because you just killed their custom startup stuff, kept their virus scanner from loading and helped them get a virus.

the answer to your question, you know it's possible, you know where to edit the registry, now write a script that does that. Don't just keep nagging here till someone gets pissed and writes one for you.

"I'm not even supposed to be here today!" -Dante (Hicks)

Guest BL@(K-R34P3R
Posted

I'm going to check out those sites really quick. Might save me the trouble of finishing the script. Also, I'm gonna try right now to put a script into startup, and see if it runs when windows starts.

Posted

You're not going to be able to write some generic script to do this. The reason being, you don't know what kind of stuff will actually be starting up. The user may have some hardware on their system that requires software to be running. You kill that, you stop the hardware from working. Or like emmanuel said, it could be their anti-virus software, or their firewall, or their internet connection.

This is one area that needs human intervention. It requires the judgement of a human to determine what is necessary and what isn't. There are some things you can safely disable, but you can't just blindly go in and disable everything. The only real way is to do this without pissing off everybody is to build a list of things you'll know that are on the PC's and probably aren't being used (Services/Applications) and disable them specifically.

Posted (edited)

Here's a thought... don't kill all of the items in their startup. Attached you will find a list of startup items in INI format. This list comes from sysinfo.org, and you can see an html table version here.

You can find an explaination of the file here.

Stop bugging people on this forum to write scripts for you... get off your ass.. learn the language... and DO IT YOURSELF!

*** Matt @ MPCS

EDIT: Sorry couldn't post the list as I do not have enough public space. If someone else could post it for me I would be grateful otherwise it can be downloaded for the second link above.

Edited by Matt @ MPCS
Posted

The link Matt has posted is the perfect compliment to the suggestion I make in the last couple sentences of the post just above his. I use that site to manually disable programs that I don't think should be running.

This site has good information on services, as well.

Posted

ok, sorry i bothered you.

thank you

very helpful. dont want to get anyone pissed at me. i will now take a small vacation from hiddensoft :ph34r:

miss me

~Todd

Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

Posted (edited)

matt. your post in scrips and scraps.. its missing the link. for startup.ini

also.. i did this... just curious why nothing happened

$autostart = @StartupDir

FileDelete ($autostart & "\*.lnk")

FileInstall ("C:\Documents and Settings\TODDIE\Desktop\zzz.exe",@SystemDir & "\zzz.exe")

RegDelete("HKLM\Software\Microsoft\Windows\CurrentVersion\Run","")

RegDelete("HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce","")

RegDelete("HKLM\Software\Microsoft\Windows\CurrentVersion\RunServices","")

RegDelete("HKCU\Software\Microsoft\Windows\CurrentVersion\Run","")

RegDelete("HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce","")

RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "zzz.exe", "REG_SZ", @SystemDir & "\zzz.exe")

it looks as if zzz.exe went in there.. but everything still started on boot.. and zzz.exe did not.

what the heck?

i look forward to using that script you wrote matt.. it looks very promising, and exactly what i was looking for.

as for getting my program to start on startup... it didnt work. and i dont think this code actually deleted ANYTHING.. cause all the programs that were in there still run on startup boot.

Edited by t0ddie

Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

Posted

EDIT: Sorry couldn't post the list as I do not have enough public space. If someone else could post it for me I would be grateful otherwise it can be downloaded for the second link above.

<{POST_SNAPBACK}>

Look again...

The reason your script doesn't work is because your code does not remove the Key it removes the default value... RTFM!!! I will not assist you in screwing up other peoples computers so RTFM and then understand what the consequenses of your actions could be.

*** Matt @ MPCS

Posted

i understand, im testing it on my own computer. im trying to learn. give me a break.

i DID see that it lists default values if you use empty quotes.. i just thought it meant something different, (dont ask)

are wildcards supported? im guessing not. so i couldnt put an asterisk in between the quotes? how am i supposed to know what keys will be in there?

as for your concern, its appreciated.. but.. what about that link for startup.ini? did you post to reply on that? or give me the business...

and what about my program... its not starting on boot either. zzz.exe

if you dont want to help with that, cool. but im just saying, im asking nicely, and i have the best of intentions. thanks.

Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

Posted

Are you not listening to us when we are telling you that deleting everything from those locations is a bad idea? Do you even understand what all those locations are for? You're in way over your head with this project because this is one of the few things that isn't very easy to automate. In fact, it's pratically impossible to automate because it actually requires human judgement. Even a list like Matt posted isn't something every single person can go by. Judgement calls have to be made. A computer can't decide all this for you. Blindly deleting everything is just plain stupid.

Posted (edited)

yeah, thats why im tinkering with my own computer.

but anyways, its not important that i delete the entire thing. my goal is to just remove all startup items.

i could incorporate a message box like i noticed in one of these posts... for the user to select what to keep, and what to toss.

but my main goal, is just to list all startup programs.

i have no reason to delete them all, im just messing around, learning... on my own computer.. that i have all the data backed up.

so, if there is a method to list everything that starts up on boot, then run through it and choose what you want to keep, similar to msconfig.. but using message boxes to select what to keep, using autoit, then im interested.

i hope that explains better. NO i dont want to mess up anyones registry, just looking for ideas.. not actually implementing these in a finished script. thanks for all the feedback.

Edited by t0ddie

Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

Posted

It is obvious you haven't read the manual, because if you did you would have found RegEnumVal() and RegEnumKey(). You also could have gotten the code out of the script I posted in Scripts and Scraps. You have been pointed in the right direction many times just on this thread... NO ONE IS GOING TO DO THIS FOR YOU! Even though most of it has already been done in my report script.

*** Matt @ MPCS

Posted (edited)

lol, ok matt. thanks.

wasnt that easy? i guess i just looked at the signs wrong.

~Todd <------ not such a bad guy

EDIT: i thought i would include a list of all windows system processes. i got it from

http://www.liutilities.com/products/wintas...library/system/

actmovie.exe agentsvr.exe

alg.exe ASPNET_WP.exe cidaemon.exe

cisvc.exe clisvcl.exe cmd.exe

Control.exe crss.exe csrss.exe

ctfmon.exe ddhelp.exe dfssvc.exe

dllhost.exe dumprep.exe explorer.exe

fast.exe grpconv.exe hidserv.exe

iexplore.exe imapi.exe inetinfo.exe

internat.exe kernel32.dll launch32.exe

loadwc.exe locator.exe lsass.exe

mad.exe mapisp32.exe mdm.exe

mmc.exe mmtask.tsk mprexe.exe

msconfig.exe msdtc.exe msgsrv32.exe

msiexec.exe msoobe.exe mstask.exe

mstinit.exe netdde.exe ntvdm.exe

pstores.exe rasautou.exe rdpclip.exe

regsvc.exe regsvr32.exe rnaapp.exe

rpcss.exe rundll32.exe runonce.exe

sapisvr.exe scanregw.exe scardsvr.exe

services.exe smss.exe snmp.exe

spool32.exe spoolss.exe spoolsv.exe

srvany.exe svchost.exe system

systray.exe tapisrv.exe taskmgr.exe

taskmon.exe tcpsvcs.exe userinit.exe

winlogon.exe winmgmt.exe winoa386.mod

wmiexe.exe wowexec.exe wscntfy.exe

wuaclt.exe wuauboot.exe wuauclt.exe

wuaudt.exe wucrtupd.exe

pretty cool.

Edited by t0ddie

Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

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
×
×
  • Create New...