New-AzADSpCredential

Active Directory Auditing Tool

The Who, Where and When information is very important for an administrator to have complete knowledge of all activities that occur on their Active Directory. This helps them identify any desired / undesired activity happening. ADAudit Plus assists an administrator with this information in the form of reports. In real-time, ensure critical resources in the network like the Domain Controllers are audited, monitored and reported with the entire information on AD objects - Users, Groups, GPO, Computer, OU, DNS, AD Schema and Configuration changes with 200+ detailed event specific GUI reports and email alerts.

Object Access » New-AzADSpCredential

How to add a credential to an existing service principal using Azure PowerShell

Cmdlet Description:

The cmdlet allows you to add a new credential to an existing service principal by specifying the object ID or service principal name.

PowerShell Syntax:

New-AzADSpCredential -ObjectId <String> [-StartDate <DateTime>] [-EndDate <DateTime>] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]

Example: Add a password credential to an existing service principal

New-AzADSpCredential -ObjectId 1f99cf81-0146-4f4e-beae-2007d0668476
Secret : System.Security.SecureString
StartDate : 10/10/2015 8:56:01 PM
EndDate : 11/11/2016 8:26:03 PM
KeyId : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Type : Password

Description: A new credential called "password" is added to a service principal name thathas its objectID specified.

About ADAudit Plus

ADAudit Plus is a real-time, web-based Windows Active Directory change reporting software that audits, tracks, reports and alerts onActive Directory, member servers, file servers, , NetApp filers EMC servers, and workstation events to help meet the demands of the much-needed security, audit and compliance.

With ADAudit Plus' 200+ detailed reports and instant alerts, track authorized and unauthorized group, GPO, computer, OU, and AD management changes, file/ folder modifications, access and permissions changes.. You can also export the reports to XLS, HTML, PDF and CSV formats to assist in further analysis and forensics. For more information on ADAudit Plus, visit https://www.manageengine.com/active-directory-audit/.