How to Find Machines that Have not Been Connected Over 30 Days
book
Article ID: CTX547174
calendar_today
Updated On:
Description
Admin needs to identify the group of machines that are not been connected over 30 days, then decide the next administrative actions.
Instructions
We can get the machines that have not been connected over 30 days using the powershell script on ddc
$d=(get-date).adddays(-30)
$info=Get-BrokerDesktop -Filter { lastconnectionTime -le $d } | select-object MachineName,lastconnectionuser,lastconnectiontime,@{name="Associatedusernames";expression={$_.Associatedusernames}},@{Label='DaysNotLogon'; Expression={(Get-Date) - $_.lastconnectiontime}}
Was this article helpful?
thumb_up
Yes
thumb_down
No