exchange
2844 TopicsRemote execution with exchange powershell
I'm trying to extract the primarysmtpaddress of each member of a distribution group from an exchange server in a remote forest. The bulk of the script is something link this $parameters = @{ ConfigurationName = 'Microsoft.Exchange' ConnectionUri = 'http://srvwex.company.local/powershell' Credential = $sourceCred # Authentication = 'Basic' ScriptBlock = {{(Get-DistributionGroup $args[0] |Get-DistributionGroupMember).PrimarySmtpAddress }} ArgumentList = $DG.Alias } $RemoteMembership=(Invoke-Command @parameters) but I got the following error The syntax is not supported by this runspace. This can occur if the runspace is in no-language mode. + CategoryInfo : ParserError: ({(Get-Distribut...rySmtpAddress }:String) [], ParseException + FullyQualifiedErrorId : ScriptsNotAllowed Running the command (Get-DistributionGroup distributiongroup | Get-DistributionGroupMember).PrimarySmtpAddress locally on the remote exchange server obviously works Is there a way I can do it ? thanks25Views0likes1CommentFinding Inactive Mailboxes Based on Message Trace Data
This article covers how to use Exchange Online message trace data to find inactive mailboxes based on their message send activity. The script processes user mailboxes but can easily be adapted to process shared mailboxes too. This is only one way to find inactive maiboxes. The other methods mentioned in the article might be better suited to your purpose. https://office365itpros.com/2024/11/29/find-inactive-mailboxes-tracing/14Views0likes0CommentsHow do I book a meeting room for an invite that has been sent to me
We use room resource calendars for our room bookings. Usually we just add the meeting room into the location field or even as a participant and it books the room. When we get meeting invitations from external parties not in our organisation (e.g. suppliers) that will visit us, we'd like to book a meeting room for that visit. How do we do this? The only way we can currently do this is by creating our own duplicate calendar entry for the meeting and choose that room as the location, but we'd like to find a more integrated way, rather than having two separate unlinked calendar entries. With separate calendar entries, if the external meeting initiator changes meeting time, we have to manually change our own related calendar entry which we forget to do resulting in room being booked for wrong time. Any solutions or suggestions to help with this problem?64KViews4likes24CommentsHelp with Outlook email Archive
Hello folks, I am new here. I need some guidance. I was helped by a wonderful MS agent to help me archive my old email with a policy. But for some reason it has not worked and wiped out all my older emails than 3 years. They were very important ones to me and memories of my dad as well as legal documents and email trails. I am really stressed and cant find a solution. Any group expert here who can please help me!! I will really appreciate it. Please someone can help me?46Views0likes4CommentsEnable-Mailuser for cloud only users
Hey, I have a question concerning turning cloud-only users into Mail Users in Office 365 without re-creating the user accounts (as they already are licensed for SPO and need to remain licensed with the exact same user account). So my question is if there is an equivalent to Enable-Mailuser command in the O365 world as well?Solved17KViews0likes11CommentsDLP Exception for "Permission Controlled" Not Working (Microsoft Purview | RMS Template | Encrypt)
Hello, We are in the process of moving some of our mail-flow / transport rules over to Microsoft Purview. We don't want the DLP policy to apply when people click their "Encrypt" or "Do not Forward" buttons (RMS templates; OME encryption.) Putting "Permission Controlled" in the exceptions group should theoretically let the emails go through.The exception we have for when people put "Encrypt" in the subject line works (we have a mail-flow rule that encrypts those emails.) But actually clicking "Options" > "Set permissions on this item" > "Encrypt" doesn't remove the policy tip on an email draft, and people are unable to send the emails. Can someone verify that this rule is constructed properly? If so, we may have to reach out to Microsoft Support. Thank you so much for your time and help!201Views1like4Comments