...select an «Item number» to view a topic, «Title number» to return.
«Item 321» Backup and Restore Your Dial-up Connections
«Item 322» FreeWare Utility «» BK ReplaceEm
«Item 323» Set Up A File System For Secure Access In Windows 2000
«Item 324» Manage Performance Monitor Counters
«Item 325» Create and Configure Performance Monitor Trace Logs
«Item 326» Automate Advanced Restart Options For Dual-Boot Configurations
«Item 327» Configure Your Computer To Enter Hibernation
«Item 328» FreeWare Utility «» Attribute Changer
«Item 329» Internet Explorer Stopped Asking You To Remember Passwords
«Item 330» Control Disk Check Countdown At Boot After Incorrect Shutdown
«Item 331» Reset Administrator Password
«Item 332» Control Active Directory Logging
«Item 333» System File Checker Progress-Meter
«Item 334» Bootup Sequence Optimization
«Item 335» Use Group Policy To Audit Registry Keys
«Item 336» Embedded Java Scripting in FTP Sites May Run After Java Scripting Is Disabled
«Item 337» Optimize Indexing Service Performance
«Item 338» How To Replace A Driver That Will Not Start
«Item 339» Close Ports 137-139 On A Dial-Up Connection
«Item 340» FreeWare Utility «» Rname-it
«Item 341» The Registry Size Estimator Tool (Dureg.exe)
«Item 342» Enable/Disable QuickEdit Mode for MS-DOS Programs
«321» Backup and Restore Your Dial-up Connections
Your dial-up connections are located in the Remote Access Phonebook (Rasphone.pbk) found at:
|Documents and Settings|All Users|Application Data|Microsoft|Network|Connections|Pbk
NOTE: Since the Application Data folder is hidden, use Windows Explorer to select the All Users folder. Use Tools|Folder Options|View to check Show hidden files and folders and press OK.
Copy the Rasphone.pbk file to another folder for safe keeping.
To restore the phone book, copy it back and restart your computer.
To move it to another computer, copy it to that computer's |Documents and Settings|All Users\Application Data|Microsoft|Network|Connections|Pbk folder and restart that computer.
«322» FreeWare Utility «» BK ReplaceEm
by Bill Klein. Visit his Home Page.
Welcome to the wonderful world of BK ReplaceEm, your premiere-quality, freeware string-replacing utility for Windows 95/98/NT. At its core, BK ReplaceEm is essentially a text search-and-replace program. However, unlike the search-replace functionality of a standard text editor, BK ReplaceEm is designed to operate on multiple files at once. And you need not only perform one search-replace operation per file -- you can setup a list of operations to perform. If different groups of files need to have different operations performed on them, this is no problem either. You can also specify a backup file for each file processed just in case the replace operation didn't do exactly what you wanted.
When specifying which files to be included in a particular replace operation, you can add one file at a time, or you can tell BK ReplaceEm to use all the files from a particular folder -- or the files from that folder that match a given file filter (such as *.txt or *.html). You can even specify to include all files that don't match a particular filter. Additionally, you can decide to include the files from all subfolders of that folder.
One very powerful feature of BK ReplaceEm is that you can specify that the destination of the altered file be some other location than where it originally came from. This is handy, for instance, if you want to have some search-replace operations performed on a particular file and have it saved to a destination file, and then want to have different search-replace operations performed on the same file, and have it saved to a different location.
Another powerful ability of BK ReplaceEm is to make use of regular expression search-replace operations, as well as range search-replace operations. These are, in fact, so powerful and complex that most users will probably not need to mess around with them. They are, however, vital in certain situations, and turn BK ReplaceEm into a much more intelligent text processor.
When the replace operations are performed, a log file is generated to let you know if everything went ok; Information about which files were processed, where they were saved to, where they were backed up to, and how many replace operations were performed on them are provided.
There are a great many things you can do with BK ReplaceEm to improve your productivity. Personally, I wrote the program because, although there were many search-replace programs available, they were either too much of a hassle to use (requiring one to learn an entire scripting language just to do some search-replace operations), or weren't powerful or flexible enough to do what I wanted. This entire web site is maintained across its primary site and its mirrors using BK ReplaceEm (see the help file for an explanation of how this is done). Still, there are some features which would be desirable to have but which are not yet in place in the current version. If you have any suggestions, don't be afraid to let me know.
"This program requires Windows 95/98/NT4/W2K, or better. Click here to download it."
«323» Set Up A File System For Secure Access In Windows 2000
At a basic level, file system security begins by choosing the appropriate file system. Windows 2000 includes three different file systems: NTFS, FAT32, and FAT.
The NTFS file system is the recommended file system because of its advantages in reliability and security and because it is required for large drives. The FAT and FAT32 file systems are similar to each other, except that FAT32 is designed for larger disks than FAT. NTFS has always been a more powerful file system than FAT or FAT32. Windows 2000 Server has a new version of NTFS that includes many important security features.
For a detailed discussion of this subject, see MS Knowledge Base Article ID: Q300691.
«324» Manage Performance Monitor Counters
This Item describes how to manage Performance Monitor counters.
How to Add Counters to System Monitor
1. Click Start, point to Programs, point to Administrative Tools, and then click Performance.
2. Right-click the System Monitor Details pane, and then click Add Counters.
3. To monitor any computer on which the monitoring console is run, click Use local computer counters. Or, to monitor a specific computer, regardless of where the monitoring console is run, click Select counters from computer, and then type a computer name. Note that by default, the name of the local computer is selected.
4. Under Performance object, click an object to monitor. The Processor object is selected by default.
5. To monitor all counters, click All counters. Or, to monitor only selected counters, click Select counters from list, and then select the counters you want to monitor. The % Processor Time counter is selected by default.
6. To monitor all instances of the selected counters, click All instances. Or, to monitor only selected instances, click Select instances from list, and then select the instances you want to monitor. The _Total instance is selected by default.
7. Click Add.
How to Delete Counters from System Monitor
1. Click Start, point to Programs, point to Administrative Tools, and then click Performance.
2. Right-click the System Monitor Details pane, and then click the name of the counter you want to delete.
3. Press DELETE.
How to Obtain Details About Counters
1. Click Start, point to Programs, point to Administrative Tools, and then click Performance.
2. Right-click the System Monitor Details pane, and then click Add Counters.
3. Under Performance object, click an object.
4. Under Performance counters, click the counter for which you want information.
5. Click Explain.
«325» Create and Configure Performance Monitor Trace Logs
This Item describes how to create and configure Trace logs.
How to Create a Trace Log
To create or modify a log configuration, you must have Full Control permission for the following Registry key that controls the Performance Logs and Alerts service:
HKLM\SYSTEM\CurrentControlSet\Services\SysmonLog\Log Queries
To create a trace log:
1. Click Start, point to Programs, point to Administrative Tools, and then click Performance.
2. Double-click Performance Logs and Alerts, and then click Trace Logs
NOTE: Any existing logs are listed in the Details pane. A green icon indicates that the logs are running, and a red icon indicates logs that have stopped.
3. Right-click a blank area in the Details pane, and then click New Log Settings.
4. In the Name box, type the name of the trace log you want to create, and then click OK.
NOTE: By default, the log file is created in the PerfLogs folder in your root folder, a sequence number is appended to the file name you typed and the sequential trace file type with the .etl file extension. Use the Log Files and Advanced tabs to modify these parameters or define other parameters for your log. To define providers and events to log, use the General tab. To specify when you want logging to occur, use the Schedule tab.
How to Configure Trace Logs
Trace logging of file details and page faults can generate an extremely large amount of data. Because of this, you should limit trace logging by limiting the file details and page fault options to a maximum of two hours. Note that only one instance of each trace provider can be enabled at any given time.
Define Trace Providers and Events
1. Click Start, point to Programs, point to Administrative Tools, and then click Performance.
2. Double-click Performance Logs and Alerts, and then click Trace Logs.
3. In the Details pane, double-click the log.
4. For a list of the installed providers and their status (enabled or not), click Provider Status. By default, the Nonsystem providers option is selected to keep trace-logging overhead to a minimum.
5. If you click Events logged by system provider, a default provider (the Windows kernel trace provider) is used to monitor processes, threads, and other activity. To define events for logging, click to select the appropriate check boxes.
6. If you click Nonsystem providers, you can select the data providers you want, for example, if you have written your own providers. Use the Add or Remove buttons as needed.
Define Trace Buffers
1. Click Start, point to Programs, point to Administrative Tools, and then click Performance.
2. Double-click Performance Logs and Alerts, and then click Trace Logs.
3. In the Details pane, double-click the log, and then click the Advanced tab.
4. In the Buffer size box, specify the size (in kilobytes) of the buffer you want to use for trace data.
5. In the Minimum box, specify the smallest number of buffers you want to use for trace data.
6. In the Maximum box, specify the largest number of buffers you want to use for trace data.
7. To have the trace provider periodically flush the buffers, click to select the Transfer data from buffers to log file every check box, and then specify the transfer interval in seconds.
«326» Automate Advanced Restart Options For Dual-Boot Configurations
If your computer is configured to dual-boot to either Windows XP or Windows 2000, the process to boot to the other operating system can be slow. For example, if you want to reboot into Safe mode under either operating system, you have to watch the computer reboot, monitor the power-on self tests and various BIOS messages, select which operating system you want to boot with from the Startup menu, and then press F8 at the exact moment to enable the Advanced Boot menu. You can then select your Safe mode boot options from the Advanced Boot menu.
This Item describes a method you can use to create a custom Advanced Restart menu on the Start menu. You can use the Advanced Restart menu to preselect advanced restart options before you restart your computer. After you select your restart options, you are prompted to restart, and your computer starts with your preselected options, and does not require that you press any keys during startup.
IMPORTANT: The following procedure assumes that you have a dual-boot configuration with Windows XP and Windows 2000. Also, although the following procedure works correctly, Microsoft does not support this procedure.
1. Create a shortcut that is named Advanced Restart on the Windows XP Start menu.
2. For the target path, use the msconfig -4 command. For example, you might use the c:\windows\pchealth\helpctr\binaries\msconfig.exe -4 command.
3. Create the same shortcut with the same path for the Windows 2000 Start menu. This shortcut on the Windows 2000 Start menu should use the path to the Msconfig.exe tool in the Windows XP folder.
The Advanced Restart shortcut you created starts Msconfig.exe with a switch that loads the Boot.ini file properties dialog box. From this dialog box, you can select the default operating system, Safe mode options, and other advanced boot options. After you select the restart options and press OK, you are prompted to restart your computer. When your computer restarts, it starts with the options you previously selected, and does not require that you press any keys during startup.
Note that when you boot into Windows XP or Windows 2000 after you use Msconfig.exe, Msconfig.exe automatically starts in diagnostic mode.
«327» Configure Your Computer To Enter Hibernation
When a computer enters hibernation, a snapshot of all computer settings and memory contents of a computer is taken, the information is saved to the local hard disk, and then the computer is turned off. When you restart the computer, all the settings and memory contents are restored to their original state. Unlike the standby state, the computer does not require power to maintain itself when it enters hibernation. All documents and programs are restored to their original state when the computer comes out of hibernation. The following describes how to configure a Windows 2000-compatible computer that supports Advanced Configuration and Power Interface (ACPI) to enter hibernation.
Configure the Computer to Enter Hibernation
Use the following procedure to configure your computer to turn itself off after a period of inactivity and enter hibernation.
1. Click Start, point to Settings, and then click Control Panel.
2. Double-click the Power Options icon, and then click the Hibernate tab.
3. Click to select the Enable hibernate support check box (if it is not already selected).
4. Click the Power Schemes tab.
5. In the System Hibernates box, click the period of time that you want the computer to be inactive before it enters hibernation, for example, After 1 hour.
NOTE: The System Hibernates box is displayed on the Power Schemes tab if the Enable hibernate support check box has been selected.
6. Click Apply, and then click OK.
Put the Computer into Hibernation Manually
1. Click Start, and then click Shutdown.
2. Click Hibernate in the Shutdown Windows box, and then click OK.
Troubleshooting
» You must be logged on as an Administrator or a member of the Administrators Group to enable hibernation. If your computer is connected to a network, network policy settings may prevent you from completing this procedure.
» To put your computer into hibernation, the basic input/output system (BIOS) of the computer must support this option.
» Hibernation is not practical for computers that function as servers because the server must be available; hibernation makes a server unavailable.
» The procedures described in this Item are for computers that support ACPI; they are not for computers that support Advanced Power Management. The procedure for Advanced Power Management may vary because the BIOS of the computer is responsible for hibernation. Refer to your computer manual for complete instructions for this procedure.
REFERENCES
For additional information, click the number below to view the article in the Microsoft Knowledge Base:
Q242495 Troubleshooting Advanced Power Management in Windows 2000
«328» FreeWare Utility «» Attribute Changer
Copyright © 1999 - 2002 by Romain Petges Features Page
Attribute Changer is a power user tool to change all kind of file and folder attributes, date and time and even NTFS compression. It features an easy to use interface and is loaded with exciting features.
Basic Features:
» Change standard attributes
» Change date and time
» Online error reporting
» Online help
» Windows 9x/NT/2000/XP shell integration
Basic features include changing file and folder attributes within en masse. Be aware that not all attributes are available on every Windows platform, but Attribute Changer is smart enough to handle all these exceptions without problems.
A really useful feature is the compression/decompression of files stored on the Windows NT/2000 and XP NTFS file system. Attribute Changer has an optimized algorithm for changing attributes so that even open files not requesting an exclusive access can be manipulated. This is only true for standard attribute changes, not date, time and compression state changes. Furthermore, date and time on files and folders can be partially changed. In this case, you can advise Attribute Changer not to change the whole object data, but only parts such as day, month, year, seconds, minutes or hours.
All files that were locked during the processing are logged dynamically when they are accessed by Attribute Changer's processing engine. The progress can be monitored on the "Activity and Results".
Advanced Features:
» Compress files (NT/2000/XP using NTFS)
» Partial date/time modifications
» Define file/folder filters
» Define file/folders exceptions
» Recurse folders if desired
» Save settings for further use
» Self-healing application
Filters and exceptions should be used to fine tune the process. Filters include attributes, size, date and time. Be aware that not all filter options are available on every Windows platform. For example, you can filter the objects based on date and attributes. You can even ignore some attributes by graying out the option in the attribute filter settings. They can also be globally deactivated by using the corresponding checkbox on the "Filters and Exceptions" configuration tab.
Attribute Changer allows you to repair corrupt file and folder dates. Corrupt dates are represented by values not falling in the range from 1 January 1980 to 31 December 2099. They can be repaired by checking the corresponding option in the file and folder filters and specifying a valid date in the file and folder attributes tab.
Exceptions should be used to filter out files and directory entries. Be aware that the folder exceptions did not exclude the folder with his files, it only filters out the directory name. Using wildcards (* and ?) greatly improves the possibilities of exceptions.
«329» Internet Explorer Stopped Asking You To Remember Passwords
If Internet Explorer doesn't ask you to remember passwords, you can alter this behavior by performing the following Registry hack. Open RegEdit and navigate to:
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main
Add or modify the Data Name: "FormSuggest PW Ask", Data Type: REG_SZ, Value: yes
«330» Control Disk Check Countdown At Boot After Incorrect Shutdown
After an incorrect shutdown, Windows will perform a CHKDSK to insure disk stability. The CHKDSK starts after a certain time delay, which gives the user an opportunity to avoid running CHKDSK. This time, in seconds, can be controlled with this Registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager
Data Name: "AutoChkTimeOut", Data Value: 10 (Default = 10, Disable Countdown=0)
One can also use the command CHKNTFS.EXE to configure this, along with excluding certain drives from boot up check, or forcing boot check of drives. Run CHKNTFS.EXE /? to see all of the parameters.
«331» Reset Administrator Password
If you have forgotten the Administrator password you can go to the WINNT\system32\config folder and delete these three files: SAM, SAM.SAV, and SAM.LOG.
Deleting these files will delete all accounts along with passwords, so you must recreate all users again. However, the Administrator account will continue to exist but without a password.
If your Windows 2000 is installed on a FAT16 or 32 partition then just use a standard boot disk to get access.
» Use one of the Password Remover utilities found on this Files Page, which is also able to edit the SAM files and reset the password without damaging the other accounts.
» Use a standard bootdisk for Win9x to access to boot partition and delete the files.
If your Windows 2000 is installed on a NTFS partition then you can:
» Use one of the Password Remover utilities found on the Files Page, which is also able to edit the SAM files and reset the password without damaging the other accounts.
» Install a second Win2K on another partition and access the old Win2K through that and delete the files
«332» Control Active Directory Logging
If you have problems with your Active Directory then you can increase the debug level to gather information about:
» Knowledge Consistency Checker
» Inialization/Termination
» Service Control
» Name Resolution
» Backup
» LDAP Interface Events
» Global Catalog
» Inter-site Messaging
» Security Events
» ExDS Interface Events
» MAPI Interface Events
» Replication Events
» Directory Access
This can be accomplished at the Registry key:
HKLM\SYSTEM\CurrentControlSet\Services\NTDS\Parameters
Data Name: "Diagnostics", Data Type: REG_DWORD, Data Value: 5 (5 = Max, 3 = Med, 1 = Min, 0 = None)
NOTE: Exercise caution with the Maximum setting as it will make heavy use of resources.
«333» System File Checker Progress-Meter
You can choose to display the System File checker progress-meter with this Registry tweak:
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
Data Name: "SFCShowProgress", Data Type: REG_DWORD, Data Value: 1 (Default = 0 Disabled).
«334» Bootup Sequence Optimization
WinXP has its bootup sequence optimized compared to Windows 2000. One can take the WinXP files used for the bootup sequence and use them on Windows 2000. There are two files one must replace:
NTLDR
» Switches to 32-bit memory
» Starts mini-file system
» Reads BOOT.INI and present selection
» Starts NTDETECT
» Starts NTOSKRNL
» Loads HAL(Hardware Abstraction Layer), Registry hives and drivers
NTDETECT
» Scans hardware
Go here to obtain these two WinXP Bootfiles.
«335» Use Group Policy To Audit Registry Keys
The Microsoft Knowledge Base Article Q315416 describes how to use Group Policy to configure auditing of Windows Registry keys.
«336» Embedded Java Scripting in FTP Sites May Run After Java Scripting Is Disabled
When you disable the Scripting of Java applets option in Internet Explorer (on the Tools menu, click Internet Options, click the Security tab, and then click Custom Level ) and then attempt to run an embedded Java script at a File Transfer Protocol (FTP) site, you may receive no warning message and the Java script may run anyway. This behavior can cause arbitrary code to run when you visit any given Web site.
To work around this issue, follow these steps:
1. Click Tools, click Internet Options, and then click the Advanced tab.
2. Under Browsing, click to clear the Enable folder view for FTP sites check box.
3. Click OK, and then connect to the FTP site.
«337» Optimize Indexing Service Performance
Indexing service performance depends on several factors including the number and size of documents that are indexed, the rate at which queries are submitted, and the complexity of the queries. Performance is also affected by the amount of computer resources that are available to the Indexing service. A computer with the minimum hardware configuration for Windows 2000 can process queries efficiently if the number of simultaneous queries is not too high. For a larger organization that serves many users and with a large number of documents to be indexed, a more powerful configuration may be required. For example, performance can be improved by adding more memory. To optimize performance, you can also tune Indexing service performance based on its usage requirements.
You can optimize Indexing service performance based on how often the service is used. You do this by specifying a pre-defined or custom Indexing service usage option. Each usage option defines different performance settings for the indexing and querying processes. These settings determine the amount of computer resources that are devoted to each process.
The MS Knowledge Base Article Q317586 describes how to optimize Indexing service performance on a Microsoft Windows 2000-based computer.
«338» How To Replace A Driver That Will Not Start
You can use the following procedure to replace any Windows 2000 System file. In this example, you replace the Winnt\System32\Drivers\Beep.sys file. However, you can replace any other Windows 2000 system file by specifying the correct path and file name.
To use this procedure, you must have these items:
» A current Emergency Repair Disk (ERD) that was created by the computer that is going to receive the repair.
» A bootable computer with a text editor.
NOTE: In general, you should use an ERD only on the computer on which the ERD was created.
Modify the ERD
1. On a working computer, remove the Read Only attribute from the Setup.log file on the ERD. Then, open the file by using a text editor such as Notepad. This file is typically a Hidden, System file on the ERD.
2. Replace all of the lines under the [Files.WinNT] heading except for:
\WINNT\system32\drivers\beep.sys = "beep.sys","f7fb"
Modify the line to read:
\WINNT\system32\drivers\beep.sys = "beep.sys","99999","\","ERD disk","beep.sys"
The "99999" replaces the "f7fb checksum (in this example) that the original ERD used. This ensures that the repair process will replace this file. You are prompted if you perform a manual repair process, but you are not prompted if you perform a fast repair.
The backslash character (\) indicates that the repair process should look in the root folder of the disk from which to copy the file. The "ERD disk" entry prompts you for the ERD if it is not in the drive when Setup needs to copy it.
The last entry in the line is the file name as it appears on the ERD. This is used as a tag file to ensure that the proper disk is inserted from which to copy the files.
3. Save the Setup.log file back to the ERD.
4. Copy to the root folder of the ERD the file that will replace the corrupted file (in this case, Beep.sys).
If there is not enough room on the ERD for the file you are replacing, you can delete any files other than Setup.log from the ERD to make room. This makes the ERD unusable for other repair functions, so keep the original ERD in a safe place. You can also use a second disk that contains the file that is to be replaced and insert it when you are prompted for ERD.
Run the ERD
1. Insert the Windows 2000 CD-ROM, or the first floppy disk that you created from the CD ROM, in the appropriate drive.
2. Restart the computer. If you are using floppy disks, respond to the prompts that request each floppy disk in turn.
3. When the text-based part of Setup begins, choose the Repair or Recover option by pressing R.
4. If you are using floppy disks, insert the Windows 2000 CD-ROM in the appropriate drive when you are prompted.
5. When you are prompted, choose the Emergency Repair process by pressing R.
6. When you are prompted, press F for the Fast Repair process.
7. Follow the instructions on the screen. When you are prompted, insert the ERD in the appropriate drive.
After the Emergency Repair process is completed, your computer will restart if the repair process was successful.
Troubleshooting
If this procedure does not work, check for these common errors:
» Is the full path for the file correct? This mistake may occur if you change the file name in the example, but not its path.
» Does the target folder for the file match the "TargetDirectory" value at the top of the Setup.log file?
» Are all of the items in the correct order in the modified Setup.log file entry?
» Are there any typographical errors? Are all items contained in quotation marks as they are in the example?
» Did you add all of the commas as in the example?
» Did you quit Setup (by pressing F3) after you replaced the appropriate files from the floppy disk? If not, the file may have been replaced again later in the files list if you did not remove them as described in step 2.
«339» Close Ports 137-139 On A Dial-Up Connection
Here is a procedure to close ports 137, 138, and 139 on a dial-up connection or a direct dialup. Use the Device Manager for this by clicking on:
My Computer|Properties|Hardware|Device Manager|View|Show Hidden Devices|
Non Plug and Play Drivers|NetBios over Tcpip|Driver|Disable|OK out
Reboot your computer and ports 137-139 should no longer be open.
«340» FreeWare Utility «» Rname-it
by Kent H. E-mail Kent.
"A Win95/98/NT file renaming utility specialized for batch (en masse) process renaming. It allows the user to select multiple files and rename them all at once. Files can easily be organized and grouped by renaming to a new common prefix and/or padded with a unique numerical or alphabetical value for sorting purposes. Also features Real Time Preview and Full (Final) Preview to ease the user in a complicated renaming procedures. Great for graphics collectors and webmasters!"
[ This utility has been running successfully on my W2K system for more than six months. I highly recommend it. Click here to go to the download site. ]
«341» The Registry Size Estimator Tool (Dureg.exe)
This Item describes how to use the Registry Size Estimator tool (Dureg.exe) to determine the size of the Registry on a Microsoft Windows 2000-based computer. Dureg.exe is included in the Microsoft Windows 2000 Resource Kit, and is also available as a free download from this Microsoft web page.
Dureg.exe is a command-line utility that you can use to determine how much data is stored in the Registry, or in any Registry subtree, key, or subkey. You can also use this tool to search the Registry or any Registry subtree for occurrences of a specific text string.
Dureg.exe measures data; it does not measure space. Note that because the space that data occupies varies with the storage method and the amount of free disk space that is available, the size of data and the amount of disk space that is used are not equal. Additionally, because Dureg.exe measures data, it does not account for fragmented-unused space in the Registry.
Overview of the Dureg.exe Tool
Dureg.exe uses the following syntax:
dureg /a | / subtree switch " registry_path "
dureg /s / subtree switch " string "
The parameters that you can use with Dureg.exe are:
» /a : Use this parameter to determine the size of the entire Registry.
» / subtree switch : Use this parameter to determine the size of the Registry subtree, where subtree switch is one of the following:
» cr : This parameter returns the size of the HKEY_CLASSES_ROOT subtree.
» cu : This parameter returns the size of the HKEY_CURRENT_USER subtree.
» lm : This parameter returns the size of the HKEY_LOCAL_MACHINE subtree.
» u : This parameter returns the size of the HKEY_USERS subtree.
» " registry_path " : This parameter specifies the path of the Registry key whose size you want to determine. Use it with the subtree switch parameter to find the size of a key in a Registry subtree.
» /s " string " : Use this parameter to search for a specific string in the Registry.
» /s subtree switch " string " : Use this parameter to search for a specific string in a Registry subtree, where subtree switch is one of the following:
» cr : This parameter searches the HKEY_CLASSES_ROOT subtree.
» cu : This parameter searches the HKEY_CURRENT_USER subtree.
» lm : This parameter searches the HKEY_LOCAL_MACHINE subtree.
» u : This parameter searches the HKEY_USERS subtree.
Examples:
To determine the size of the Registry, type the following command at the Command Prompt, and then press ENTER:
dureg /a
A list that is similar to the following is displayed:
Size of HKEY_CLASSES_ROOT : 7038858
Size of HKEY_USERS : 368850
Size of HKEY_LOCAL_MACHINE : 16865967
Total Registry data size: 24273675
To determine the size of the HKEY_USERS subtree, type the following command at the Command Prompt, and then press ENTER:
dureg /u
A message similar to the following is displayed in the Command Prompt window:
Size of HKEY_USERS : 368850
To determine the size of the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft Registry key, type the following command at the Command Prompt, and then press ENTER:
dureg /lm "Software\Microsoft"
A message that is similar to the following is displayed:
Size of HKEY_LOCAL_MACHINE\Software\Microsoft : 4580238
To search the Registry for all occurrences of "Internet Explorer", type the following command at the Command Prompt, and then press ENTER:
dureg /s "Internet Explorer"
All Registry entries that contain the string "Internet Explorer" are listed.
To search the HKEY_CLASSES_ROOT subtree for all occurrences of "Content Type", type the following command at the Command Prompt, and then press ENTER:
dureg /s /cr "Content Type"
All entries in the HKEY_CLASSES_ROOT subtree that contain the string "Content Type" are listed.
«342» Enable/Disable QuickEdit Mode for MS-DOS Programs
If you enable QuickEdit mode, you can use a mouse to copy and paste MS-DOS text. The following paragraphs describe how to disable and enable the QuickEdit mode for both the Command Prompt window and MS-DOS programs.
In QuickEdit mode, you can copy text between a Command Prompt window and Windows-based programs, and you can paste text into a Command Prompt window by using a right-click operation. QuickEdit mode is enabled by default in Windows 2000.
How to Disable and Enable QuickEdit Mode
1. Click Start, point to Programs, point to Accessories, and then click Command Prompt.
2. Right-click the title bar, and then click Properties.
3. Click the Options tab, and then perform either of the following steps:
» Click to clear the QuickEdit mode check box to disable QuickEdit mode, and then click OK.
-or-
» Click to select the QuickEdit mode check box to enable QuickEdit mode, and then click OK.
4. In the Apply Properties To Shortcut dialog box, perform either of the following steps:
» Click Apply properties to current window only to use QuickEdit mode in the current window.
-or-
» Click Modify shortcut that started this window to apply QuickEdit mode every time you start the MS-DOS-based program.
5. Click OK.
How to Copy and Paste When QuickEdit Mode Is Enabled
1. To copy text from the Command Prompt window, click and drag the mouse pointer over the text that you want to copy, and then either press ENTER or right-click anywhere in the window.
The text is copied to the Windows clipboard.
NOTE: If you select text in an MS-DOS-based program, the selection is always rectangular-shaped, even if the lines of text have to be truncated on the left side, the right side, or on both sides. In contrast, when you select text in a Windows-based program, your selection follows the flow of your text, even if the text is not formed in a rectangular block.
2. To paste the text from the Windows clipboard to the Command Prompt window, right-click anywhere in the window.
The text is pasted to the Command Prompt window.
NOTE: You cannot paste text to either a Command Prompt window or an MS-DOS-based program if either the Command Prompt or the program is running in full-screen mode.
How to Copy and Paste When QuickEdit Mode Is Disabled
1. Right-click the title bar, click Edit on the Control menu, and then click Mark.
2. Drag the mouse to select the data you want to copy.
3. Either press ENTER or right-click anywhere in the window.
NOTE: If you select text in an MS-DOS-based program, the selection is always rectangular-shaped, even if the lines of text have to be truncated on the left side, the right side, or both sides. In contrast, when you select text in a Windows-based program, your selection follows the flow of your text, even if the text is not formed in a rectangular block.
4. Position the cursor where you want the text to be inserted.
5. Right-click the title bar, click Edit, and then click Paste.
NOTE: You cannot paste text to either a Command Prompt window or an MS-DOS-based program if either the Command Prompt or the program is running in full-screen mode.
| Copyright © 2000-2008 treewalkdns.com All rights are reserved |