If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.
Test-Connection -computer (get-content c:\temp2\servers.txt) -count 1| Select Address,IPv4Address
server1 xxx.xxx.xx.xxx server2 xxx.xxx.xx.xxx server3 xxx.xxx.xx.xxx server4 xxx.xxx.xx.xxx server5 xxx.xxx.xx.xxx Test-Connection : Testing connection to computer 'server6' failed: Error due to lack of resources At line:1 char:16 + Test-Connection <<<< -computer (get-content c:\temp2\servers.txt) -count 1| Select Address,IPv4Address + CategoryInfo : ResourceUnavailable: (server:String) [Test-Connection], PingException + FullyQualifiedErrorId : TestConnectionException,Microsoft.PowerShell.Commands.TestConnectionCommand
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.