Skip to content

Instantly share code, notes, and snippets.

@hermesthecat
Forked from jhochwald/disable_OWA-iframe.ps1
Created January 10, 2022 12:04
Show Gist options
  • Select an option

  • Save hermesthecat/a2385fc365fa857620fa607dd4ddbab2 to your computer and use it in GitHub Desktop.

Select an option

Save hermesthecat/a2385fc365fa857620fa607dd4ddbab2 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