Skip to content

[BUG] QR code generation fails on Windows Server 2025 because wmic is not available (WMIC deprecated) #135

@ashishsabu

Description

@ashishsabu

Hi Team,

While testing multiOTP Credential Provider v5.10.1.2 on Windows Server 2025 Standard, an error is encountered during the QR code generation process. Since WMIC is officially deprecated and no longer available on recent Windows versions (Windows Server 2025/Windows 11), it appears the QR code generation step may still depend on wmic.

Commands executed:
multiotp.exe -fastcreatenopin testuser
multiotp.exe -qrcode testuser testuser.png

Error: 'wmic' is not recognized as an internal or external command, operable program or batch file.
PHP Warning: Undefined array key 0 in C:\Program Files\multiOTP\php\multiotp.windows.php on line 1526

Error screenshot attached for more details:

Image

Reference: https://techcommunity.microsoft.com/blog/windows-itpro-blog/wmi-command-line-wmic-utility-deprecation-next-steps/4039242

Could the team please confirm whether multiOTP has been updated to operate without WMIC ? If not, is a fix or workaround planned for environments where WMIC is unavailable? Also, is the impact limited to QR code generation, or could other functions be affected?

Thank you.

Regards,
Ashish

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions