Comment based help.

Ask your PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 2 months and 1 day old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
DaveMcDonald
Posts: 23
Last visit: Thu Oct 24, 2024 7:24 am

Comment based help.

Post by DaveMcDonald »

I have one script, just one (which is weird) that will not work with get-help.

Here is the section
<#
.SYNOPSIS
This script will modify permissions ona shared mailbox

.DESCRIPTION
This script will modify the permissions on a Shared Mailbox.
1. It will require a connection to Exchange Online
2. It will require a list of mailboxes to Add or Delete

.PARAMETER SharedMailbox
Mandatory. The Email address of the Shared Mailbox

.PARAMETER Add
The list of mailboxes to grant full access and send as permissions. In this format - "Dave.McDonald@dfo-mpo.gc.ca","Frederic.Charette@dfo-mpo.gc.ca"

.PARAMETER Remove
The list of mailbox to remove full access and send as permissions. In this format - "Dave.McDonald@dfo-mpo.gc.ca","Frederic.Charette@dfo-mpo.gc.ca"

.EXAMPLE
PS C:\> SharedMailboxPer.ps1 -SharedMailbox "Something@dfo-mpo.gc.a" -Add "Dave.McDonald@dfo-mpo.gc.ca","Frederic.Charette@dfo-mpo.gc.ca" -Remove "John.Flemming@dfo-mpo.gc.ca

#>

Now I have rebuilt it and copied it etc etc and it still doesn't work with :
get-help .\SharedMailboxPerm.ps1

Every time it tries to run a search instead of pulling the information from that file.

Any ideas?
This topic is 2 months and 1 day old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked