New
#1
Batch Scripts / Programs.
24-Feb-2021 - Newly UPDATED Instructions.
25-Feb-2021 - Newly UPDATED batch scripts.
UPDATED:
IDon'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 clickingThank
at the bottom of this post, youDon'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 forEvent ID:26212 [ chkdsk ]
andEvent ID:1001 [ wininit ]
after running eitherOption 2
,Option 3
, orOption 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 addFileSize
,LogFileName
,Name
, andNumberOfRecords
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 [ privileges ], 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 clickThank
at the bottom of this post, it will be very much appreciated!
IMPORTANT:
These Scripts willNOT
run correctly if theDesktop
has beenRelocated
[ another Disk, Partition, OneDrive, for example ].
NoteThe Batch Scripts will be updated some time at the beginning of 2022.
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 areSAFE
toDownload
andRun
. 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 theFileName
inNotepad
.
[2] Press theCtrl + A
keys together.
[3] Press theCtrl + C
keys together.
[4] In your post, click theHashtag
icon#
.
[5] ClickINSIDE
the[CODE]Here[CODE]
tags and press theCtrl + V
keys together.
- In your post it will look like this . . .
Code:<<< Results Here >>>
CBS / CSI Corruption Summary:
DOWNLOAD: & _UPLOAD_: Available from the MENU at the TOP of this thread.
This analyses theCBS.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 forALL DAYS
, and the second being forTODAY ONLY
. If the data is available, it will create aCBS_CS_ALL.log
file and aCBS_CS_TOD.log
file respectively on the Desktop.
If theCBS.log
doesNOT
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 theCBS.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 forALL DAYS
, and the second being forTODAY ONLY
. If the data is available, it will create aCBS_Err_ALL.log
file and aCBS_Err_TOD.log
file respectively on the Desktop.
If theCBS.log
doesNOT
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 aWinInit_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 asDIRTY
. Obviously, if it isNOT
configured to run [ scheduled manually ] on the next REBOOT it will show asNOT DIRTY
. The current state of chkdsk can be seen by runningOption [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 [ usuallyC:\
butNOT
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 ifchkdsk
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 doesNOT
repair them.
Option [3]chkdsk /F
[ Repair Mode ].
Run this if there any errors or corruptions reported after runningOption [1]
above. This oneDOES
repair any errors [ file system errors or corruptions ] on the OS drive but doesNOT
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 oneDOES
repair any errors [ file system errors or corruptions ] on the OS drive andDOES
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] Cancelchkdsk
to run on the next REBOOT.
Option [6] Extract thewininit
data.
This extracts the wininit LAST RUN data ONLY after running eitherchkdsk /F
orchkdsk /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 aChkDsk_WinInit_Results_LAST_Run.log
file on the Desktop.
Option [2] creates aChkDsk_WinInit_Results_ALL_Runs.log
file on the Desktop.
You MUST run eitherOption 2
,Option 3
, orOption 4
, from CHKDSK_ALL_Parameters_ALL_Drives.bat FIRST.
This batch script extracts the results forEvent ID:26212 [ chkdsk ]
andEvent 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 theDISM.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 forALL DAYS
, and the second being forTODAY ONLY
. If the data is available, it will create aDIS_Err_ALL.log
file and aDIS_Err_TOD.log
file respectively on the Desktop.
If theDISM.log
doesNOT
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 aDX_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 aEV_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 willNOT
be overwritten.
Option [2] - Event Viewer Clear Logs.
WARNING: ALL Logs within the following folders WILL beCLEARED
. . .
- 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.
WithOptions [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 onWHOLE HOURS
input, ANDPART 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 doNOT
already have a folder will be created and populated [ moved ] automatically.
ObviouslyNOT
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 aIP_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 themsinfo32
console Window.
Option [2] creates aMSI_LOG.log
file on the Desktop.
Option [3] creates aMSI_NFO.nfo
file on the Desktop.
NET Framework Versions Installed:
DOWNLOAD: Available from the MENU at the TOP of this thread.
This creates aNET_Installed.log
file on the Desktop.
This extracts ALL the .NET Framework versions installed from theC:\Windows\Microsoft.NET\Framework
folder and the registry keyHKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP
.
Network Problems - Diagnose & Repair:
DOWNLOAD: & _UPLOAD_: Available from the MENU at the TOP of this thread.
This creates aNet_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 aNetwork_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
- pathping 8.8.8.8
- pathping www. google .com
- ping 8.8.8.8 -n 10
- ping www. google .com -n 10
- tracert 8.8.8.8
- tracert www. google .com
- 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 aPower_CFG
folder on the Desktop and generates ALL the files into it.
This batch script generates a lot ofPower 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 thePower_CFG
folder . . .
Code:Battery-Report.html Energy-Report.html System-Power-Report.html System-Sleep-Diagnostics.html
NOTE:
In thePowerCFG_Detailed_Analysis.log
file, under the headingRequests
, it should sayNone
for everything. If there is an item that doesNOT
showNone
, then this item could possiblySTOP
the computer from going to, or waking up, fromSleep
.
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 isFALSE
, then the Disk is working without issues.- If the
PredictFailure
status isTRUE
, then this means that SMART is predicting a DiskFAILURE
.- 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:
IfPredictedFailure
=FALSE
, andReason
=0
, thenPress any key to continue . . .
IfPredictedFailure
=TRUE
, doNOT
Press any key to continue . . .
[ see below ].
IfReason
is> 0
, doNOT
Press any key to continue . . .
[ see below ].
[1] Right-click on the title bar of theAdministrator: Command Prompt
Window >Edit
>Select All
.
[2] Right-click on the title bar of theAdministrator: Command Prompt
Window again >Edit
>Copy
.
Paste
the results into your post using the[CODE]
tags . . .
[3] In your post, click theHashtag
icon#
.
[4] ClickINSIDE
the[CODE]Here[CODE]
tags and press theCtrl + 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 aProb_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 ofmsinfo32
.
If there areNOT
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 theHKLM
andHKCU
registry keys to extract the information. This is similar to what is shown inPrograms and Features
. This creates aInst_Progs_P.log
file on the Desktop.
Option [2] is a more comprehensive list thanOption [1]
. It uses theHKLM
andHKCU
registry keys along with additional entries extracted from theParentDisplayName
of theSystemComponent
. This creates aInst_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 gotoSleep
.
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 gotoSleep
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 anSFC
folder on the Desktop. This will contain thesfc_ERRORS.log
file and theCBS.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 aCBS.log
in the temporary folderC:\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 thesettings.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 aSys_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 awhoami_List.log
file on the Desktop.
Option [2] creates awhoami_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 awmic_Report.log
file on the Desktop.
This generates a comprehensive report [ compiled usingwmic
] of system information and settings. I have obviouslyNOT
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 theKB
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 doesNOT
include confirmation prompts for UNINSTALL and RESTART.
After runningOption [2]
orOption [3]
, runOption [1]
to verify the uninstall.
WU [ Windows Update ] - Hotfixes:
DOWNLOAD: & _UPLOAD_: Available from the MENU at the TOP of this thread.
This creates aWU_Hotfixes.log
file on the Desktop.
I have used Microsoft'swmic
[ 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 aWU_Log.log
file on the Desktop.
By default, theWU 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 clickThank
at the bottom of this post, it will be very much appreciated!
Last edited by Paul Black; 20 Dec 2021 at 21:11.