Solved

Shell command for all attributes about ad joined devices

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

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 am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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.

809 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