Batch Scripts / Programs.

Page 1 of 5 123 ... LastLast
  1. Paul Black's Avatar
    Posts : 12,150
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #1

    Batch Scripts / Programs.


    24-Feb-2021 - Newly UPDATED Instructions.
    25-Feb-2021 - Newly UPDATED batch scripts.

    UPDATED:

    I Don't know if I will keep this post [ thread ] going. I try and monitor the traffic by looking at the number of views and by the number of people clicking Thank at the bottom of this post, you Don't even need to post or leave a reply.

    • 25-Feb-2021
      Updated several scripts to include a Desktop Folder for the output rather than clutter up the Desktop with files.

    • 27-Feb-2021
      Replaced Event_Viewer_Clear_ALL_Logs with Event_Viewer_Logs_Backup_&_Event_Viewer_Clear_ALL_Logs. This gives an additional option of backing up the Application Log, Security Log, and System Log, prior to clearing them if you want to.

    • 28-Feb-2021
      Added CHKDSK_WININIT_Results which extracts the information for Event ID:26212 [ chkdsk ] and Event ID:1001 [ wininit ] after running either Option 2, Option 3, or Option 4, from CHKDSK_ALL_Parameters_ALL_Drives FIRST.

    • 28-Feb-2021
      Added WHOAMI which is a Utility that can extract useful information such as the Username and Group Information along with the respective Security Identifiers [ SID ], Privileges, and Logon Identifier [ Logon ID ] for the Current User [ Access Token ] on the OS [ Local System ].

    • March
      I might add FileSize, LogFileName, Name, and NumberOfRecords currently held in the folders . . .

      • Application
      • CaptureLibLog
      • HardwareEvents
      • Key Management Service
      • Security
      • System
      • Windows PowerShell

      . . . for example to Event_Viewer_Logs_Backup_&_Event_Viewer_Clear_ALL_Logs.

    • 13-Mar-2021
      Streamlined SFC.

    The members and guests who use this forum know how professional, informative and helpful it is!

    In order to help and assist members to solve their problems/issues we often ask them to run certain programs and perform certain tasks and then upload [ post ] the results to the forum for us to look at. To help make doing this easier and to avoid typing errors etc, I have written the following batch scripts.

    As some of the batch scripts below need to be run with administrative rights, those batch scripts will automatically elevate you to the required administrative level.

    I have tried to make these batch scripts as End User friendly as possible.

    These batch scripts have taken a very very long time to write and test. If you find the information useful or informative, or if you download any of the batch scripts, then please click Thank at the bottom of this post, it will be very much appreciated!



    MENU

    Batch Scripts -
    Detailed information and instructions for EACH of the following can be found by scrolling
    down the thread to the relevant section.



    Defender SmartScreen [ or other AV ] may give you an unsafe message when you click ANY of the files above. I can assure you that these files are SAFE to Download and Run. For further information, please see this Tutorial . . .

    > How to Turn On or Off Microsoft Defender SmartScreen for Apps and Files from Web in Win 10

    [CODE] Tags - Insert the Desktop #.log file data DIRECTLY into your Post :

    [1] Open the #.log file [ where # is the FileName in Notepad.
    [2] Press the Ctrl + A keys together.
    [3] Press the Ctrl + C keys together.
    [4] In your post, click the Hashtag icon #.
    [5] Click INSIDE the [CODE]Here[CODE] tags and press the Ctrl + V keys together.

    • In your post it will look like this . . .

    Code:
    
    <<< Results Here >>>



     Information and Instructions

    CBS / CSI Corruption Summary:

    DOWNLOAD: & _UPLOAD_: Available from the MENU at the TOP of this thread.



    This analyses the CBS.log and extracts the data contained in a predefined set of criteria [ if it exists ]. It can perform this in two ways, the first being for ALL DAYS, and the second being for TODAY ONLY. If the data is available, it will create a CBS_CS_ALL.log file and a CBS_CS_TOD.log file respectively on the Desktop.

    If the CBS.log does NOT contain ANY of the data, you will receive one of these messages . . .

    ALL DAYS - NO CBS / CSI Corruption Summary was found.
    TODAY - NO CBS / CSI Corruption Summary was found.

    CBS Errors:

    DOWNLOAD: & _UPLOAD_: Available from the MENU at the TOP of this thread.



    This analyses the CBS.log and extracts the data contained in a predefined set of criteria, if it exists. It can perform this in two ways, the first being for ALL DAYS, and the second being for TODAY ONLY. If the data is available, it will create a CBS_Err_ALL.log file and a CBS_Err_TOD.log file respectively on the Desktop.

    If the CBS.log does NOT contain ANY of the data, you will receive one of these messages . . .

    ALL DAYS - NO CBS ERRORS were found.
    TODAY - NO CBS ERRORS were found.

    CHKDSK - ALL Parameters - ALL Drives:

    DOWNLOAD: & _UPLOAD_: Available from the MENU at the TOP of this thread.



    Option [6] creates a WinInit_Log.log file on the Desktop.

    chkdsk is a Windows utility program for detecting and repairing any corruptions of the file system [ FAT16, FAT32, and NTFS drives ] etc. When it is configured to run [ scheduled manually ] on the next REBOOT it basically means that the OS drive has been flagged as DIRTY. Obviously, if it is NOT configured to run [ scheduled manually ] on the next REBOOT it will show as NOT DIRTY. The current state of chkdsk can be seen by running Option [1].

    Sometimes chkdsk needs to be run two or three times for the best possible results.

    At the top of the batch script I have added which drive the OS [ Operating System ] is installed on [ usually C:\ but NOT always ], along with which drives are currently available OR attached along with their labels.

    This batch script can run on ANY drive available OR attached.

    Some of the options available are . . .

    Option [1] Check if chkdsk is configured [ scheduled ] to run on the next REBOOT.
    Option [2] chkdsk [ non-invasive Read-Only Mode + Detect Mode ].

    This analyses the OS drive and reports any errors or corruptions, but does NOT repair them.

    Option [3] chkdsk /F [ Repair Mode ].

    Run this if there any errors or corruptions reported after running Option [1] above. This one DOES repair any errors [ file system errors or corruptions ] on the OS drive but does NOT scan for any bad sectors. This option requires a REBOOT in order to run. After it has run, Windows will automatically REBOOT.

    Option [4] chkdsk /R [ Repair Mode + Scan for Bad Sectors ].

    Run this if there are still any errors or corruptions reported. This one DOES repair any errors [ file system errors or corruptions ] on the OS drive and DOES scan for any bad sectors. It then attempts to repair or recover any readable information [ implies /F ]. This option requires a REBOOT in order to run. After it has run, Windows will automatically REBOOT.

    Option [5] Cancel chkdsk to run on the next REBOOT.
    Option [6] Extract the wininit data.

    This extracts the wininit LAST RUN data ONLY after running either chkdsk /F or chkdsk /R. Either of these MUST be run FIRST in order to have the current run data available.

    CHKDSK_WININIT_Results:

    DOWNLOAD: & _UPLOAD_: Available from the MENU at the TOP of this thread.



    Option [1] creates a ChkDsk_WinInit_Results_LAST_Run.log file on the Desktop.
    Option [2] creates a ChkDsk_WinInit_Results_ALL_Runs.log file on the Desktop.

    You MUST run either Option 2, Option 3, or Option 4, from CHKDSK_ALL_Parameters_ALL_Drives.bat FIRST.

    This batch script extracts the results for Event ID:26212 [ chkdsk ] and Event ID:1001 [ wininit ]. The .log files created contain the following information . . .

    Option [1] - Extracts the chkdsk & wininit results - LAST run.

    • LAST chkdsk scan run on the LIVE OS.
    • LAST chkdsk log created on the LIVE OS.
    • LAST chkdsk scan run during BOOTUP.
    • LAST chkdsk log created during BOOTUP.

    Option [2] - Extracts the chkdsk & wininit results - ALL runs.

    • ALL chkdsk scans run on the LIVE OS.
    • ALL chkdsk logs created on the LIVE OS.
    • ALL chkdsk scans run during BOOTUP.
    • ALL chkdsk logs created during BOOTUP.

    Disk Cleanup - ALL Modes:

    DOWNLOAD: Available from the MENU at the TOP of this thread.



    This contains ALL of the Disk Cleanup Modes available.

    Some of the Options available are . . .

    Option [1] Disk Cleanup - Standard Mode.

    • Select the HDD that you want to clean.
    • Check OR Uncheck the appropriate boxes.
    • Confirm Delete Files.

    Option [2] Disk Cleanup - Advanced Mode.

    WARNING: THIS WILL ALSO AUTOMATICALLY CLEANUP ALL ATTACHED DRIVES.

    • Check OR Uncheck the appropriate boxes [ it runs automatically ].

    Option [3] Disk Cleanup - LOWDISK Mode.

    • Select the HDD that you want to clean.
    • Uncheck the appropriate boxes [ ALL checkboxes are Checked by default ].
    • Confirm Delete Files.
    • Close the Disk Space Notification box.

    Option [4] Disk Cleanup - VERYLOWDISK Mode.

    • ALL checkboxes are Checked by default [ it runs automatically ].
    • Close the Disk Space Notification box.

    DISM Errors:

    DOWNLOAD: & _UPLOAD_: Available from the MENU at the TOP of this thread.



    This analyses the DISM.log and extracts the data contained in a predefined set of criteria, if it exists. It can perform this in two ways, the first being for ALL DAYS, and the second being for TODAY ONLY. If the data is available, it will create a DIS_Err_ALL.log file and a DIS_Err_TOD.log file respectively on the Desktop.

    If the DISM.log does NOT contain ANY of the data, you will receive one of these messages . . .

    ALL DAYS - NO DISM ERRORS were found.
    TODAY - NO DISM ERRORS were found.

    DXDIAG [ DirectX Diagnostics ]:

    DOWNLOAD: Available from the MENU at the TOP of this thread.



    This creates a DX_Diag.log file on the Desktop.

    DxDiag is a MS diagnostic tool that is extremely useful for troubleshooting and identifying any problems or issues.

    This gives detailed [ technical ] information about the OS including Make, Model, OS Version, GPU, CPU, BIOS, DirectX, Hardware, Drivers [ Outdated and Missing Drivers ], Audio, Display, Video and other Multimedia Applications and Features etc.

    The information produced falls into the categories . . .

    • System Information
    • DxDiag Notes
    • DirectX Debug Levels
    • Display Devices
    • Sound Devices
    • Sound Capture Devices
    • DirectInput Devices
    • USB Devices
    • Gameport Devices
    • PS/2 Devices
    • Disk & DVD/CD-ROM Drives
    • System Devices
    • DirectShow Filters

    Event Viewer Logs Backup & Event Viewer Clear ALL Logs:

    DOWNLOAD: Available from the MENU at the TOP of this thread.



    Option [1] creates a EV_BackUp folder on the Desktop.

    Over time, the Event Viewer becomes VERY full and cluttered and makes troubleshooting extremely hard. If your OS has been running smoothly for a while without any problems then you can clear ALL the logs. This makes using the Event Viewer [ if needed ] a lot easier and manageable if there are any problems!

    Option [1] - Event Viewer Backup.

    ONLY the following Logs in the Windows Logs folder will be backed up . . .

    • Application Log
    • Security Log
    • System Log

    The Logs filenames will be in the format LogName Backup - Created dd-mm-yyyy at hh-mm-ss.
    Because the filenames include the CURRENT Date & Time, any previously backed up Logs will NOT be overwritten.

    Option [2] - Event Viewer Clear Logs.

    WARNING: ALL Logs within the following folders WILL be CLEARED . . .

    • Windows Logs
    • Applications and Service Logs

    Event Viewer - System & Application Errors & Warnings:

    DOWNLOAD: Available from the MENU at the TOP of this thread.



    I wrote this a few years ago when I started creating customised ISO installations.

    I have updated it and included here for anyone who could find this useful!

    Its main objective was to give me an accurate on the spot report of ANY ERRORS or WARNINGS incurred in the System and Applications sections of the Event Viewer as a result of ANY failed operations or commands.

    With Options [1], [2], [3], & [4] ONLY, you will be prompted to enter the number of hours data that you would like included on the report. The BEST part though, is it works on WHOLE HOURS input, AND PART HOURS input. e.g. 0.25, 0.50, & 0.75 of an hour. ALL Options create an appropriately named .log file on the Desktop ready for you to analyse.

    Some of the options available are . . .

    Option [1] System Errors < Hours input.
    Option [2] System Warnings < Hours input.
    Option [3] Application Errors < Hours input.
    Option [4] Application Warnings < Hours input.
    Option [5] System Errors < ALL dates.
    Option [6] System Warnings < ALL dates.
    Option [7] Application Errors < ALL dates.
    Option [8] Application Warnings < ALL dates.

    If I get time, I might add an Option that creates a folder on the Desktop and then runs ALL the Options and puts them into the folder!

    Files To Folders Using Filenames:

    DOWNLOAD: Available from the MENU at the TOP of this thread.



    This creates a folder for each filename in the directory that the batch script resides in and then populates [ moves ] them with the files accordingly. The folders names will be a mirror image of the filenames themselves, EXCLUDING the suffix.

    WARNING: Setup a test directory that includes a selection of filenames FIRST and check the results.

    Files To Folders Using Suffix:

    DOWNLOAD: Available from the MENU at the TOP of this thread.



    This creates a folder for each suffix [ file extension ] of the filenames in the directory that the batch script resides in and then populates [ moves ] them with the files accordingly. The folders names are the suffix of the filenames that are contained within them. This can be run whenever needed as it keeps the folders intact [ if they have already been created ] and ONLY adds new files into the folders. Any files that do NOT already have a folder will be created and populated [ moved ] automatically.

    Obviously NOT every suffix has been included, just the ones that I think will cover the majority of the files used.

    WARNING: Setup a test directory that includes a selection of suffixes FIRST and check the results.


    ipconfig /all:

    DOWNLOAD: & _UPLOAD_: Available from the MENU at the TOP of this thread.



    This creates a IP_Config_All.log file on the Desktop.

    ipconfig gives detailed information about all the current TCP/IP network configuration values, Dynamic Host Configuration Protocol (DHCP), and Domain Name System (DNS) Server settings. This includes IP Configuration, Networking Adapters with their Hardware MAC, IP Address, Default Gateway for all adapters, and Subnet Mask etc.

    MSInfo32 [ MS System Information ]:

    DOWNLOAD: Available from the MENU at the TOP of this thread.



    msinfo32 is a Windows system information utility tool [ system profiler ] which collects information about your computer hardware configuration, computer components, software and drivers etc. It produces a comprehensive overview of your OS and is very useful for troubleshooting and diagnosing computer issues.

    Some of the Options available are . . .

    Option [1] opens the msinfo32 console Window.
    Option [2] creates a MSI_LOG.log file on the Desktop.
    Option [3] creates a MSI_NFO.nfo file on the Desktop.

    NET Framework Versions Installed:

    DOWNLOAD: Available from the MENU at the TOP of this thread.



    This creates a NET_Installed.log file on the Desktop.

    This extracts ALL the .NET Framework versions installed from the C:\Windows\Microsoft.NET\Framework folder and the registry key HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP.

    Network Problems - Diagnose & Repair:

    DOWNLOAD: & _UPLOAD_: Available from the MENU at the TOP of this thread.



    This creates a Net_Probs.log file on the Desktop.

    This not only collates the information required to help diagnose network problems, but can also run low level network processes to hopefully correct them.

    The processes included are . . .

    • ipconfig /flushdns
    • ipconfig /registerdns
    • ipconfig /release
    • ipconfig /renew
    • netsh winsock reset < Requires REBOOT
    • netsh.exe winhttp reset proxy < If there is one!

    Network Statistics And Diagnostics:

    DOWNLOAD: Available from the MENU at the TOP of this thread.



    NOTE: This process can take a little while to run, so be patient!

    This creates a Network_S_D.log file on the Desktop.

    This produces a detailed analysis of network statistics and diagnostics. It produces comprehensive information on current settings and parameters as well as running some network diagnostics which are useful for troubleshooting.

    Currently [ more may be added later ], the processes included are . . .

    • hostname
    • ver < MS Windows Version
    • arp -a
    • ipconfig /all
    • getmac
    • nbtstat -s
    • net start
    • net user
    • net user administrator
    • net user guest
    • net user %UserName%
    • netsh interface ipv4 show subinterfaces
    • netsh interface show interface
    • netsh interface tcp show global
    • netsh lan show interfaces
    • netsh lan show profiles
    • netsh lan show settings
    • netsh lan show tracing
    • netsh wlan show autoconfig
    • netsh wlan show blockednetworks
    • netsh wlan show createalluserprofile
    • netsh wlan show drivers
    • netsh wlan show filters
    • netsh wlan show interfaces
    • netsh wlan show networks
    • netsh wlan show networks mode=bssid
    • netsh wlan show onlyUseGPProfilesforAllowedNetworks
    • netsh wlan show profiles
    • netsh wlan show settings
    • netsh wlan show tracing
    • netstat -a -b
    • netstat -e
    • netstat -r
    • netstat -s
    • nslookup www. google .com < Google
    • pathping 8.8.8.8 < Google
    • pathping www. google .com < Google
    • ping 8.8.8.8 -n 10 < Google
    • ping www. google .com -n 10 < Google
    • tracert 8.8.8.8 < Google
    • tracert www. google .com < Google
    • route print
    • tasklist
    • query HKEY_LOCAL_MACHINE
    • query HKEY_CURRENT_USER

    PowerCFG - Detailed Analysis:

    DOWNLOAD: & _UPLOAD_: Available from the MENU at the TOP of this thread.



    This creates a Power_CFG folder on the Desktop and generates ALL the files into it.

    This batch script generates a lot of Power Configuration / Management Information that can be very useful in diagnosing problems.

    The report produced is in Alphabetical order and listed as follows . . .

    • Available-Sleep-States
    • Battery-Status
    • Battery-Report < Creates a Battery-Report.html file
    • Device-Query-Wake-Armed
    • Device-Query-Wake-From-Any
    • Device-Query-Wake-Programmable
    • Energy-Report < Creates a Energy-Report.html file
    • Get-Active-Scheme
    • Last-Wake
    • List-Existing-Power-Schemes
    • Requests
    • Requests-Override
    • System-Power-Report < Creates a System-Power-Report.html file - Same results as SleepStudy
    • System-Sleep-Diagnostics < Creates a System-Sleep-Diagnostics.html.html file
    • Wake-Timers
    • GUID < Groups & Sub-Groups

    Additional files created separately in the Power_CFG folder . . .

    Code:
    
    Battery-Report.html
    Energy-Report.html
    System-Power-Report.html
    System-Sleep-Diagnostics.html

    NOTE:

    In the PowerCFG_Detailed_Analysis.log file, under the heading Requests, it should say None for everything. If there is an item that does NOT show None, then this item could possibly STOP the computer from going to, or waking up, from Sleep.

    Predict Disk Failure:

    DOWNLOAD: Available from the MENU at the TOP of this thread.



    About PredictFailure:

    This checks the prediction failure status of the Disk using SMART.

    • If the PredictFailure status is FALSE, then the Disk is working without issues.
    • If the PredictFailure status is TRUE, then this means that SMART is predicting a Disk FAILURE.
    • If the Reason value is > 0, then contact the manufacturer to determine what the value actually means [ This value could have a different meaning for different vendors ].
    IMPORTANT:

    If PredictedFailure = FALSE, and Reason = 0, then Press any key to continue . . .
    If PredictedFailure = TRUE, do NOT Press any key to continue . . . [ see below ].
    If Reason is > 0, do NOT Press any key to continue . . . [ see below ].

    [1] Right-click on the title bar of the Administrator: Command Prompt Window > Edit > Select All.
    [2] Right-click on the title bar of the Administrator: Command Prompt Window again > Edit > Copy.

    • Paste the results into your post using the [CODE] tags . . .

    [3] In your post, click the Hashtag icon #.
    [4] Click INSIDE the [CODE]Here[CODE] tags and press the Ctrl + V keys together.

    • In your post it will look like this . . .

    Code:
    
    <<< Results here >>>

    Problem Devices:

    DOWNLOAD: & _UPLOAD_: Available from the MENU at the TOP of this thread.



    This creates a Prob_Devices.log file on the Desktop.

    This will find ANY problem device errors if they exist. It extracts the description, the error code, and the reason why it is a problem from the Components section of msinfo32.

    If there are NOT ANY problem device[s] you will receive the message . . .

    NO PROBLEM DEVICES WERE FOUND!

    Programs & Software Installed:

    DOWNLOAD: Available from the MENU at the TOP of this thread.



    Option [1] uses the HKLM and HKCU registry keys to extract the information. This is similar to what is shown in Programs and Features. This creates a Inst_Progs_P.log file on the Desktop.

    Option [2] is a more comprehensive list than Option [1]. It uses the HKLM and HKCU registry keys along with additional entries extracted from the ParentDisplayName of the SystemComponent. This creates a Inst_Progs_A.log file on the Desktop.

    Put The Computer To Sleep:

    DOWNLOAD: Available from the MENU at the TOP of this thread.



    This is just a bit of fun!

    I like listening to music on my computer before I goto Sleep.

    Rather than falling asleep and having the computer on ALL night, this batch script gives you several options for how long it is before you want the computer to goto Sleep too . . .

    [1] 15 minutes.
    [2] 30 minutes.
    [3] 45 minutes.
    [4] 60 minutes.
    [5] 75 minutes - 1 hour 15 minutes.
    [6] 90 minutes - 1 hour 30 minutes.
    [7] 105 minutes - 1 hour 45 minutes.
    [8] 120 minutes - 2 hours -- minutes.
    [9] User Defined.

    SFC [ System File Checker ]:

    DOWNLOAD: & _UPLOAD_: Available from the MENU at the TOP of this thread.



    Option [1]

    Creates an SFC folder on the Desktop. This will contain the sfc_ERRORS.log file and the CBS.log file.

    SFC is a Windows utility program for detecting and repairing any corruptions in the protected system files of the OS. If any files are missing or corrupted, they are replaced from the cached copy which is located in the compressed folder %WinDir%\System32\dllcache.

    Once SFC has finished running, the scan results are shown in the cmd prompt window. SFC also creates a CBS.log in the temporary folder C:\Windows\Logs\CBS\. This log contains ALL the information generated from running SFC.

    NOTE: If any ERRORS are reported, then run SFC again two or three more times, REBOOTING in between. For some reason, this can make a difference. I think it has to do with the settings.ini file sometimes showing false positives! If you still get a message saying . . .

    Windows Resource Protection found corrupt files but was unable to fix some of them.

    . . . then either upload the files or the folder for us to look at!

    System Reports:

    DOWNLOAD: Available from the MENU at the TOP of this thread.



    This creates a Sys_Reports folder on the Desktop, and ALL files are generated into it. Each of the 16 files file can be run separately [ you can run whatever reports you need ]. Option [99] will run ALL 16 files at once.

    This provides a selection of informative reports that are not only extremely useful for the information they contain but for troubleshooting and identifying ANY problems or issues.

    The options [ Reports ] included are . . .

    • 01. Run COMPONENTS.
    • 02. Run DXDIAG.
    • 03. Run IPCONFIG /ALL.
    • 04. Run MSINFO32 NFO.
    • 05. Run MSINFO32 TXT.
    • 06. Run NTEVENTLOG.
    • 07. Run PROCESSES.
    • 08. Run PRODUCT.
    • 09. Run QFE < WU & Hotfixes Installed.
    • 10. Run SERVICES.
    • 11. Run STARTUP.
    • 12. Run SYSDRIVERS < Basic - Running & Stopped.
    • 13. Run SYSDRIVERS < Signed & Unsigned.
    • 14. Run SYSDRIVERS < Verbose.
    • 15. Run SYSTEMINFO.
    • 16. Run UNINSTALL.

    • 99. Run ALL.

    WHOAMI:

    DOWNLOAD: Available from the MENU at the TOP of this thread.



    Option [1] creates a whoami_List.log file on the Desktop.
    Option [2] creates a whoami_Table.log file on the Desktop.

    WHOAMI is a Utility that can extract useful information such as the Username and Group Information along with the respective Security Identifiers [ SID ], Privileges, and Logon Identifier [ Logon ID ] for the Current User [ Access Token ] on the OS [ Local System ].

    Option [1] Creates a whoami - List.
    Option [2] Creates a whoami - Table.

    Basically, it extracts User, Group, and Privileges information for the logged on User in List and Table format.

    The information is split into different sections . . .

    • USER INFORMATION - User Name & SID.
    • GROUP INFORMATION - Group Name, Type, SID, Attributes.
    • PRIVILEGES INFORMATION - Privilege Name, Description & State.

    WMIC [ Windows Management Instrumentation Command ] - Comprehensive Report:

    DOWNLOAD: Available from the MENU at the TOP of this thread.



    This creates a wmic_Report.log file on the Desktop.

    This generates a comprehensive report [ compiled using wmic ] of system information and settings. I have obviously NOT included ALL of the elements available, or every parameter available within those elements, but I have included those which I think are most useful and informative.

    The report will automatically open when you >Press ANY key to OPEN the file . . ..

    The elements included are in Alphabetical order and are as follows . . .

    • BASEBOARD
    • BIOS
    • BOOTCONFIG
    • CDROM
    • COMPUTERSYSTEM
    • CPU
    • CSPRODUCT
    • DESKTOPMONITOR
    • DISKDRIVE
    • ENVIRONMENT
    • GROUP
    • IDECONTROLLER
    • LOGICALDISK
    • MEMCACHE
    • MEMPHYSICAL
    • NETLOGIN
    • NIC
    • NTEVENTLOG
    • ONBOARDDEVICE
    • OS
    • PARTITION
    • PORTCONNECTOR
    • PRODUCT
    • RECOVEROS
    • SCSICONTROLLER
    • SOUNDDEV
    • STARTUP
    • SYSACCOUNT
    • TIMEZONE
    • USERACCOUNT
    • VOLUME

    WU [ Windows Update ] - Check For KB OR Uninstall KB:

    DOWNLOAD: Available from the MENU at the TOP of this thread.



    BOTH the options below use the KB number as a lookup reference.

    Option [1] checks if a particular WU [ Windows Update ] or patch is installed.
    Option [2] will first check if a particular WU [ Windows Update ] or patch is installed and then delete it automatically. This Option DOES include confirmation prompts for UNINSTALL and RESTART.
    Option [3] will first check if a particular WU [ Windows Update ] or patch is installed and then delete it automatically. This Option does NOT include confirmation prompts for UNINSTALL and RESTART.

    After running Option [2] or Option [3], run Option [1] to verify the uninstall.

    WU [ Windows Update ] - Hotfixes:

    DOWNLOAD: & _UPLOAD_: Available from the MENU at the TOP of this thread.



    This creates a WU_Hotfixes.log file on the Desktop.

    I have used Microsoft's wmic [ Windows Management Instrumentation Command ] qfe list utility tool to generate and output the list of WU's [ Windows Updates ] and Hotfixes [ patches ] installed and the date they were installed.

    WU [ Windows Update ] - Log:

    DOWNLOAD: & _UPLOAD_: Available from the MENU at the TOP of this thread.



    This creates a WU_Log.log file on the Desktop.

    By default, the WU Client records all the transaction information into the log file located at %SystemRoot%\WindowsUpdate.log. The information generated is useful for troubleshooting and investigating any problems or issues.



    These batch scripts have taken a very long time to write and test. If you find the information useful or informative, or if you download any of the batch scripts, then please click Thank at the bottom of this post, it will be very much appreciated!
    Last edited by Paul Black; 1 Week Ago at 07:41.
      My Computer

  2. Lance1's Avatar
    Posts : 654
    Windows 10 Professional x64 20H2
       #2

    Thank You Paul Black! An impressive collection of scripts that will come in very handy.... I saved a link and also created a PDF with this page with all your link. Cool....
      My Computers


  3. Posts : 1
    windows / linux
       #3

    real nice one thank you for the hard work! :)
      My Computer

  4. Paul Black's Avatar
    Posts : 12,150
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
    Thread Starter
       #4

    Hello @Lance1,
    Lance1 said:
    Thank You Paul Black! An impressive collection of scripts that will come in very handy.... I saved a link and also created a PDF with this page with all your link. Cool....
    Thank you, I appreciate it!
      My Computer

  5. Paul Black's Avatar
    Posts : 12,150
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
    Thread Starter
       #5

    Hello @knoreas,
    knoreas said:
    real nice one thank you for the hard work! :)
    Thank you, I appreciate it!
      My Computer

  6. Compumind's Avatar
    Posts : 2,715
    Windows 10 Pro x64, Various Linux Builds, Networking, Storage, Cybersecurity Specialty.
       #6

    @Paul Black -

    Excellent script work!

    May I suggest placing all your scripts into a single thread and asking the Admin to perhaps make them a Sticky Thread once final?

    It does get a bit confusing when they are scattered around.

      My Computer

  7. Paul Black's Avatar
    Posts : 12,150
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
    Thread Starter
       #7

    Hello @Compumind,
    Compumind said:

    Excellent script work!

    May I suggest placing all your scripts into a single thread and asking the Admin to perhaps make them a Sticky Thread once final?

    It does a bit confusing when they are scattered.
    Sorry, I don't understand!

    They are ALL in Post #1 and the thread is already a sticky!
      My Computer

  8. Compumind's Avatar
    Posts : 2,715
    Windows 10 Pro x64, Various Linux Builds, Networking, Storage, Cybersecurity Specialty.
       #8

    Paul Black said:
    Hello @Compumind,

    Sorry, I don't understand!

    They are ALL in Post #1 and the thread is already a sticky!
    OK. I see the sticky now. Where is your DISM script?

      My Computer

  9. Paul Black's Avatar
    Posts : 12,150
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
    Thread Starter
       #9

    Hello @Compumind,
    Compumind said:
    Where is your DISM script?
    OK, I see what you mean!

    There are actually two DISM scripts.

    The first script is the one that I wrote and is mainly for advanced users to try out first before I incorporated it into Post #1. I might just add it anyway and add a note to this effect.

    The other script was originally written by Kyhi. He asked me if I would incorporate my code used in the above paragraph into his script. I redesigned and structured the menu and incorporated my code.
    Thanks for the Reputation, it is very much appreciated. We all need a bit of kudos once in a while!
    Last edited by Paul Black; 28 May 2020 at 06:21.
      My Computer

  10. Paul Black's Avatar
    Posts : 12,150
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
    Thread Starter
       #10

    UPDATE:

    I have added a Find_ANY_Problem_Devices.bat to Post #1.
    Last edited by Paul Black; 06 Jun 2020 at 13:32.
      My Computer


 
Page 1 of 5 123 ... LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 02:45.
Find Us




Windows 10 Forums