Skip to content

Instantly share code, notes, and snippets.

@codebycliff
Created October 21, 2013 23:23
Show Gist options
  • Save codebycliff/7092524 to your computer and use it in GitHub Desktop.
Save codebycliff/7092524 to your computer and use it in GitHub Desktop.
Hide all non-hidden dotfiles using powershell
Get-ChildItem "C:\" -recurse -force
| Where-Object {
$_.name -like ".*"
-and
$_.attributes -match 'Hidden' -eq $false
}
| Set-ItemProperty -Name Attributes -Value ([System.IO.FileAttributes]::Hidden)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment