Powershell command to get ad computer information
Get the list of servers & computers details which are in the domain with the OS version, Service Pack installed and IP address last login details..
Open:-
And Type PowerShell command:- Get-ADComputer -Filter 'operatingsystem -like "*" -and enabled -eq "true"' -Properties Name,Operatingsystem, OperatingSystemVersion, OperatingSystemServicePack,IPv4Address,LastLogonDate
In case of if your you want OS wise details
For Windows 10: Get-ADComputer -Filter 'operatingsystem -like "*Windows 10*" -and enabled -eq "true"' -Properties Name,Operatingsystem, OperatingSystemVersion, OperatingSystemServicePack,IPv4Address,LastLogonDate
For windows 8: Get-ADComputer -Filter 'operatingsystem -like "*Windows 8*" -and enabled -eq "true"' -Properties Name,Operatingsystem, OperatingSystemVersion, OperatingSystemServicePack,IPv4Address,LastLogonDate
For windows 7: Get-ADComputer -Filter 'operatingsystem -like "*Windows 7*" -and enabled -eq "true"' -Properties Name,Operatingsystem, OperatingSystemVersion, OperatingSystemServicePack,IPv4Address,LastLogonDate
For windows server : Get-ADComputer -Filter 'operatingsystem -like "*Windows Server*" -and enabled -eq "true"' -Properties Name,Operatingsystem, OperatingSystemVersion, OperatingSystemServicePack,IPv4Address,LastLogonDate
0 Comments