Skip to content

Commit c0dcaa6

Browse files
authored
Merge pull request Azure#875 from ioeifcss/ioeifcss-patch-1
Add a more useful example to Add-AzureADApplicationOwner
2 parents 0e17ae8 + 236b62d commit c0dcaa6

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

azureadps-1.0/MSOnline/Set-MsolCompanySettings.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ This command turns on the self-serve password reset feature for all administrato
3838
## PARAMETERS
3939

4040
### -SelfServePasswordResetEnabled
41-
Indicates whether to allow the use of the self-service password reset feature.
42-
This setting is applied company-wide.
41+
Indicates whether to allow the use of the self-service password reset feature for all administrators in the company.
4342

4443
```yaml
4544
Type: Boolean

azureadps-2.0/AzureAD/Add-AzureADApplicationOwner.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@ The Add-AzureADApplicationOwner cmdlet adds an owner to an Azure Active Director
2222

2323
## EXAMPLES
2424

25-
### Example 1: Add an owner to an application
25+
### Example 1: Add a user as an owner to an application
2626
```
27-
PS C:\>Add-AzureADApplicationOwner -ObjectId 3ddd22e7-a150-4bb3-b100-e410dea1cb84 -RefObjectId c13dd34a-492b-4561-b171-40fcce2916c5
27+
PS C:\> $ApplicationId = (Get-AzureADApplication -Top 1).ObjectId
28+
PS C:\> $UserObjectId = (Get-AzureADUser -Top 1).ObjectId
29+
PS C:\> Add-AzureADApplicationOwner -ObjectId $ApplicationId -RefObjectId $UserObjectId
2830
```
2931

3032
This command adds an owner to an application.

0 commit comments

Comments
 (0)