Avatar of Albert Widjaja
Albert WidjajaFlag for Australia

asked on 

Modifying powershell script to list all old computer in AD which not responding to ping ?

Hi All,

Can anyone here please help me in fixing the one-liner script below to show all offline computers in a certain OU:

Get-QADComputer -SearchRoot "domain.com/Computers" -NotLoggedOnFor 180 -InactiveFor 180 -SizeLimit 0 | Where-Object { (Test-Connection $_ -Count 1 -Quiet) -ne $null }

Open in new window


Thanks
PowershellActive DirectoryScripting Languages

Avatar of undefined
Last Comment
Albert Widjaja
ASKER CERTIFIED SOLUTION
Avatar of SubSun
SubSun
Flag of India image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Albert Widjaja
Albert Widjaja
Flag of Australia image

ASKER

Wow that's cool and quick
Active Directory
Active Directory

Active Directory (AD) is a Microsoft brand for identity-related capabilities. In the on-premises world, Windows Server AD provides a set of identity capabilities and services, and is hugely popular (88% of Fortune 1000 and 95% of enterprises use AD). This topic includes all things Active Directory including DNS, Group Policy, DFS, troubleshooting, ADFS, and all other topics under the Microsoft AD and identity umbrella.

86K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo