Solved

Shell command for all attributes about ad joined devices

Posted on 2016-09-06
2
29 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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

Suggested Solutions

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

867 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now