Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Store the found MFA Users Username
$mfauser = $userResults.username
# Get their phone number as stored in the MFA Server
$userphone = New-Object ($ns + ".Userphone")
$result = $proxy.GetPhone([string]$mfauser,[ref]$userphone, [ref]$errorcode)
$userphone
# What are the users MFA Settings
$userMFASettings = New-Object ($ns + ".UserSettings2")
$result = $proxy.GetUserSettings_2([string]$mfauser,[ref]$userMFASettings, [ref]$errorcode)
$userMFASettings
# GET MFA DEVICES
$userDevices = New-Object ($ns + ".UserDevice")
$result = $proxy.GetUserDevices([string]$mfauser,([ref] $userDevices), [ref]$errorcode)
$userDevices.value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.