Find Disable Computer in Active Directory With Powershell

Powershell-System-Automation

#AD’de Disable Olan Bilgisayarlar

$Computerlist = get-content C:\unknown.txt

Foreach ($computer in $Computerlist)

{

Get-ADComputer -Filter “Name -like ‘$computer*'” -Properties * | Where-Object {$_.Enabled -like ‘*False*’} | Select-Object Name, Enabled, LastLogonDate, IPv4Address

}

Bir cevap yazın

E-posta hesabınız yayımlanmayacak.