Skip to content

Instantly share code, notes, and snippets.

@brenoferreira
Created January 4, 2012 12:51
Show Gist options
  • Save brenoferreira/1559924 to your computer and use it in GitHub Desktop.
Save brenoferreira/1559924 to your computer and use it in GitHub Desktop.
Unhide folders in Powershell
$dir = New-Object System.IO.DirectoryInfo("Folder")
$folders = $dir.GetDirectories()
$folders | ForEach-Object { $_.Attributes = [System.IO.FileAttributes]::Directory }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment