Solved

Shell command for all attributes about ad joined devices

Posted on 2016-09-06
2
35 Views
Last Modified: 2016-09-25
Is there an ad powershell command to list all servers and computers joined to the domain and all attributes about those devices... including time last used to login to the domain
0
Comment
Question by:pma111
  • 2
2 Comments
 
LVL 40

Accepted Solution

by:
Subsun earned 500 total points (awarded by participants)
ID: 41786285
If you have Windows Server 2008 R2 or above Domain Controllers, you can use PowerShell  Activedirectory module

You can use Search-ADAccount or Get-ADComputer
Ref :
https://technet.microsoft.com/en-us/library/ee617192.aspx
https://technet.microsoft.com/en-us/library/ee617247.aspx

Command results can be customized based on your requirement.

For example, to find all computer accounts that have been inactive for the last 90 days:

Import-Module ActiveDirectory
Search-ADAccount -AccountInactive -TimeSpan 90.00:00:00 -ComputersOnly

Open in new window

0
 
LVL 40

Expert Comment

by:Subsun
ID: 41814566
User asked the powershell command to list all servers and computers joined to the domain and all attributes about those devices. My comment should suffice the requirement.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
Last week, our Skyport webinar on “How to secure your Active Directory” (https://www.experts-exchange.com/videos/5810/Webinar-Is-Your-Active-Directory-as-Secure-as-You-Think.html?cid=Gene_Skyport) provided 218 attendees with a step-by-step guide for…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question