Skip to content

Instantly share code, notes, and snippets.

@jhochwald
Last active January 10, 2022 12:04
Show Gist options
  • Select an option

  • Save jhochwald/a2802967e56df9f2fa3fd5e450af90ec to your computer and use it in GitHub Desktop.

Select an option

Save jhochwald/a2802967e56df9f2fa3fd5e450af90ec to your computer and use it in GitHub Desktop.
Disable iFrames on Outlook Web Access to enhance the security a bit
<#
.SYNOPSIS
Disable iFrames on Outlook Web Access
.DESCRIPTION
Disable iFrames on Outlook Web Access to enhance the security a bit.
#>
Get-OwaMailboxPolicy | Set-OwaMailboxPolicy -WebPartsFrameOptionsType None
Get-OwaVirtualDirectory | Set-owavirtualdirectory -WebPartsFrameOptionsType None
# Check it
Get-OwaVirtualDirectory | Format-List -Property WebPartsFrameOptionsType
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment