attrib -h -s "D:\Backup" /s /d For advanced or scripted operations.
Open Command Prompt as Administrator ( Win + X → Terminal (Admin) → choose CMD).
Navigate to the parent directory (e.g., D: or cd C:\Users\Public ). windows unhide folder
Unhide a single folder:
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. attrib -h -s "D:\Backup" /s /d For advanced
attrib -h -s * /s /d | Flag | Meaning | |------|---------| | -h | Remove Hidden attribute | | -s | Remove System attribute | | /s | Process subfolders | | /d | Process folders as well as files |
attrib -h -s "FolderName" To unhide all folders in the current directory: Unhide a single folder: Get-ChildItem -Path "D:\" -Force
Set-ItemProperty -Path "D:\HiddenFolder" -Name Attributes -Value "Directory" Unhide all items recursively: