I want to stop a program from starting in Windows 7 using command prompt. This is on a PC where I cannot access msconfig and cannot install programs, but I can use command prompt.
Is this possible and if so, how?
I want to stop a program from starting in Windows 7 using command prompt. This is on a PC where I cannot access msconfig and cannot install programs, but I can use command prompt.
Is this possible and if so, how?
Depending on your needs, you could try the following at a CMD prompt:
DEL filename -- that program will never run again
If it's a Windows Service:
sc stop service name
sc config service name start= disabled
If it's a Windows Scheduled Task:
schtasks.exe /Change /TN task name /Disable
There are yet other ways to start a task automatically; you need to be more specific about your issue.
You could connect remotely to that computer, given that you have the necessary credentials. When connecting against it using regedit you could open the key hklm\software\Microsoft\windows\currentversion\run and delete the software you don't want to start.
Regedit has an option to connect to that computer remotely on the file menu.
To stop a program from starting up you can use the REG command line tool to query and delete. Try "Reg /?" to get started.
Reg query hklm\software\microsoft\windows\currentversion\run Reg delete hklm\software\microsoft\windows\currentversion\run /v HotKeyCmds
Note: To delete the registry key you will need to run the Command Prompt window in Administrator Mode.