Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

need to perform the below task if the users are exist in domain & those sud be enable else omit

$
0
0
Import-Module activedirectory
Get-Content users.txt | ForEach-Object {
  Set-ADUser -Identity $_ -ProfilePath "\\Testmac01\t1\$_" -homedrive "Y:" -homedirectory "\\Testmac01\t2\$_"
}

AliahMurfy


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>