반응형 분류 전체보기689 Active Directory에서 30일 지난 hostname 삭제 powershell Active Directory에서 30일 지난 hostname 삭제 powershell 명령어 입니다. 30일 지난 장비 관리 를 위한 powershell 입니다 Import-Module ActiveDirectory #숫자만 30일 $DaysInative = 30 $InactiveDate = (Get-Date).Adddays(-($DaysInactive)) $Computers = Get-ADComputer -Filter { LastLogonDate -lt $InactiveDate -and Enabled -eq $true } -Properties LastLogonDate | Select-Object Name, LastLogonDate, DistinguishedName $Computers = Get-ADCo.. 2019. 4. 24. 이전 1 ··· 170 171 172 173 다음 반응형