This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue | |
| $WebAppURL="<webapp URL>" | |
| $ReportOutput="<path to output CSV file>" | |
| $ResultColl = @() | |
| $WebsColl = Get-SPWebApplication $WebAppURL | Get-SPSite -Limit All | Get-SPWeb -Limit All | |
| Foreach($Web in $WebsColl) | |
| { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | $web = get-spweb "<web site URL>" | |
| function removeCustomInfopathListForms([String]$folderName, [Microsoft.SharePoint.SPContentType]$ct) | |
| { | |
| write-host Removing custom Infopath list form on $folderName | |
| # Remove InfoPath customisatin | |
| $ct.ResourceFolder.Properties["_ipfs_infopathenabled"] = "False" | |
| # Reset default form URL | |
| $ct.NewFormUrl = "" | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base | |
| #install fonts | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| RUN echo "deb http://deb.debian.org/debian/ bookworm main contrib" > /etc/apt/sources.list && \ | |
| echo "deb-src http://deb.debian.org/debian/ bookworm main contrib" >> /etc/apt/sources.list && \ | |
| echo "deb http://security.debian.org/ bookworm-security main contrib" >> /etc/apt/sources.list && \ | |
| echo "deb-src http://security.debian.org/ bookworm-security main contrib" >> /etc/apt/sources.list | |
| RUN sed -i'.bak' 's/$/ contrib/' /etc/apt/sources.list | |
| RUN echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | debconf-set-selections | |
| RUN apt-get update; apt-get install --no-install-recommends -y ttf-mscorefonts-installer fontconfig | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | $serverName = "localhost" | |
| $backupDirectory = "<your backup directory>" | |
| [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SMO") | Out-Null | |
| [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SmoExtended") | Out-Null | |
| [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.ConnectionInfo") | Out-Null | |
| [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SmoEnum") | Out-Null | |
| $server = New-Object ("Microsoft.SqlServer.Management.Smo.Server") $serverName | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | .\vs_community__1132454428.1487802560.exe --layout D:\ISO\Microsoft\VisualStudio\2017\offline --lang en-US --add Microsoft.VisualStudio.Component.Web Microsoft.VisualStudio.Component.WebDeploy Microsoft.Net.Component.4.5.2.TargetingPack Microsoft.Net.Component.4.5.2.TargetingPack Microsoft.VisualStudio.Component.CoreEditor Microsoft.VisualStudio.Component.NuGet Microsoft.VisualStudio.Component.WebDeploy |