Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/maester365/maester
Browse files Browse the repository at this point in the history
  • Loading branch information
f-bader committed Apr 1, 2024
2 parents 3f0451f + cf73efa commit 6661c73
Show file tree
Hide file tree
Showing 13 changed files with 269 additions and 21 deletions.
19 changes: 18 additions & 1 deletion website/docs/commands/Add-MtTestResultDetail.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Add detailed information about a test so that it can be displayed in the test re

```powershell
Add-MtTestResultDetail [[-Description] <String>] [[-Result] <String>] [[-GraphObjects] <Object[]>]
[[-GraphObjectType] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
[[-GraphObjectType] <String>] [[-TestName] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -125,6 +125,23 @@ Accept pipeline input: False
Accept wildcard characters: False
```
### -TestName
Pester test name
Use the test name from the Pester context by default
```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 5
Default value: $____Pester.CurrentTest.ExpandedName
Accept pipeline input: False
Accept wildcard characters: False
```
### -ProgressAction
\{\{ Fill ProgressAction Description \}\}
Expand Down
78 changes: 78 additions & 0 deletions website/docs/commands/Get-MtAuthenticationMethodPolicyConfig.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
---
sidebar_class_name: hidden
description: Get details of authentication methods
id: Get-MtAuthenticationMethodPolicyConfig
title: Get-MtAuthenticationMethodPolicyConfig
hide_title: false
hide_table_of_contents: false
custom_edit_url: https://github.com/maester365/maester/blob/main/powershell/public/Get-MtAuthenticationMethodPolicyConfig.ps1
---

## SYNOPSIS

Get details of authentication methods

## SYNTAX

```powershell
Get-MtAuthenticationMethodPolicyConfig [[-State] <String>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
```

## DESCRIPTION

This function retrieves the configuration of authentication methods with specific state.

## EXAMPLES

### EXAMPLE 1

```powershell
Get-MtAuthenticationMethodPolicyConfig -State Enabled
```

## PARAMETERS

### -State

\{\{ Fill State Description \}\}

```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ProgressAction
\{\{ Fill ProgressAction Description \}\}
```yaml
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
## OUTPUTS
## NOTES
## RELATED LINKS
18 changes: 17 additions & 1 deletion website/docs/commands/Invoke-MtGraphRequest.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Enhanced version of Invoke-MgGraphRequest that supports paging, batching and cac
```powershell
Invoke-MtGraphRequest [-RelativeUri] <String[]> [-UniqueId <String[]>] [-Select <String[]>] [-Filter <String>]
[-QueryParameters <Hashtable>] [-ApiVersion <String>] [-ConsistencyLevel <String>] [-DisablePaging]
[-DisableBatching] [-BatchSize <Int32>] [-GraphBaseUri <Uri>] [-DisableCache]
[-DisableBatching] [-BatchSize <Int32>] [-GraphBaseUri <Uri>] [-DisableCache] [-OutputType <String>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
```

Expand Down Expand Up @@ -241,6 +241,22 @@ Accept pipeline input: False
Accept wildcard characters: False
```
### -OutputType
Specify the output type
```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: PSObject
Accept pipeline input: False
Accept wildcard characters: False
```
### -ProgressAction
\{\{ Fill ProgressAction Description \}\}
Expand Down
2 changes: 1 addition & 1 deletion website/docs/commands/Test-MtEidscaAF03.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Test-MtEidscaAF03 [-ProgressAction <ActionPreference>] [<CommonParameters>]

## DESCRIPTION

Requires the FIDO security key metadata to be published and verified with the FIDO Alliance Metadata Service, and also pass Microsoft???s additional set of validation testing.
Requires the FIDO security key metadata to be published and verified with the FIDO Alliance Metadata Service, and also pass Microsoft's additional set of validation testing.

Queries policies/authenticationMethodsPolicy/authenticationMethodConfigurations('Fido2')
and returns the result of
Expand Down
69 changes: 69 additions & 0 deletions website/docs/commands/Test-MtEidscaAF04.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
---
sidebar_class_name: hidden
description: Checks if Authentication Method - FIDO2 security key - Enforce key restrictions is set to 'true'
id: Test-MtEidscaAF04
title: Test-MtEidscaAF04
hide_title: false
hide_table_of_contents: false
custom_edit_url: https://github.com/maester365/maester/blob/main/powershell/public/Test-MtEidscaAF04.ps1
---

## SYNOPSIS

Checks if Authentication Method - FIDO2 security key - Enforce key restrictions is set to 'true'

## SYNTAX

```powershell
Test-MtEidscaAF04 [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

## DESCRIPTION

Manages if registration of FIDO2 keys should be restricted.

Queries policies/authenticationMethodsPolicy/authenticationMethodConfigurations('Fido2')
and returns the result of
graph/policies/authenticationMethodsPolicy/authenticationMethodConfigurations('Fido2').keyRestrictions.isEnforced -eq 'true'

## EXAMPLES

### EXAMPLE 1

```powershell
Test-MtEidscaAF04
```

Returns the result of graph.microsoft.com/beta/policies/authenticationMethodsPolicy/authenticationMethodConfigurations('Fido2').keyRestrictions.isEnforced -eq 'true'

## PARAMETERS

### -ProgressAction

\{\{ Fill ProgressAction Description \}\}

```yaml
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
## OUTPUTS
### System.Boolean
## NOTES
## RELATED LINKS
69 changes: 69 additions & 0 deletions website/docs/commands/Test-MtEidscaAF05.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
---
sidebar_class_name: hidden
description: Checks if Authentication Method - FIDO2 security key - Restricted is set to 'true'
id: Test-MtEidscaAF05
title: Test-MtEidscaAF05
hide_title: false
hide_table_of_contents: false
custom_edit_url: https://github.com/maester365/maester/blob/main/powershell/public/Test-MtEidscaAF05.ps1
---

## SYNOPSIS

Checks if Authentication Method - FIDO2 security key - Restricted is set to 'true'

## SYNTAX

```powershell
Test-MtEidscaAF05 [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

## DESCRIPTION

You can work with your Security key provider to determine the AAGuids of their devices for allowing or blocking usage.

Queries policies/authenticationMethodsPolicy/authenticationMethodConfigurations('Fido2')
and returns the result of
graph/policies/authenticationMethodsPolicy/authenticationMethodConfigurations('Fido2').keyRestrictions.aaGuids -notcontains $null -eq 'true'

## EXAMPLES

### EXAMPLE 1

```powershell
Test-MtEidscaAF05
```

Returns the result of graph.microsoft.com/beta/policies/authenticationMethodsPolicy/authenticationMethodConfigurations('Fido2').keyRestrictions.aaGuids -notcontains $null -eq 'true'

## PARAMETERS

### -ProgressAction

\{\{ Fill ProgressAction Description \}\}

```yaml
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
## OUTPUTS
### System.Boolean
## NOTES
## RELATED LINKS
8 changes: 4 additions & 4 deletions website/docs/commands/Test-MtEidscaAF06.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_class_name: hidden
description: Checks if Authentication Method - FIDO2 security key - Restrict specific keys is set to 'block'
description: Checks if Authentication Method - FIDO2 security key - Restrict specific keys is set to 'true'
id: Test-MtEidscaAF06
title: Test-MtEidscaAF06
hide_title: false
Expand All @@ -10,7 +10,7 @@ custom_edit_url: https://github.com/maester365/maester/blob/main/powershell/publ

## SYNOPSIS

Checks if Authentication Method - FIDO2 security key - Restrict specific keys is set to 'block'
Checks if Authentication Method - FIDO2 security key - Restrict specific keys is set to 'true'

## SYNTAX

Expand All @@ -24,7 +24,7 @@ Defines if list of AADGUID will be used to allow or block registration.

Queries policies/authenticationMethodsPolicy/authenticationMethodConfigurations('Fido2')
and returns the result of
graph/policies/authenticationMethodsPolicy/authenticationMethodConfigurations('Fido2').keyRestrictions.enforcementType -eq 'block'
graph/policies/authenticationMethodsPolicy/authenticationMethodConfigurations('Fido2').keyRestrictions.aaGuids -notcontains $null -and ($result.keyRestrictions.enforcementType -eq 'allow' -or $result.keyRestrictions.enforcementType -eq 'block') -eq 'true'

## EXAMPLES

Expand All @@ -34,7 +34,7 @@ and returns the result of
Test-MtEidscaAF06
```

Returns the result of graph.microsoft.com/beta/policies/authenticationMethodsPolicy/authenticationMethodConfigurations('Fido2').keyRestrictions.enforcementType -eq 'block'
Returns the result of graph.microsoft.com/beta/policies/authenticationMethodsPolicy/authenticationMethodConfigurations('Fido2').keyRestrictions.aaGuids -notcontains $null -and ($result.keyRestrictions.enforcementType -eq 'allow' -or $result.keyRestrictions.enforcementType -eq 'block') -eq 'true'

## PARAMETERS

Expand Down
4 changes: 2 additions & 2 deletions website/docs/commands/Test-MtEidscaAP08.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Defines if user consent to apps is allowed, and if it is, which app consent poli

Queries policies/authorizationPolicy
and returns the result of
graph/policies/authorizationPolicy.permissionGrantPolicyIdsAssignedToDefaultUserRole[2] -eq 'ManagePermissionGrantsForSelf.microsoft-user-default-low'
graph/policies/authorizationPolicy.permissionGrantPolicyIdsAssignedToDefaultUserRole | Sort-Object -Descending | select-object -first 1 -eq 'ManagePermissionGrantsForSelf.microsoft-user-default-low'

## EXAMPLES

Expand All @@ -34,7 +34,7 @@ and returns the result of
Test-MtEidscaAP08
```

Returns the result of graph.microsoft.com/beta/policies/authorizationPolicy.permissionGrantPolicyIdsAssignedToDefaultUserRole[2] -eq 'ManagePermissionGrantsForSelf.microsoft-user-default-low'
Returns the result of graph.microsoft.com/beta/policies/authorizationPolicy.permissionGrantPolicyIdsAssignedToDefaultUserRole | Sort-Object -Descending | select-object -first 1 -eq 'ManagePermissionGrantsForSelf.microsoft-user-default-low'

## PARAMETERS

Expand Down
5 changes: 2 additions & 3 deletions website/docs/commands/Test-MtEidscaCP04.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_class_name: hidden
description: Checks if Default Settings - Consent Policy Settings - Users can request admin consent to apps they are unable to consent to???
description: Checks if Default Settings - Consent Policy Settings - Users can request admin consent to apps they are unable to consent to is set to 'true'
id: Test-MtEidscaCP04
title: Test-MtEidscaCP04
hide_title: false
Expand All @@ -10,8 +10,7 @@ custom_edit_url: https://github.com/maester365/maester/blob/main/powershell/publ

## SYNOPSIS

Checks if Default Settings - Consent Policy Settings - Users can request admin consent to apps they are unable to consent to???
is set to 'true'
Checks if Default Settings - Consent Policy Settings - Users can request admin consent to apps they are unable to consent to is set to 'true'

## SYNTAX

Expand Down
5 changes: 2 additions & 3 deletions website/docs/commands/Test-MtEidscaCR02.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_class_name: hidden
description: Checks if Consent Framework - Admin Consent Request - Reviewers will receive email notifications for requests???
description: Checks if Consent Framework - Admin Consent Request - Reviewers will receive email notifications for requests is set to 'true'
id: Test-MtEidscaCR02
title: Test-MtEidscaCR02
hide_title: false
Expand All @@ -10,8 +10,7 @@ custom_edit_url: https://github.com/maester365/maester/blob/main/powershell/publ

## SYNOPSIS

Checks if Consent Framework - Admin Consent Request - Reviewers will receive email notifications for requests???
is set to 'true'
Checks if Consent Framework - Admin Consent Request - Reviewers will receive email notifications for requests is set to 'true'

## SYNTAX

Expand Down
5 changes: 2 additions & 3 deletions website/docs/commands/Test-MtEidscaCR03.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_class_name: hidden
description: Checks if Consent Framework - Admin Consent Request - Reviewers will receive email notifications when admin consent requests are about to expire???
description: Checks if Consent Framework - Admin Consent Request - Reviewers will receive email notifications when admin consent requests are about to expire is set to 'true'
id: Test-MtEidscaCR03
title: Test-MtEidscaCR03
hide_title: false
Expand All @@ -10,8 +10,7 @@ custom_edit_url: https://github.com/maester365/maester/blob/main/powershell/publ

## SYNOPSIS

Checks if Consent Framework - Admin Consent Request - Reviewers will receive email notifications when admin consent requests are about to expire???
is set to 'true'
Checks if Consent Framework - Admin Consent Request - Reviewers will receive email notifications when admin consent requests are about to expire is set to 'true'

## SYNTAX

Expand Down
Loading

0 comments on commit 6661c73

Please sign in to comment.