tailieunhanh - Windows Admin Scripting Little Black Book- P16
Windows Admin Scripting Little Black Book- P16:This book may not be duplicated in any way without the express written consent of the publisher, except in the form of brief excerpts or quotations for the purposes of review. The information contained herein is for the personal use of the reader and may not be incorporated in any commercial programs, other books, databases, or any kind of software without written consent of the publisher. Making copies of this book or any portion for any purpose other than your own is a violation of United States copyright laws | Reg Query HKLM HARDWARE DESCRIPTION System SystemBiosDate For f tokens 3 I in TYPE Do Echo BIOS Date I Del Nul Set Count Set Version Note The highlighted code above must be placed on one line. Related solution Found on page Modifying the Registry with Shell Scripting 122 Collecting Memory Information PSTAT is a resource kit utility to display running threads from the command line. You can use this tool to display memory information. To display memory information using shell scripting proceed as follows 1. Create a new directory to store all files included in this example. 2. Obtain from the Resource Kit and copy it to the new directory. 3. Start a command prompt and enter . Here scriptfile is the full path of the new directory from step 1 and file name of a script file that contains the following PSTAT Find Memory For F tokens 2 M In Type Do Echo Memory M Del Nul Warning The version of PSTAT that shipped with the NT Resource Kit might cause system errors when run on Windows 2000. You should obtain the latest version from Microsoft. Collecting Processor Information To collect processor information from the command line you can use from the resource kit to extract the appropriate information. To display processor information using shell scripting proceed as follows 1. Create a new directory to store all files included in this example. 2. Obtain from the Resource Kit and copy it to the new directory. 3. Start a command prompt and enter . Here scriptfile is the full path of the new directory from step 1 and file name of a script file that contains the following @ECHO OFF Reg Query HKLM HARDWARE DESCRIPTION System CentralProcessor 0 VendorIdentifier For f tokens 3 I in TYPE Do Echo Processor Vendor I Reg Query HKLM HARDWARE DESCRIPTION System CentralProcessor 0 Identifier For f tokens 5 I in TYPE Do Set FAMILY
đang nạp các trang xem trước