Ticker

6/recent/ticker-posts

Advertisement

Powershell command to get ad computer information

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




Post a Comment

0 Comments