How do I abort a program that keeps shutting down the PC?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Batch PROgrammers
Posts: 4
Joined: 17 Nov 2013 06:28

How do I abort a program that keeps shutting down the PC?

#1 Post by Batch PROgrammers » 07 Jan 2014 13:34

My friend has made a program which logs you out and some how it has put him in a loop and now he can only get on his pc for 15 secs
can this be fixed

Squashman
Expert
Posts: 4486
Joined: 23 Dec 2011 13:59

Re: Help!!!!!

#2 Post by Squashman » 07 Jan 2014 13:36

Is the program a batch file using the shutdown command?

Ed Dyreen
Expert
Posts: 1569
Joined: 16 May 2011 08:21
Location: Flanders(Belgium)
Contact:

Re: Help!!!!!

#3 Post by Ed Dyreen » 07 Jan 2014 13:44

Login normally, after the batch has run press windows+R button
type cmd and press enter
type shutdown -a

If that don't work

press F8 at boot time, select boot into safe mode.
Login and rename the logout file.
Reboot and delete the autorun entrance for the logout file.

both require admin privileges

Adrianvdh
Posts: 177
Joined: 16 May 2013 13:00

Re: Help!!!!!

#4 Post by Adrianvdh » 07 Jan 2014 14:10

Please post the code for the program, then maybe close the batch file?

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Help!!!!!

#5 Post by foxidrive » 07 Jan 2014 22:57

Hold down the shift key until the PC is booted. It bypasses the startup group.

You may also get the popup from the accessibility widget, which you can select no to.

Batch Artist
Posts: 22
Joined: 18 Oct 2013 05:28

Re: Help!!!!!

#6 Post by Batch Artist » 09 Jan 2014 20:11

1. Press "Ctrl Alt Del" once the PC has booted up.
2. Close the Batch File.

If that doesn't work or the File is not located in the tab follow these steps, but you'll have to be FAST to get it done!

1. Open 'CMD' in the Run/Search bar.
2. Type "-a shutdown". (Which stands for 'abort shutdown').

If both those steps Don't work, you may need to rebuild your PC.

Ed Dyreen
Expert
Posts: 1569
Joined: 16 May 2011 08:21
Location: Flanders(Belgium)
Contact:

Re: Help!!!!!

#7 Post by Ed Dyreen » 10 Jan 2014 01:51

Windows reads the location of the startUp folders here

Code: Select all

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Startup
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Common Startup
Then looks and executes any executables found ( usually shortcuts, not the executables themselves )

Windows also executes any links specified under these keys.

Code: Select all

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
Killing a mosquito with a bullet :shock:
Batch Artist wrote:If both those steps Don't work, you may need to rebuild your PC.
Access the drive from another OS like a boot-able ROM version of windows and clean the affected areas. Load the registry file

Code: Select all

reg.EXE /load "%USERPROFILE%\NTUSER.DAT"
and clean the affected areas.

alan_b
Expert
Posts: 357
Joined: 04 Oct 2008 09:49

Re: How do I abort a program that keeps shutting down the PC

#8 Post by alan_b » 10 Jan 2014 04:22

Batch PROgrammers wrote:My friend has made a program which logs you out and some how it has put him in a loop and now he can only get on his pc for 15 secs
can this be fixed

With a friend like that - who needs enemies :twisted:

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: How do I abort a program that keeps shutting down the PC

#9 Post by foxidrive » 10 Jan 2014 05:22

Another simple way would be to boot into safe mode and remove the program.

Post Reply