Skip to content

Commit b4069a0

Browse files
committed
docs: update help
1 parent 98854ee commit b4069a0

File tree

6 files changed

+228
-46
lines changed

6 files changed

+228
-46
lines changed

README.md

+25-21
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,9 @@ Creates or retrieves a mail-enabled security group with a custom or default doma
265265
### Syntax
266266
```powershell
267267
268-
New-MailEnabledSendingGroup -Name <String> [-Alias <String>] -PrimarySmtpAddress <String> [-WhatIf] [-Confirm] [<CommonParameters>]
268+
New-MailEnabledSendingGroup -Name <String> [-Alias <String>] -PrimarySmtpAddress <String> [-LogOutputPath <String>] [-WhatIf] [-Confirm] [<CommonParameters>]
269269
270-
New-MailEnabledSendingGroup -Name <String> [-Alias <String>] -DefaultDomain <String> [-WhatIf] [-Confirm] [<CommonParameters>]
270+
New-MailEnabledSendingGroup -Name <String> [-Alias <String>] -DefaultDomain <String> [-LogOutputPath <String>] [-WhatIf] [-Confirm] [<CommonParameters>]
271271
272272
273273
@@ -278,8 +278,9 @@ New-MailEnabledSendingGroup -Name <String> [-Alias <String>] -DefaultDomain <Str
278278
| - | - | - | - | - | - |
279279
| <nobr>Name</nobr> | | The name of the mail-enabled security group to create or retrieve. This is also used as the alias if no separate Alias parameter is provided. | true | false | |
280280
| <nobr>Alias</nobr> | | An optional alias for the group. If omitted, the group name is used as the alias. | false | false | |
281-
| <nobr>PrimarySmtpAddress</nobr> | | \(CustomDomain parameter set\\) The full SMTP address for the group \(e.g. "[email protected]"\\). This parameter is mandatory when using the 'CustomDomain' parameter set. | true | false | |
282-
| <nobr>DefaultDomain</nobr> | | \(DefaultDomain parameter set\\) The domain portion to be appended to the group alias \(e.g. "Alias@DefaultDomain"\\). This parameter is mandatory when using the 'DefaultDomain' parameter set. | true | false | |
281+
| <nobr>PrimarySmtpAddress</nobr> | | \\(CustomDomain parameter set\) The full SMTP address for the group \\(e.g. "[email protected]"\). This parameter is mandatory when using the 'CustomDomain' parameter set. | true | false | |
282+
| <nobr>DefaultDomain</nobr> | | \\(DefaultDomain parameter set\) The domain portion to be appended to the group alias \\(e.g. "Alias@DefaultDomain"\). This parameter is mandatory when using the 'DefaultDomain' parameter set. | true | false | |
283+
| <nobr>LogOutputPath</nobr> | | An optional path to output the log file. If not provided, logs will not be written to a file. | false | false | |
283284
| <nobr>WhatIf</nobr> | wi | | false | false | |
284285
| <nobr>Confirm</nobr> | cf | | false | false | |
285286
### Inputs
@@ -289,7 +290,7 @@ New-MailEnabledSendingGroup -Name <String> [-Alias <String>] -DefaultDomain <Str
289290
- Microsoft.Exchange.Data.Directory.Management.DistributionGroup Returns the newly created or existing mail-enabled security group object.
290291

291292
### Note
292-
- Requires connectivity to Exchange Online \(Connect-TkMsService -ExchangeOnline\\). - The caller must have sufficient privileges to create or modify distribution groups. - DefaultParameterSetName = 'CustomDomain'.
293+
- Requires connectivity to Exchange Online \\(Connect-TkMsService -ExchangeOnline\). - The caller must have sufficient privileges to create or modify distribution groups. - DefaultParameterSetName = 'CustomDomain'.
293294

294295
### Examples
295296
**EXAMPLE 1**
@@ -314,9 +315,9 @@ Publishes a new or existing Graph Email App with specified configurations.
314315
### Syntax
315316
```powershell
316317
317-
Publish-TkEmailApp [-AppPrefix <String>] -AuthorizedSenderUserName <String> -MailEnabledSendingGroup <String> [-CertPrefix <String>] [-CertThumbprint <String>] [-KeyExportPolicy <String>] [-VaultName <String>] [-OverwriteVaultSecret] [-ReturnParamSplat] [-DoNotUseDomainSuffix] [<CommonParameters>]
318+
Publish-TkEmailApp [-AppPrefix <String>] -AuthorizedSenderUserName <String> -MailEnabledSendingGroup <String> [-CertPrefix <String>] [-CertThumbprint <String>] [-KeyExportPolicy <String>] [-VaultName <String>] [-OverwriteVaultSecret] [-ReturnParamSplat] [-DoNotUseDomainSuffix] [-LogOutput <String>] [-WhatIf] [-Confirm] [<CommonParameters>]
318319
319-
Publish-TkEmailApp -ExistingAppObjectId <String> -CertPrefix <String> [-CertThumbprint <String>] [-KeyExportPolicy <String>] [-VaultName <String>] [-OverwriteVaultSecret] [-ReturnParamSplat] [-DoNotUseDomainSuffix] [<CommonParameters>]
320+
Publish-TkEmailApp -ExistingAppObjectId <String> -CertPrefix <String> [-CertThumbprint <String>] [-KeyExportPolicy <String>] [-VaultName <String>] [-OverwriteVaultSecret] [-ReturnParamSplat] [-DoNotUseDomainSuffix] [-LogOutput <String>] [-WhatIf] [-Confirm] [<CommonParameters>]
320321
321322
322323
@@ -336,6 +337,9 @@ Publish-TkEmailApp -ExistingAppObjectId <String> -CertPrefix <String> [-CertThum
336337
| <nobr>OverwriteVaultSecret</nobr> | | If specified, overwrite the vault secret if it already exists. | false | false | False |
337338
| <nobr>ReturnParamSplat</nobr> | | If specified, return the parameter splat for use in other functions. | false | false | False |
338339
| <nobr>DoNotUseDomainSuffix</nobr> | | Switch to add session domain suffix to the app name. | false | false | False |
340+
| <nobr>LogOutput</nobr> | | If specified, log the output to the console. | false | false | |
341+
| <nobr>WhatIf</nobr> | wi | | false | false | |
342+
| <nobr>Confirm</nobr> | cf | | false | false | |
339343
### Note
340344
This cmdlet requires that the user running the cmdlet have the necessary permissions to create the app and connect to Exchange Online.
341345

@@ -434,7 +438,7 @@ Publish-TkEmailApp @useExistingParams
434438

435439
## Publish-TkM365AuditApp
436440
### Synopsis
437-
Publishes \(creates\\) a new M365 Audit App registration in Entra ID \(Azure AD\\) with a specified certificate.
441+
Publishes \\(creates\) a new M365 Audit App registration in Entra ID \\(Azure AD\) with a specified certificate.
438442
### Syntax
439443
```powershell
440444
@@ -447,9 +451,9 @@ Publish-TkM365AuditApp [[-AppPrefix] <String>] [[-CertThumbprint] <String>] [[-K
447451
### Parameters
448452
| Name | Alias | Description | Required? | Pipeline Input | Default Value |
449453
| - | - | - | - | - | - |
450-
| <nobr>AppPrefix</nobr> | | A short prefix \(2-4 alphanumeric characters\\) used to build the app name. Defaults to "Gtk" if not specified. Example app name: GraphToolKit-MSN-GraphApp-MyDomain-As-helpDesk | false | false | Gtk |
454+
| <nobr>AppPrefix</nobr> | | A short prefix \\(2-4 alphanumeric characters\) used to build the app name. Defaults to "Gtk" if not specified. Example app name: GraphToolKit-MSN-GraphApp-MyDomain-As-helpDesk | false | false | Gtk |
451455
| <nobr>CertThumbprint</nobr> | | The thumbprint of an existing certificate in the current user's certificate store. If not provided, a new self-signed certificate is created. | false | false | |
452-
| <nobr>KeyExportPolicy</nobr> | | Specifies whether the newly created certificate \(if no thumbprint is provided\\) is 'Exportable' or 'NonExportable'. Defaults to 'NonExportable'. | false | false | NonExportable |
456+
| <nobr>KeyExportPolicy</nobr> | | Specifies whether the newly created certificate \\(if no thumbprint is provided\) is 'Exportable' or 'NonExportable'. Defaults to 'NonExportable'. | false | false | NonExportable |
453457
| <nobr>VaultName</nobr> | | The SecretManagement vault name in which to store the app credentials. Defaults to "M365AuditAppLocalStore" if not specified. | false | false | M365AuditAppLocalStore |
454458
| <nobr>OverwriteVaultSecret</nobr> | | If specified, overwrites an existing secret in the specified vault if it already exists. | false | false | False |
455459
| <nobr>ReturnParamSplat</nobr> | | If specified, returns a parameter splat string for use in other functions, instead of the default PSCustomObject containing the app details. | false | false | False |
@@ -458,10 +462,10 @@ Publish-TkM365AuditApp [[-AppPrefix] <String>] [[-CertThumbprint] <String>] [[-K
458462
- None. This function does not accept pipeline input.
459463

460464
### Outputs
461-
- By default, returns a PSCustomObject with details of the new app \(AppId, ObjectId, TenantId, certificate thumbprint, expiration, etc.\\). If -ReturnParamSplat is used, returns a parameter splat string.
465+
- By default, returns a PSCustomObject with details of the new app \\(AppId, ObjectId, TenantId, certificate thumbprint, expiration, etc.\). If -ReturnParamSplat is used, returns a parameter splat string.
462466

463467
### Note
464-
Requires the Microsoft.Graph and ExchangeOnlineManagement modules for app creation and role assignment. The user must have sufficient privileges to create and manage applications in Azure AD, and to assign roles. After creation, admin consent may be required for the assigned permissions. Permissions required for app registration: 'Application.ReadWrite.All', 'DelegatedPermissionGrant.ReadWrite.All', 'Directory.ReadWrite.All', 'RoleManagement.ReadWrite.Directory' Permissions granted to the app: \(Exchange Administrator and Global Reader Roles are also added to the service principal.\\) 'AppCatalog.ReadWrite.All', 'Channel.Delete.All', 'ChannelMember.ReadWrite.All', 'ChannelSettings.ReadWrite.All', 'Directory.Read.All', 'Group.ReadWrite.All', 'Organization.Read.All', 'Policy.Read.All', 'Domain.Read.All', 'TeamSettings.ReadWrite.All', 'User.Read.All', 'Sites.Read.All', 'Sites.FullControl.All', 'Exchange.ManageAsApp'
468+
Requires the Microsoft.Graph and ExchangeOnlineManagement modules for app creation and role assignment. The user must have sufficient privileges to create and manage applications in Azure AD, and to assign roles. After creation, admin consent may be required for the assigned permissions. Permissions required for app registration: 'Application.ReadWrite.All', 'DelegatedPermissionGrant.ReadWrite.All', 'Directory.ReadWrite.All', 'RoleManagement.ReadWrite.Directory' Permissions granted to the app: \\(Exchange Administrator and Global Reader Roles are also added to the service principal.\) 'AppCatalog.ReadWrite.All', 'Channel.Delete.All', 'ChannelMember.ReadWrite.All', 'ChannelSettings.ReadWrite.All', 'Directory.Read.All', 'Group.ReadWrite.All', 'Organization.Read.All', 'Policy.Read.All', 'Domain.Read.All', 'TeamSettings.ReadWrite.All', 'User.Read.All', 'Sites.Read.All', 'Sites.FullControl.All', 'Exchange.ManageAsApp'
465469

466470
### Examples
467471
**EXAMPLE 1**
@@ -474,7 +478,7 @@ the credentials in the default vault.
474478

475479
## Publish-TkMemPolicyManagerApp
476480
### Synopsis
477-
Publishes a new MEM \(Intune\\) Policy Manager App in Azure AD with read-only or read-write permissions.
481+
Publishes a new MEM \\(Intune\) Policy Manager App in Azure AD with read-only or read-write permissions.
478482
### Syntax
479483
```powershell
480484
@@ -487,7 +491,7 @@ Publish-TkMemPolicyManagerApp [-AppPrefix] <String> [[-CertThumbprint] <String>]
487491
### Parameters
488492
| Name | Alias | Description | Required? | Pipeline Input | Default Value |
489493
| - | - | - | - | - | - |
490-
| <nobr>AppPrefix</nobr> | | A 2-4 character prefix used to build the application name \(e.g., CORP, MSN\\). This helps uniquely identify the app in Azure AD. | true | false | |
494+
| <nobr>AppPrefix</nobr> | | A 2-4 character prefix used to build the application name \\(e.g., CORP, MSN\). This helps uniquely identify the app in Azure AD. | true | false | |
491495
| <nobr>CertThumbprint</nobr> | | The thumbprint of an existing certificate in the current user's certificate store. If omitted, a new self-signed certificate is created. | false | false | |
492496
| <nobr>KeyExportPolicy</nobr> | | Specifies whether the newly created certificate is 'Exportable' or 'NonExportable'. Defaults to 'NonExportable' if not specified. | false | false | NonExportable |
493497
| <nobr>VaultName</nobr> | | The name of the SecretManagement vault in which to store the app credentials. Defaults to 'MemPolicyManagerLocalStore'. | false | false | MemPolicyManagerLocalStore |
@@ -499,7 +503,7 @@ Publish-TkMemPolicyManagerApp [-AppPrefix] <String> [[-CertThumbprint] <String>]
499503
- None. This function does not accept pipeline input.
500504

501505
### Outputs
502-
- By default, returns a PSCustomObject \(TkMemPolicyManagerAppParams\\) with details of the newly created app \(AppId, certificate thumbprint, tenant ID, etc.\\). If -ReturnParamSplat is used, returns a parameter splat string.
506+
- By default, returns a PSCustomObject \\(TkMemPolicyManagerAppParams\) with details of the newly created app \\(AppId, certificate thumbprint, tenant ID, etc.\). If -ReturnParamSplat is used, returns a parameter splat string.
503507

504508
### Note
505509
This function requires the Microsoft.Graph module for application creation and the user must have permissions in Azure AD to register and grant permissions to the application. After creation, admin consent may be needed to finalize the permission grants. Permissions required for app registration:: 'Application.ReadWrite.All', 'DelegatedPermissionGrant.ReadWrite.All', 'Directory.ReadWrite.All' Permissions required for read-only access: 'DeviceManagementConfiguration.Read.All', 'DeviceManagementApps.Read.All', 'DeviceManagementManagedDevices.Read.All', 'Policy.Read.ConditionalAccess', 'Policy.Read.All' Permissions required for read-write access: 'DeviceManagementConfiguration.ReadWrite.All', 'DeviceManagementApps.ReadWrite.All', 'DeviceManagementManagedDevices.ReadWrite.All', 'Policy.ReadWrite.ConditionalAccess', 'Policy.Read.All'
@@ -530,20 +534,20 @@ Send-TkEmailAppMessage -AppId <String> -TenantId <String> -CertThumbprint <Strin
530534
### Parameters
531535
| Name | Alias | Description | Required? | Pipeline Input | Default Value |
532536
| - | - | - | - | - | - |
533-
| <nobr>AppName</nobr> | | \[Vault Parameter Set Only\] The name of the pre-created Microsoft Graph Email App \(stored in GraphEmailAppLocalStore\\). Used only if the 'Vault' parameter set is chosen. The function retrieves the AppId, TenantId, and certificate thumbprint from the vault entry. | true | false | |
534-
| <nobr>AppId</nobr> | | \[Manual Parameter Set Only\] The Azure AD application \(client\\) ID to use for sending the email. Must be used together with TenantId and CertThumbprint in the 'Manual' parameter set. | true | false | |
535-
| <nobr>TenantId</nobr> | | \[Manual Parameter Set Only\] The Azure AD tenant ID \(GUID or domain name\\). Must be used together with AppId and CertThumbprint in the 'Manual' parameter set. | true | false | |
536-
| <nobr>CertThumbprint</nobr> | | \[Manual Parameter Set Only\] The certificate thumbprint \(in Cert:\\CurrentUser\\My\\) used for authenticating as the Azure AD app. Must be used together with AppId and TenantId in the 'Manual' parameter set. | true | false | |
537+
| <nobr>AppName</nobr> | | \[Vault Parameter Set Only\\] The name of the pre-created Microsoft Graph Email App \\(stored in GraphEmailAppLocalStore\). Used only if the 'Vault' parameter set is chosen. The function retrieves the AppId, TenantId, and certificate thumbprint from the vault entry. | true | false | |
538+
| <nobr>AppId</nobr> | | \[Manual Parameter Set Only\\] The Azure AD application \\(client\) ID to use for sending the email. Must be used together with TenantId and CertThumbprint in the 'Manual' parameter set. | true | false | |
539+
| <nobr>TenantId</nobr> | | \[Manual Parameter Set Only\\] The Azure AD tenant ID \\(GUID or domain name\). Must be used together with AppId and CertThumbprint in the 'Manual' parameter set. | true | false | |
540+
| <nobr>CertThumbprint</nobr> | | \[Manual Parameter Set Only\\] The certificate thumbprint \\(in Cert:\\CurrentUser\\My\) used for authenticating as the Azure AD app. Must be used together with AppId and TenantId in the 'Manual' parameter set. | true | false | |
537541
| <nobr>To</nobr> | | The email address of the recipient. | true | false | |
538542
| <nobr>FromAddress</nobr> | | The email address of the sender who is authorized to send email as configured in the Graph Email App. | true | false | |
539543
| <nobr>Subject</nobr> | | The subject line of the email. | true | false | |
540544
| <nobr>EmailBody</nobr> | | The body text of the email. | true | false | |
541545
| <nobr>AttachmentPath</nobr> | | An array of file paths for any attachments to include in the email. Each path must exist as a leaf file. | false | false | |
542-
| <nobr>VaultName</nobr> | | \[Vault Parameter Set Only\] The name of the vault to retrieve the GraphEmailApp object. Default is 'GraphEmailAppLocalStore'. | false | false | GraphEmailAppLocalStore |
546+
| <nobr>VaultName</nobr> | | \[Vault Parameter Set Only\\] The name of the vault to retrieve the GraphEmailApp object. Default is 'GraphEmailAppLocalStore'. | false | false | GraphEmailAppLocalStore |
543547
| <nobr>WhatIf</nobr> | wi | | false | false | |
544548
| <nobr>Confirm</nobr> | cf | | false | false | |
545549
### Note
546-
- This function requires the Microsoft.Graph, SecretManagement, SecretManagement.JustinGrote.CredMan, and MSAL.PS modules to be installed \(handled automatically via Initialize-TkModuleEnv\\). - For the 'Vault' parameter set, the local vault secret must store JSON properties including AppId, TenantID, and CertThumbprint. - Refer to https://learn.microsoft.com/en-us/graph/outlook-send-mail for details on sending mail via Microsoft Graph.
550+
- This function requires the Microsoft.Graph, SecretManagement, SecretManagement.JustinGrote.CredMan, and MSAL.PS modules to be installed \\(handled automatically via Initialize-TkModuleEnv\). - For the 'Vault' parameter set, the local vault secret must store JSON properties including AppId, TenantID, and CertThumbprint. - Refer to https://learn.microsoft.com/en-us/graph/outlook-send-mail for details on sending mail via Microsoft Graph.
547551

548552
### Examples
549553
**EXAMPLE 1**

0 commit comments

Comments
 (0)