How to get the defaults set by user in the present context using PowerShell cmdlets.
Written by Titus Manohar, IT security team, ManageEngine Updated on November 2025
Description:
Executing this command fetches the Resource Group that has been set by the user as default in the current context.
Syntax:
Example:
| Id | : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup |
| Name | : myResourceGroup |
| Properties | : Microsoft.Azure.Management.Internal.Resources.Models.ResourceGroupProperties |
| Location | : eastus |
| ManagedBy | : |
| Tags | : |
This example shows Get-AzDefault cmdlet being used to fetch the current defaults that have been set by the user. If no defaults are set, it returns nothing.
About ADAudit Plus
ADAudit Plus is a UBA-driven change auditor that helps keep your Active Directory, Azure AD, Windows file servers, NetApp filers, EMC file systems, Synology file systems, Windows member servers, and workstations secure and compliant. 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
