How to use Get-AzADSpCredential?
Written by Titus Manohar, IT security team, ManageEngine Updated on November 2025
Description:
This PowerShell cmdlet can be used to list the credential properties associated with a security principal in Azure Active Directory. It should be noted that this cmdlet only lists the credential properties that and not the values of the credentials themselves.
A service principal is a representation or an instance of an application in a particular tenant of Azure Active Directory. Each tenant usually represents a particular organization that uses Azure AD. When the application needs to access resources on Azure, the access rules are associated with its service principal. The credentials are the information, such as certificates, passwords, that are used by the application (service principal) to authenticate itself.
PowerShell Syntax:
Example:
This cmdlet can be used to list all the credentials of a service principal filtered by the service principal name.
About ADAudit Plus
ADAudit Plus is a real-time, web-based Windows Active Directory change reporting software that audits, tracks, reports and alerts on Windows (Active Directory, workstations logon/logoff, file servers and servers), NetApp filers and EMC servers to help meet the demands of the much-needed security, audit and compliance. With ADAudit Plus, track authorized/unauthorized AD management changes, access of users, GPO, groups, computer, OU. Track every file, folder modifications, access and permissions changes with 200+ detailed event-specific reports and get instant emails alerts. You can also export the results to XLS, HTML, PDF and CSV formats to assist in interpretation and computer forensics. For more information on ADAudit Plus, visit https://www.manageengine.com/active-directory-audit/.
Explore Active Directory auditing and reporting with ADAudit Plus.
- Related Products
- ADManager Plus Active Directory Management & Reporting
- ADAudit Plus Real-time Active Directory Auditing and UBA
- EventLog Analyzer Real-time Log Analysis & Reporting
- ADSelfService Plus Self-Service Password Management
- AD360 Integrated Identity & Access Management
- Log360 (On-Premise | Cloud) Comprehensive SIEM and UEBA
- AD Free Tools Active Directory FREE Tools
