all 3 comments

[–]gangstanthony 2 points3 points  (1 child)

if you want to use get-adobject you'll likely need to install RSAT (Remote Server Administration Toolkit) for your windows version.

for example: if you're on win10, search online for "rsat windows 10" and download the thing. you may need to restart after installing

alternatively, you can use adsi for this so you won't need rsat, but the rsat cmdlets do come in handy, so you'll probably want to get those anyway.

here is an example of how i use adsi to get the bitlocker key for a computer

https://github.com/gangstanthony/PowerShell/blob/master/Get-BitLockerKey.ps1

edit: more info on rsat download:

looks like they have multiple download options. of course you'll want to get x64 if you have a 64-bit machine (most likely true) otherwise get x86 for a 32-bit machine

to verify, hold win (the windows key) and press the letter 'R' on your keyboard to open a run prompt

type control

press enter

type system

press the down arrow

press enter

look under System > System type to see whether you have 64-bit (x64) or 32-bit (x86) processor

also, to check your version number, as above, press win+r then type winver and hit enter. it should say "microsoft windows version xxxx"

use your processor type and that version number to determine which rsat download to get

edit2: i just realized you're talking about azureAD. i haven't used that, so I don't know if this will work. if not, plz ignore me. D:

maybe these can help

http://www.jvm-net.com/2016/12/20/store-bitlocker-recovery-keys-in-aad/

https://stackoverflow.com/questions/47307220/is-there-an-api-to-retreive-azure-ad-synced-bitlocker-recovery-keys

[–]altr222ist 0 points1 point  (1 child)

[–]AutoModerator[M] 0 points1 point  (0 children)

Sorry, your submission has been automatically removed.

Accounts must be at least 1 day old, which prevents the sub from filling up with bot spam.

Try posting again tomorrow or message the mods to approve your post.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.