Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

join computer to domain powershell script

$File="C:scriptsComputers.csv" # Specify the import CSV position.
$Path="OU=Devices,DC=enterprise,DC=com" # Specify the path to the OU.
Import-Csv -Path $File | ForEach-Object { New-ADComputer -Name $_.Computer -Path $Path -Enabled $True}
Source by blog.netwrix.com #
 
PREVIOUS NEXT
Tagged: #join #computer #domain #powershell #script
ADD COMMENT
Topic
Name
1+5 =