What is needed to run an unattended powershell script on behalf of clients

Jay 40 Reputation points
2023-11-07T20:16:51.2+00:00

I want to access on behalf of my clients their Microsoft accounts and run a PowerShell script against their account without their intervention.

Let me know if this is what we need from every client

  1. Ask client to create an app
  2. give appId
  3. give tenant domain
  4. give the tenantId
  5. generate and give certificate thumbprint

Do I need to collect the above details from every client so that we can run the PowerShell script against their account?
The commands are Connect-MgGraph and Connect-IPPSSession which will be used in the PowerShell script.

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,627 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,812 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
23,259 questions
0 comments No comments
{count} votes

Accepted answer
  1. Navya 15,465 Reputation points Microsoft Vendor
    2023-11-08T07:04:08.4766667+00:00

    Hi@Jay ,

    Thank you for posting this in Microsoft Q&A.

    I understand you needed to run an unattended PowerShell script on behalf of clients.
    Yes, you need the following details from client:

    Hopes this helps. Do let us know if you any further queries.

    Thanks,

    Navya.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.