Sitelet https://github.com/microsoft/MCAS/issues/94
Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

Unable to connect #94

Description

@DeanGross

Do these cmdlets work with MFA? I am trying to use get-MCASPolicy but always get the following error.

Invoke-MCASRestMethod : Cannot validate argument on parameter 'Credential'. The "
$_.GetNetworkCredential().Password -match ($MCAS_TOKEN_VALIDATION_PATTERN)
" validation script for the argument with value "System.Management.Automation.PSCredential" did not return a result of True. Determine why the validation script failed, and then try the command again.
At C:\Program Files\WindowsPowerShell\Modules\MCAS\3.3.8\Functions\Get-MCASPolicy.ps1:71 char:63

  • ... $response = Invoke-MCASRestMethod -Credential $Credential -Path " ...
  •                                                   ~~~~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Invoke-MCASRestMethod], ParameterBindingValidationException
    • FullyQualifiedErrorId : ParameterArgumentValidationError,Invoke-MCASRestMethod

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions