?
Solved

Shell command for all attributes about ad joined devices

Posted on 2016-09-06
2
Medium Priority
?
45 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 40

Accepted Solution

by:
Subsun earned 2000 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

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

Microsoft Office 365 is a subscriptions based service which includes services like Exchange Online and Skype for business Online. These services integrate with Microsoft's online version of Active Directory called Azure Active Directory.
In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
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.
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.
Suggested Courses

770 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