Skip to content

Instantly share code, notes, and snippets.

@jacksoneyton
Last active December 16, 2015 16:26
Show Gist options
  • Save jacksoneyton/7bf081776aedb66b76aa to your computer and use it in GitHub Desktop.
Save jacksoneyton/7bf081776aedb66b76aa to your computer and use it in GitHub Desktop.
PoSH Folder from AD
Import-Module ActiveDirectory $InternalADUsers = Get-ADGroupMember -Identity Internal | select-object -ExpandProperty SamAccountName #foreach {$_.SamAcountName} Foreach ($I in $InternalADUsers) { $SignaturesPath = "S:\Signatures\$I" write-host "$SiganturesPath" #if(Test-Path = $SignaturesPath) # { # Write-Host "$SignaturePath exists" # } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment