Get-ChildItem -Path "D:\" -Force -Recurse | Where-Object $_.Attributes -match "Hidden" | ForEach-Object $_.Attributes = 'Normal' ⚠️ Caution: This will also unhide system-critical folders if run on the system drive. Some malware hides original folders and creates fake .exe or .lnk files with folder icons.
To unhide a single folder:
attrib -h -s "D:\Backup" /s /d For advanced or scripted operations. windows unhide folder