I wanted to know if it is possible to retrieve a list of all account names using PowerShell? Basically if you run the following URL in your browser https://OrgURL/api/data/v9.2/accounts?$select=name you will get the below result:

Is it possible to get a similar result in PowerShell with the Display names of the account records?
CodePudding user response:
Take a look into Invoke-WebRequest.
CodePudding user response:
In order to connect to a Dynamics 365/Dataverse instance using PowerShell, you have two options:
- Invoke-WebRequest as the other answer (but you need to provide at least the bearer token in order to authenticate the requests)
- this cmdlet: Microsoft.Xrm.Data.PowerShell https://github.com/seanmcne/Microsoft.Xrm.Data.PowerShell
