📜 VBScript (WSH)
Check "Disable Recent Documents History" Status (VBScript)
Reads the registry value behind the "Disable Recent Documents History" tweak to confirm whether it's applied.
CheckDisableRecentDocsHistoryStatus.vbs
' ============================================================
' CheckDisableRecentDocsHistoryStatus.vbs
'
' Checks whether "Disable Recent Documents History" is currently applied.
'
' Usage: cscript CheckDisableRecentDocsHistoryStatus.vbs
' ============================================================
Option Explicit
Dim objShell, currentValue
Set objShell = CreateObject("WScript.Shell")
On Error Resume Next
currentValue = objShell.RegRead("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoRecentDocsHistory")
If Err.Number <> 0 Then
WScript.Echo "'NoRecentDocsHistory' is not set (using the Windows default)."
Else
WScript.Echo "Current value of 'NoRecentDocsHistory': " & currentValue
End If
On Error Goto 0