Skip to content

Instantly share code, notes, and snippets.

@cajones
Created July 20, 2012 08:51
Show Gist options
  • Save cajones/3149699 to your computer and use it in GitHub Desktop.
Save cajones/3149699 to your computer and use it in GitHub Desktop.
Find hidden network drives on a remote server
function Find-HiddenDrive($server) {
$alpha = [char[]]"cdefghijklmnopqrstuvwxyz"
return $alpha | ? { test-path \\$server\$_`$ }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment