Need powershell script to extract hostnames with OU details

darshan kumar 1 Reputation point
2021-09-13T08:54:48.037+00:00

Hi, I need a PS script to extract the below details from AD.
hostname, created date, ip address, created by, bitlocker status, OU details, USB details.

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,434 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rich Matheisen 45,416 Reputation points
    2021-09-13T15:06:20.28+00:00

    What have you tried already?

    You can use Get-ADComputer for some of that. You can use Get-BitlockerVolume cmdlet (but only locally) or the Manage-Bde executable to get the status of a volume, you can use Resolve-DNSName to get the IP address, and you can use Get-WMIObject (or Get-CIMInstance) to get information about USB.

    0 comments No comments