Answers for "powershell join a domain"

0

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}
Posted by: Guest on September-24-2021
0

join computer to domain powershell script

Get-Content C:scriptscomputersfordeletion.txt | % { Get-ADComputer -Filter { Name -eq $_ } } | Remove-ADObject -Recursive
Posted by: Guest on September-24-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language