How to close the hung program. Turning off the computer via the command line What does Forced shutdown in the computer mean

And other errors that love to throw out Windows 7 I have already written and more than once. Today I want to write about how to disable automatic reboot system in case of error.

For Windows (not only from the seven), it has been established that during some less serious error the system automatically reboots. Well, it is not bad, especially when such an error is caused by some program. The computer will reboot, the program closes and everything will work, or should work :).

But another thing is when the computer reboots through the same blue screens, or other serious system errors. Just such errors are usually a constant phenomenon, well, or until then until the reason is removed. So, if some kind of mistake appears, and the computer immediately reboots, then we do not have time to consider the inscription, which is on the same blue screen. And if you read what is written there, also rewrite the error code, you can search for it to eliminate it.

So it is worth disable automatic reboot, and now I will write how to do it. Those more that the computer can always be restarted by clicking on a special button.

Turn off the automatic reboot system

Click the right mouse button on the computer and select "Properties".

In a new window, choose the right.

A small window will open in which you click on "Parameters" in the section.

Another window will open in which you remove the tick with. Click "OK" and close all windows.

One of the most common problems when operating a computer running Windows - Even after the completion, the computer continues to work. The only option to turn off the computer in this case - forced shutdown By long-term retention of the power button. But in a similar way, it is impossible to use on an ongoing basis, which means it is necessary to look for a solution to the problem.

With the problem of the inability to turn off the computer standard methodIt turns out, faces a large number of Users, but the causes of this problem can be a lot: installed Drivers, softwareblocking a computer shutdown, incorrect power settings, etc.

Ways to solve the problem

Method 1: Configuring USB Hub

This method can help laptop users, users stationary computers It can be skipped. The fact is that the system for saving the battery can block the operation of some USB devices, but sometimes laptops can work incorrectly with this function, which is why it is impossible to turn off the computer.

In this case, you will need to call the menu. "Control Panel" Install for convenience viewing mode "Small badges" and then perform the transition to the section "System" .

In the left area of \u200b\u200bthe windows, passing to the section "Device Manager" .

The screen will display the window you need, in which you will need to deploy the item. « USB controllers» , right-click on "Root USB hub" And in the displayed context menu choose "Properties" .

In a new window, go to the tab "Power Management" and remove the bird from the point "Allow shutdown of this device to save energy" . Save the changes. Similar actions Perform for all items "root USB hub.

After performing these actions, try to turn off the computer through the Start menu.

Method 2: System Restore

If the problem with turning off the computer appeared suddenly and recently, for example, after installing any program or drivers for a connected device, then the system restore function will solve the problem, which will allow you to roll back the computer to that time when the problems with shutdown were not observed.

To do this, go to the menu "Control Panel" and then go to the section "Restoration" .

In a new window, select item "Running system recovery" .

After a few moments, a window appears on the screen in which the available recovery points will be presented. Choose the point of rollback, which is dated by a period when the computer, in your opinion, worked fine. Run the recovery procedure.

Please note that the system recovery procedure may take quite a long time - everything will depend on how many changes to the operating system has been made from the day you chose the kickback point.

Method 3: Disabling incorrect services and applications

Most often, the problem of turning off the computer is an incorrectly working service, which as a result of a failure cannot complete its work, which means that the computer cannot turn off.

First of all, you need to see the Windows magazine for errors. To do this, open the menu "Control Panel" and go to the section "Administration" .

In the window that fired twice open the label "View events" .

In the left area of \u200b\u200bthe opened window, expand item "Windows magazines". In it you will need to open two magazines: "Appendix" and "System" .

Browse these two magazines. You are interested in events marked by item "Error" . If in these events, each time the same service or application is marked, then it or its work must be disabled.

To disable incorrectly working service, go back to the window "Administration" and then open the label "Services" .

In the list that opens, find the service you need, and then open it by clicking on it twice with the mouse button. In the tab "General" Near the Graphs "Startup type" Set the value "Disabled" And then save the changes.

If the problem was detected in the application, such an incorrectly working application is recommended to remove from the computer through the menu "Control Panel" - "Delete Programs" . If you cannot delete the application from the computer, you can remove it from the startup. To do this, open it "Task Manager" keyboard shortcut Ctrl + Shift + Del . In the window that opens, go to the tab. Click the right-click application and select the item "Delete" . Save the changes.

Method 4: Reducing the closing duration of programs

IN this method You can try to reduce the closing time of programs by making changes to windows registry. To do this, open the window "Run" Combination of keys Win + R. , in the displayed window you need to spend the command regedit. .

By running the Windows registry, you will need to make changes to the work of three parameters that are located in the branch. HKEY_CURRENT_USERCONTROL PANELDESKTOP.:

1. AutoEndTasks.For this parameter, you will need to set the value 1. The activation of this parameter will mean that Windows will force the hungry programs when the computer is completed;

2. HUNGAPPTimeout. For this parameter, set a value from 1000 to 5000. In this case, you specify a specific time, later Windows will force the program if it does not respond;

3. wailtokiliapptimeoul.For this parameter, it is recommended to set the value from 5000 to 7000. This parameter determines how many milliseconds Windows will wait for the program response.

If you do not find the desired parameter at the specified address, it will be necessary to create it. You can create the "AutoEndTasks" parameter if you click on any free area from the existing parameters with the right mouse button and in the displayed context menu, passing to the item "Create" - "String Parameter" . Set the exact name and the desired value. Save the change.

For parameters "HUNGAPPTimeOout" and "WailtokiliappTimeoul", right-click on the free area, and then go to the point "Create" - "DWORD Parameter (32 Bit)" .

By making the necessary changes, close the Windows registry and try completing the computer.

Manually, but how automatically.

When the operating system is tincture, it is very often among the same actions, on the disconnection of the same services. It annoyed me and I could not find a way to automate it. But now I created a file that automatically shuts off unnecessary services to me. If you have such a need, read below how can this be done!)

In Windows 7, 8, 10, to work with services, you need:

  1. Open Start
  2. Right-click on the computer and select Management
  3. Jump service and management
  4. Services. A list of services will appear.

How to manually stop the service?

  1. In order to stop the service, click right-click and select the property.
  2. Click stop

How to manually run the service?

  1. In order to start the service, click right-click and choose a property.
  2. Click start

How to manually disable service?

  1. To disable the service by clicking the right mouse button and select the property.
  2. Click stop (can be done without it, but then you have to restart the computer so that it is disabled)
  3. Select the start type is disabled (often people are interested in how to stop windows updates, just in this way and need)

When I wrote an article about what services can be turned off, I was asked to write a script that automatically disabled the necessary services automatically. And I found my decision recently. To do this, you must stop the service from the command line. But again, on the one hand it looks difficult, but at the end of the article I will teach you how to do it easy.

How to automatically stop, run, disable service?

To start, download my template. This is a service that I usually turn off immediately, as I put.

Now see the commands you need (commands are taken without quotes):

  1. "Net Stop Service_name" - this command stops service
  2. Net Start Service Name "- This command launches the stopped service.
  3. "SC Config service_name Start \u003d value" - This command changes the type of service.

The "Value" field can be 3 types:

  • aUTO (automatically);
  • demand (on demand, manually);
  • delayed-AUTO (deferred launch);

The field "Service_name" can be found as follows:

  1. Right-click on the required service and choose a property.
  2. The name of the service is the name that we need

Now click on the downloaded file (turn off unnecessary services. Bat) above the right mouse button and click Edit.

I have the first line stops the service, and the second turns off it and is repeated 4 times with different services. At the end of the pause, so that you can see what was done.

  1. Those. We are looking for service name
  2. Write a stop command or launch
  3. We write a startup type command
  4. Save the file
  5. Click on it just twice the mouse button and that's it. The script will automatically execute your commands.

Thus, if you often disable something or stop, you just need this way to save your time!

Each owner of the iPhone at least once for his life asked as a question as correct and safely turn off the iPhone. There are several answers to this question. Depending on the smartphone itself and its states, the methods that can be turned off the device, change and each of them is completely valid, and is also absolutely safe for the telephone being considered. In this article, three options for rebooting the apple apparatus will be considered.

First, an iPhone shutdown will be considered when it is in the usual mode of operation, it works, and responds to all commands.

Turning off the smartphone in normal condition

To disable the device under consideration under the data, the Subscriber will need to perform some actions by following the following sequence:

  1. First of all, you need to press and hold the power button to turn on the screen to the "Turn off" on the screen, and "cancel" on the screen.
  2. After that, you need to touch the display of the iPhone in the left area of \u200b\u200bthe red color button "Turn off", and then, not taking a finger from the display, to carry out the key to the key until the end of its right area. A similar gesture is called "swipe", and as a result of the iPhone made, it will start to turn off.
  3. To turn on the machine again, you need to wait for the full repayment of its screen, and then click on the POWER button. This will make the phone start in normal mode.

Forced shutdown of smartphone

It happens that the iPhone hangs and stops reacting to any operations, movements, commands, or completely ceases to function. Under such circumstances, it can be rebooted by the following way:

  1. First you need to simultaneously hold the "Home" and "shutdown" keys and hold them down for about 10 seconds. This will help completely turn off the iPhone.
  2. To start the device again, it is sometimes enough just to release the pressed keys, but if this does not happen, you need to briefly press the shutdown button. The smartphone will start loaded as usual.

The method under consideration provides the ability to disconnect and reboot an iPhone when forming a software failure. The benefit of your own smartphone is advised to apply this option Only with extreme need, it is better to use other options for rebooting an apple device.

The third, and at the same time the final method of turning off the iPhone is suitable only if the device is absolutely functioning, and its display has no problems, despite the fact that the inclusion button failed.

Disable gadget without using buttons

You can even manage the iPhone without using any mechanical buttons. The developers provided for the fact that the mechanical buttons can sometimes break, so they created unique control over touch to the display. To do this, the subscriber will need to enable the feature called "Assistive Touch". Using such a function, you can flexibly configure the device management using a variety of gestures, but the "mechanics" is absolutely not needed for this.

ASSISTIVE TOUCH service activation

  1. First you need to go to "Settings", then go to the "main", and then open "universal access".
  2. Then you need to brush the page with the settings of universal access to the end, after which the "Physiology and Motorik" section click on the Assistive Touch string.
  3. In the settings window that appears, the activation slider of the function in question must be translated into the power position. A practically transparent key will appear on the smartphone display.
  4. Finally, you need to touch touchscreen Phone, do it needed within the boundaries of the button mentioned. The display will provide you with the window with available features Activated service.

Turning off an apple smartphone via Assistive Touch

To turn off the iPhona using the function under consideration, it is necessary:

  1. Click on the menu icon of the previously mentioned program.
  2. Among the menu of this service click on the "Apparatus" icon, after which it is to make a long press on the "Screen Lock" item. This should cause the "Turn off" keys, as well as "cancel".
  3. Subsequent actions should be similar to both in the case of the usual turning on the device. Hold the movement of the finger to the right on the "Turn off" button.
  4. To start the device again without using the power button, it must be connected to the PC using a USB cable for this. Consequently mobile device Run in ordinary mode.

The methods discussed above provide the ability to fully turn off or reboot an iPhone in the usual mode, when it happened, or the inclusion button failed. The final method, which provides for the use of the Assistive Touch service, allows you to incredibly flexibly configure the manual with a smartphone using various gestures. But for this you need a fully functioning touchpadAnd the device should work in ordinary mode, since the considered function does not work on the "dependent" device.

Something happened that the computer began to complete work for a very long time when it was turned off. Wines open programsthat Windows 7. Itself closes forcibly refuses.

Completion of hanging programs in Windows 7. without user participation

You have the opportunity to force programs to automatically complete your work when you turn off the computer without pressing the "Forced Completion Completion" button.
To do this in the registry Windows 7. You need to create an AUTOEndTasks string parameter.

This parameter is in the Windows 7 Registry section of HKEY_CURRENT_USER \\ CONTROL PANEL \\ DESKTOP. The value of this parameter "1" Allows operating system Machine to complete the operation of the processes without pressing the "Forced Completion" button. If you choose the value "0" This parameter is not automatically completed.

Or import the next file to the Windows 7 registry:

Windows Registry Editor Version 5.00 "NoLowDiskSpaceChecks" \u003d dword: 00000001 "LinkResolveIgnoreLinkInfo" \u003d dword: 00000001 "NoResolveSearch" \u003d dword: 00000001 "NoResolveTrack" \u003d dword: 00000001 "NoInternetOpenWith" \u003d dword: 00000001 "AutoEndTasks" \u003d "1" "HungAppTimeout" \u003d "1000" "MenushowDelay" \u003d "0" "waittokillapptimeout" \u003d "2000" "lowvelhookstimeout" \u003d "1000" "waittokillserviceTimeout" \u003d "1000" "waittokillserviceTimeout" \u003d "1000" "waittokillservicetimeout" \u003d "1000" "autoendtasks" \u003d "1" "HUNGAPPTimeOut" \u003d "1000" "MenushowDelay" \u003d "0" "WaittokillappTimeout" \u003d "2000" "AutoEndTasks" \u003d "1" "HUNGAPPTimeout" \u003d "1000" "MenushowDelay" \u003d "0" "WaittokillappTimeOUT" \u003d " 2000 "