{"action":"created","issue":{"url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/15962","repository_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs","labels_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/15962/labels{/name}","comments_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/15962/comments","events_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/15962/events","html_url":"https://github.com/MicrosoftDocs/azure-docs/issues/15962","id":365730558,"node_id":"MDU6SXNzdWUzNjU3MzA1NTg=","number":15962,"title":"How to Disabled MFA using old version powershell (MSOnline)?","user":{"login":"berviantoleo","id":15927349,"node_id":"MDQ6VXNlcjE1OTI3MzQ5","avatar_url":"https://avatars2.githubusercontent.com/u/15927349?v=4","gravatar_id":"","url":"https://api.github.com/users/berviantoleo","html_url":"https://github.com/berviantoleo","followers_url":"https://api.github.com/users/berviantoleo/followers","following_url":"https://api.github.com/users/berviantoleo/following{/other_user}","gists_url":"https://api.github.com/users/berviantoleo/gists{/gist_id}","starred_url":"https://api.github.com/users/berviantoleo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berviantoleo/subscriptions","organizations_url":"https://api.github.com/users/berviantoleo/orgs","repos_url":"https://api.github.com/users/berviantoleo/repos","events_url":"https://api.github.com/users/berviantoleo/events{/privacy}","received_events_url":"https://api.github.com/users/berviantoleo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-02T03:52:37Z","updated_at":"2018-10-02T17:50:40Z","closed_at":"2018-10-02T03:57:49Z","author_association":"NONE","body":"I see https://docs.microsoft.com/en-us/azure/active-directory/authentication/howto-mfa-userstates#use-powershell tell it can modify MFA using\r\n```\r\n    $st = New-Object -TypeName Microsoft.Online.Administration.StrongAuthenticationRequirement\r\n    $st.RelyingParty = \"*\"\r\n    $st.State = “Enabled”\r\n    $sta = @($st)\r\n    Set-MsolUser -UserPrincipalName bsimon@contoso.com -StrongAuthenticationRequirements $sta\r\n```\r\nBut, when I want to Disabled using $st.State = \"Disabled\". It show error.\r\n```\r\nSet-MsolUser : Invalid value for parameter.  Parameter Name: StrongAuthenticationRequirements.\r\nAt line:1 char:1\r\n+ Set-MsolUser -UserPrincipalName myuser@mydomain.com -StrongAuthentic ...\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : OperationStopped: (:) [Set-MsolUser], MicrosoftOnlineException\r\n    + FullyQualifiedErrorId : Microsoft.Online.Administration.Automation.PropertyValidationException,Microsoft.Online.\r\n   Administration.Automation.SetUser\r\n```\r\nHow I should disabled the MFA using Powershell?"},"comment":{"url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/comments/426368633","html_url":"https://github.com/MicrosoftDocs/azure-docs/issues/15962#issuecomment-426368633","issue_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/15962","id":426368633,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjM2ODYzMw==","user":{"login":"MicahMcKittrick-MSFT","id":32313503,"node_id":"MDQ6VXNlcjMyMzEzNTAz","avatar_url":"https://avatars1.githubusercontent.com/u/32313503?v=4","gravatar_id":"","url":"https://api.github.com/users/MicahMcKittrick-MSFT","html_url":"https://github.com/MicahMcKittrick-MSFT","followers_url":"https://api.github.com/users/MicahMcKittrick-MSFT/followers","following_url":"https://api.github.com/users/MicahMcKittrick-MSFT/following{/other_user}","gists_url":"https://api.github.com/users/MicahMcKittrick-MSFT/gists{/gist_id}","starred_url":"https://api.github.com/users/MicahMcKittrick-MSFT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MicahMcKittrick-MSFT/subscriptions","organizations_url":"https://api.github.com/users/MicahMcKittrick-MSFT/orgs","repos_url":"https://api.github.com/users/MicahMcKittrick-MSFT/repos","events_url":"https://api.github.com/users/MicahMcKittrick-MSFT/events{/privacy}","received_events_url":"https://api.github.com/users/MicahMcKittrick-MSFT/received_events","type":"User","site_admin":false},"created_at":"2018-10-02T17:50:40Z","updated_at":"2018-10-02T17:50:40Z","author_association":"CONTRIBUTOR","body":"@berviantoleo thanks for letting us know and closing it out as a duplicate"}}
{"actor":{"display_login":"MicahMcKittrick-MSFT"}}