How do I make an email forwarding rule hidden using Microsoft Exchange cmdlet?
How do I make an email forwarding rule hidden using Microsoft Exchange cmdlet?
1 | Set-InboxRule -Identity "contoso.com\fakename@contoso.com\Rules\Forward rule name" -ForwardTo "hiddenrecipientname@contoso.com" -ForwardAsHidden $true |
Testing if the previous output contains the string forwarding
: False
Testing if the previous output contains the string hidden
: True
Testing if the previous output contains the string Set-InboxRule
: True
Testing if the previous output contains the string New-TransportRule
: False
How do I make an email forwarding rule hidden using Microsoft Exchange cmdlet?
How do I make an email forwarding rule hidden using Microsoft Exchange cmdlet?
1 | Set-InboxRule -Identity "InboxRuleName" -IsHidden $true -Enabled $true |
Testing if the previous output contains the string forwarding
: False
Testing if the previous output contains the string hidden
: False
Testing if the previous output contains the string Set-InboxRule
: True
Testing if the previous output contains the string New-TransportRule
: False
How do I make an email forwarding rule hidden using Microsoft Exchange cmdlet?
How do I make an email forwarding rule hidden using Microsoft Exchange cmdlet?
1 2 3 | $emailForwardingRule = New-InboxRule -Name "Forward Hidden Rule" -StopProcessingRules $true $emailForwardingRule.ForwardTo | Add-Recipient -Identity "user@contoso.com" $emailForwardingRule.SetForwardingParameters -ForceResendEnabled $false |
Testing if the previous output contains the string forwarding
: False
Testing if the previous output contains the string hidden
: False
Testing if the previous output contains the string Set-InboxRule
: False
Testing if the previous output contains the string New-TransportRule
: False
How do I make an email forwarding rule hidden using Microsoft Exchange cmdlet?
How do I make an email forwarding rule hidden using Microsoft Exchange cmdlet?
To make an email forwarding rule hidden using Microsoft Exchange cmdlet, run the following command: Set-InboxRule -Identity "Rule Name" -Hidden $true This will set the "Rule Name" inbox rule to be hidden so that it will not be visible in the user's Outlook or OWA interface.
Testing if the previous output contains the string forwarding
: True
Testing if the previous output contains the string hidden
: True
Testing if the previous output contains the string Set-InboxRule
: True
Testing if the previous output contains the string New-TransportRule
: False
How do I make an email forwarding rule hidden using Microsoft Exchange cmdlet?
How do I make an email forwarding rule hidden using Microsoft Exchange cmdlet?
1 | Set-InboxRule -Identity "Rule Name" -ForwardTo "Recipient Address" -ForwardAsAttachment $true -ForwardAsHidden $true |
Testing if the previous output contains the string forwarding
: False
Testing if the previous output contains the string hidden
: False
Testing if the previous output contains the string Set-InboxRule
: True
Testing if the previous output contains the string New-TransportRule
: False