Gerenios / AADInternals

AADInternals PowerShell module for administering Azure AD and Office 365
http://aadinternals.com/aadinternals
MIT License
1.27k stars 216 forks source link

Get-AADIntComplianceAPICookies fails with 'Create-LoginForm' is not recognized #99

Open TotallyTroll opened 1 month ago

TotallyTroll commented 1 month ago

Hello,

Trying to obtain cookie and x-xsrf tokens via ComplianceAPI.ps1 , running $cookies = Get-AADIntComplianceAPICookies command. Still next error occur: Create-LoginForm : The term 'Create-LoginForm' is not recognized as the name of a cmdlet, function, script file, or operable program.

Steps to reproduce:

  1. Install-Module AADInternals
  2. Import-Module AADInternals
  3. $cookies = Get-AADIntComplianceAPICookies Initially it fails with an error that -MaximumRedirection limit reached. So I've changed this to -MaximumRedirection 5 within module's ComplianceAPI.ps1 file.
  4. $cookies = Get-AADIntComplianceAPICookies Now it fails with mentioned error: Create-LoginForm : The term 'Create-LoginForm' is not recognized as the name of a cmdlet, function, script file, or operable program.

Am I missing some dependent module installed?