question

darshankumar-0232 avatar image
0 Votes"
darshankumar-0232 asked RichMatheisen-8856 edited

Need powershell script to extract hostnames with OU details

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

RichMatheisen-8856 avatar image
0 Votes"
RichMatheisen-8856 answered RichMatheisen-8856 edited

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.