Solved

Shell command for all attributes about ad joined devices

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

This article will help you understand what HashTables are and how to use them in PowerShell.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

757 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

21 Experts available now in Live!

Get 1:1 Help Now