Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <###########################################################
- Author : Serguei Dufour (PC Aide)
- Youtube channel : https://www.youtube.com/user/Boliccov
- Describe : Creates a new Active Directory computer
- SRC : https://technet.microsoft.com/en-us/library/ee617245.aspx
- Antiseche : ` ou alt + 96 retour avant derniere ligne
- alt + 35 ► #
- ###########################################################>
- Import-Module ActiveDirectory
- $CSV='.\list_Computers.csv'
- Import-Csv -Path $CSV | ForEach-Object {
- New-ADComputer -Name $_.ComputerAccount -Path $_.OU -Description $_.Description `
- -Enabled $True
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement