📌  相关文章
📜  将计算机加入域 powershell 脚本 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:32.494000             🧑  作者: Mango

代码示例8
$File="C:\scripts\Computers.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}