Created
August 16, 2016 05:39
-
-
Save darrenjrobinson/7c3c300b21f07d5205e4a64a8d0b6d3b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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