Skip to content

Connect-MgGraph by using certificates #1309

@T630Dev

Description

@T630Dev

We are indirectly using Connect-MgGraph as part of M365DSC.
As the LCM executes the code as local system, the connect-MgGraph cmdlet expects to find the certificate for the app registration / service principal in the user store of the local system user.

This is difficult to manage. (psexec or scheduled tasks as workaround to impersonate the local system to get to the user certificate store of the local system and install the certificate there)

Hence, my request would be that Connect-MgGraph gets a new parameter to chose the certificate store. Either the local machine or the user store. That way, we could use standard cmdlets such as Import-PfxCertificate to manage the certificates that are required for the secure connection.

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