Real jotto disables WINDOWS boot disk scan

  

I have been doing diskless for a while~! The system that made six Internet cafes was made with sharp ones. With so many versions, I personally think that the 1046 is the most stable and fast. Do not go half a lap to enter the system! There have been many problems encountered. There are still some problems that have not yet been answered very well, such as game updates are not very convenient. Mainly for those Internet cafe owners, there is no computer basis. They just want to copy a plate and leave nothing to worry about that is really convenient ~! But the automatic restore of diskless XP has to make this function more troublesome ~! The current game update is still updated manually by myself.

Helping you prawn here, who has better game update methods is also expected to be under ~! I will be grateful~!

Ok, let's not say more, go to the topic:

I have previously installed the method update for the superuser on the client, so sometimes the client will scan the disk. The action is really hard to get rid of. I have experimented. After this happens, I will set all the disks as super workstations and restart them. After he scans, they will be changed to ordinary users. But there is a time when this method is not very effective, to solve this problem from the original only from WINDOWS itself.

This will use the chkntfs tool ~!

Chkntfs is a utility that system administrators can use to exclude volumes from the scope of inspections performed by autochk programs. The utility runs at the command prompt and has the following command line options:

chkntfs drive: [...]chkntfs /dchkntfs /x drive: [...]chkntfs /c drive: [. ..]drive: Specify the drive letter. /D Restores the computer to its default state, checks all drives at startup and executes the chkdsk command on the drive in question. This will cancel the effect of the /X option. /X Excludes the drive that was checked at default startup. The drive that was excluded by the last execution of this command is not valid at this time. /C If you have set an abnormal bit, schedule chkdsk to run on the next reboot. If no switches are specified, chkntfs will display the abnormal bit status of each drive.

Example:

chkntfs /xc: This command disables chkdsk from running on drive C:

chkntfs /xd:e: This command disables chkdsk on drives D: and E : Running on

The chkntfs /x command is not cumulative and will overwrite any previously created drive exclusions. In the above example, the chkntfs command only blocks chkdsk from checking on drives D and E, and does not check drive C for abnormal bits.

The Chkntfs utility works by modifying the BootExcecute value in the system registry. The BootExecute value can be found in the following registry key:

HKEY_LOCAL_MACHINE\\SYSTEM\\CURRENTCONTROLSET\\CONTROL\\Session Manager

The default value is:

BootExecute:REG_MULTI_SZ:autocheck autochk *

Chkntfs /x added the /k parameter before the asterisk. The /k parameter will prevent checking for abnormal bits on the volume.

For example, the command

chkntfs /x D:

modify this registry key to automatically check autochk /k:d *

through the drive The abnormal bit is set on, and Chkdsk /f is scheduled to run on its own at the next reboot. Chkdsk /x prohibits checking for this abnormal bit. Chkdsk /f can never be run on volumes that are excluded from the scope of the abnormal bit check performed by chkntfs.

In order to run chkdsk /f on a drive that has been excluded by the chkntfs utility, you must run the chkntfs /d option to return the system to its normal state, or edit the BootExecute value in the registry and remove it from the /k parameter. Applicable drive letter.

WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you will be able to resolve problems caused by improper use of the Registry Editor. Use Registry Editor at your own risk.

Chkdsk /f /r allows chkdsk to check for file system errors and bad sectors on a physical disk. By adding an entry to the BootExecute value, Chkdsk /f /r can be scheduled to run itself the next time the system is restarted. For example,

chkdsk c:/f /r

Add the following entry to the BootExecute value:

autocheck autochk /r \\??\\C: Because this is actually It is located in the registry, so chkdsk /f /r is not affected by any chkntfs commands. The only way to disable chkdsk /f /r is to remove the command line from the BootExecute value that references this command.

The Chkntfs.exe utility treats all drives as local drives for nodes. This includes Microsoft Cluster Server (MSCS) physical disk resources in a shared drive array. When using Chkntfs.exe to exclude shared drives in a cluster, you must run an exclude command on each node. This must be done to ensure that each node's registry has the correct entries. You can only run commands for shared drives owned by the node. If the node does not have physical disk resources, you will receive an error message.

Copyright © Windows knowledge All Rights Reserved