diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..20e6905 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,28 @@ +# SPSTrust line-ending and encoding policy +# +# PowerShell files run under Windows PowerShell 5.1 on SharePoint servers. Without a +# BOM, Windows PowerShell 5.1 reads .ps1/.psm1/.psd1 as ANSI (the system code page), +# which corrupts any non-ASCII character. We therefore store all PowerShell files as +# UTF-8 with BOM (the BOM is part of the committed content) and check them out with +# CRLF line endings (native on the target servers). +# +# YAML, Markdown and other text files must NOT carry a BOM (it breaks some YAML +# parsers and is unwanted on GitHub-rendered files); they use LF. + +* text=auto eol=lf + +# PowerShell -- committed with a UTF-8 BOM, checked out with CRLF +*.ps1 text eol=crlf +*.psm1 text eol=crlf +*.psd1 text eol=crlf + +# Workflows / docs / config -- no BOM, LF +*.yml text eol=lf +*.yaml text eol=lf +*.md text eol=lf +*.json text eol=lf + +# Binary artifacts (release ZIP, screenshots) +*.dll binary +*.png binary +*.zip binary diff --git a/src/Config/CONTOSO-PROD.example.psd1 b/src/Config/CONTOSO-PROD.example.psd1 index cf00f99..5f80576 100644 --- a/src/Config/CONTOSO-PROD.example.psd1 +++ b/src/Config/CONTOSO-PROD.example.psd1 @@ -1,4 +1,4 @@ -@{ +@{ # SPSTrust configuration file (PowerShell data file). # Copy this example to '-.psd1' (e.g. CONTOSO-PROD.psd1) # and adjust the values to match your environment, then run: diff --git a/src/Modules/SPSTrust.Common/Private/ConvertTo-SPSHtmlEncoded.ps1 b/src/Modules/SPSTrust.Common/Private/ConvertTo-SPSHtmlEncoded.ps1 index 2c64eb1..ed428ca 100644 --- a/src/Modules/SPSTrust.Common/Private/ConvertTo-SPSHtmlEncoded.ps1 +++ b/src/Modules/SPSTrust.Common/Private/ConvertTo-SPSHtmlEncoded.ps1 @@ -1,4 +1,4 @@ -function ConvertTo-SPSHtmlEncoded { +function ConvertTo-SPSHtmlEncoded { <# .SYNOPSIS HTML-encodes a string for safe insertion into generated HTML reports. diff --git a/src/Modules/SPSTrust.Common/Private/Get-SPSReportCardHtml.ps1 b/src/Modules/SPSTrust.Common/Private/Get-SPSReportCardHtml.ps1 index 0a8d9d4..55b40d4 100644 --- a/src/Modules/SPSTrust.Common/Private/Get-SPSReportCardHtml.ps1 +++ b/src/Modules/SPSTrust.Common/Private/Get-SPSReportCardHtml.ps1 @@ -1,4 +1,4 @@ -function Get-SPSReportCardHtml { +function Get-SPSReportCardHtml { <# .SYNOPSIS Builds the HTML for one summary "card" (a big number plus a label). diff --git a/src/Modules/SPSTrust.Common/Private/Get-SPSReportHtmlHead.ps1 b/src/Modules/SPSTrust.Common/Private/Get-SPSReportHtmlHead.ps1 index eb5525f..f05afc7 100644 --- a/src/Modules/SPSTrust.Common/Private/Get-SPSReportHtmlHead.ps1 +++ b/src/Modules/SPSTrust.Common/Private/Get-SPSReportHtmlHead.ps1 @@ -1,4 +1,4 @@ -function Get-SPSReportHtmlHead { +function Get-SPSReportHtmlHead { <# .SYNOPSIS Returns the document head (with the embedded stylesheet) and the opening body tag. diff --git a/src/Modules/SPSTrust.Common/Private/Get-SPSReportHtmlScript.ps1 b/src/Modules/SPSTrust.Common/Private/Get-SPSReportHtmlScript.ps1 index af72fa1..c5fdb44 100644 --- a/src/Modules/SPSTrust.Common/Private/Get-SPSReportHtmlScript.ps1 +++ b/src/Modules/SPSTrust.Common/Private/Get-SPSReportHtmlScript.ps1 @@ -1,4 +1,4 @@ -function Get-SPSReportHtmlScript { +function Get-SPSReportHtmlScript { <# .SYNOPSIS Returns the vanilla-JavaScript block that makes the trust matrix table interactive. diff --git a/src/Modules/SPSTrust.Common/Private/Invoke-SPSCommand.ps1 b/src/Modules/SPSTrust.Common/Private/Invoke-SPSCommand.ps1 index b3d5b3f..f02bf24 100644 --- a/src/Modules/SPSTrust.Common/Private/Invoke-SPSCommand.ps1 +++ b/src/Modules/SPSTrust.Common/Private/Invoke-SPSCommand.ps1 @@ -1,68 +1,68 @@ -function Invoke-SPSCommand { - [CmdletBinding()] - param ( - [Parameter(Mandatory = $true)] - [System.Management.Automation.PSCredential] - $Credential, # Credential to be used for executing the command - [Parameter()] - [Object[]] - $Arguments, # Optional arguments for the script block - [Parameter(Mandatory = $true)] - [ScriptBlock] - $ScriptBlock, # Script block containing the commands to execute - [Parameter(Mandatory = $true)] - [System.String] - $Server # Target server where the commands will be executed - ) - $VerbosePreference = 'Continue' - # Base script to ensure the SharePoint Server module is loaded on the remote host - $baseScript = @" - if (`$null -eq (Get-Module -Name SharePointServer)) - { - Import-Module -Name SharePointServer -Verbose:`$false -WarningAction SilentlyContinue -DisableNameChecking - } -"@ - - $invokeArgs = @{ - ScriptBlock = [ScriptBlock]::Create($baseScript + $ScriptBlock.ToString()) - } - # Add arguments if provided - if ($null -ne $Arguments) { - $invokeArgs.Add("ArgumentList", $Arguments) - } - # Ensure a credential is provided - if ($null -eq $Credential) { - throw 'You need to specify a Credential' - } - else { - Write-Verbose -Message ("Executing using a provided credential and local PSSession " + "as user $($Credential.UserName)") - # Running garbage collection to resolve issues related to Azure DSC extension use - [GC]::Collect() - # Create a new PowerShell session on the target server using the provided credentials - $session = New-PSSession -ComputerName $Server ` - -Credential $Credential ` - -Authentication CredSSP ` - -Name "Microsoft.SharePoint.PSSession" ` - -SessionOption (New-PSSessionOption -OperationTimeout 0 -IdleTimeout 60000) ` - -ErrorAction Continue - - # Add the session to the invocation arguments if the session is created successfully - if ($session) { - $invokeArgs.Add("Session", $session) - } - try { - # Invoke the command on the target server - return Invoke-Command @invokeArgs -Verbose - } - catch { - throw $_ # Throw any caught exceptions - } - finally { - # Remove the session to clean up - if ($session) { - Remove-PSSession -Session $session - } - } - } -} - +function Invoke-SPSCommand { + [CmdletBinding()] + param ( + [Parameter(Mandatory = $true)] + [System.Management.Automation.PSCredential] + $Credential, # Credential to be used for executing the command + [Parameter()] + [Object[]] + $Arguments, # Optional arguments for the script block + [Parameter(Mandatory = $true)] + [ScriptBlock] + $ScriptBlock, # Script block containing the commands to execute + [Parameter(Mandatory = $true)] + [System.String] + $Server # Target server where the commands will be executed + ) + $VerbosePreference = 'Continue' + # Base script to ensure the SharePoint Server module is loaded on the remote host + $baseScript = @" + if (`$null -eq (Get-Module -Name SharePointServer)) + { + Import-Module -Name SharePointServer -Verbose:`$false -WarningAction SilentlyContinue -DisableNameChecking + } +"@ + + $invokeArgs = @{ + ScriptBlock = [ScriptBlock]::Create($baseScript + $ScriptBlock.ToString()) + } + # Add arguments if provided + if ($null -ne $Arguments) { + $invokeArgs.Add("ArgumentList", $Arguments) + } + # Ensure a credential is provided + if ($null -eq $Credential) { + throw 'You need to specify a Credential' + } + else { + Write-Verbose -Message ("Executing using a provided credential and local PSSession " + "as user $($Credential.UserName)") + # Running garbage collection to resolve issues related to Azure DSC extension use + [GC]::Collect() + # Create a new PowerShell session on the target server using the provided credentials + $session = New-PSSession -ComputerName $Server ` + -Credential $Credential ` + -Authentication CredSSP ` + -Name "Microsoft.SharePoint.PSSession" ` + -SessionOption (New-PSSessionOption -OperationTimeout 0 -IdleTimeout 60000) ` + -ErrorAction Continue + + # Add the session to the invocation arguments if the session is created successfully + if ($session) { + $invokeArgs.Add("Session", $session) + } + try { + # Invoke the command on the target server + return Invoke-Command @invokeArgs -Verbose + } + catch { + throw $_ # Throw any caught exceptions + } + finally { + # Remove the session to clean up + if ($session) { + Remove-PSSession -Session $session + } + } + } +} + diff --git a/src/Modules/SPSTrust.Common/Public/Backup-SPSJsonFile.ps1 b/src/Modules/SPSTrust.Common/Public/Backup-SPSJsonFile.ps1 index 4dd6a7d..3d7bafb 100644 --- a/src/Modules/SPSTrust.Common/Public/Backup-SPSJsonFile.ps1 +++ b/src/Modules/SPSTrust.Common/Public/Backup-SPSJsonFile.ps1 @@ -1,4 +1,4 @@ -function Backup-SPSJsonFile { +function Backup-SPSJsonFile { <# .SYNOPSIS Archives an existing results JSON snapshot into a history folder before it is overwritten. diff --git a/src/Modules/SPSTrust.Common/Public/Clear-SPSLogFolder.ps1 b/src/Modules/SPSTrust.Common/Public/Clear-SPSLogFolder.ps1 index 6b31579..e1b7c23 100644 --- a/src/Modules/SPSTrust.Common/Public/Clear-SPSLogFolder.ps1 +++ b/src/Modules/SPSTrust.Common/Public/Clear-SPSLogFolder.ps1 @@ -1,4 +1,4 @@ -function Clear-SPSLogFolder { +function Clear-SPSLogFolder { <# .SYNOPSIS Deletes old files from a folder based on a retention window. diff --git a/src/Modules/SPSTrust.Common/Public/Export-SPSSecurityTokenCertificate.ps1 b/src/Modules/SPSTrust.Common/Public/Export-SPSSecurityTokenCertificate.ps1 index 920bd1e..6c27247 100644 --- a/src/Modules/SPSTrust.Common/Public/Export-SPSSecurityTokenCertificate.ps1 +++ b/src/Modules/SPSTrust.Common/Public/Export-SPSSecurityTokenCertificate.ps1 @@ -1,4 +1,4 @@ -function Export-SPSSecurityTokenCertificate { +function Export-SPSSecurityTokenCertificate { [CmdletBinding()] param ( diff --git a/src/Modules/SPSTrust.Common/Public/Export-SPSTrustReport.ps1 b/src/Modules/SPSTrust.Common/Public/Export-SPSTrustReport.ps1 index 84b268f..89dceb5 100644 --- a/src/Modules/SPSTrust.Common/Public/Export-SPSTrustReport.ps1 +++ b/src/Modules/SPSTrust.Common/Public/Export-SPSTrustReport.ps1 @@ -1,4 +1,4 @@ -function Export-SPSTrustReport { +function Export-SPSTrustReport { <# .SYNOPSIS Renders a trust status object (or results JSON file) into a self-contained HTML report. diff --git a/src/Modules/SPSTrust.Common/Public/Export-SPSTrustedRootAuthority.ps1 b/src/Modules/SPSTrust.Common/Public/Export-SPSTrustedRootAuthority.ps1 index 1661b60..2d0d7f8 100644 --- a/src/Modules/SPSTrust.Common/Public/Export-SPSTrustedRootAuthority.ps1 +++ b/src/Modules/SPSTrust.Common/Public/Export-SPSTrustedRootAuthority.ps1 @@ -1,4 +1,4 @@ -function Export-SPSTrustedRootAuthority { +function Export-SPSTrustedRootAuthority { [CmdletBinding()] param ( diff --git a/src/Modules/SPSTrust.Common/Public/Get-SPSFarmId.ps1 b/src/Modules/SPSTrust.Common/Public/Get-SPSFarmId.ps1 index 0c4c27d..5595480 100644 --- a/src/Modules/SPSTrust.Common/Public/Get-SPSFarmId.ps1 +++ b/src/Modules/SPSTrust.Common/Public/Get-SPSFarmId.ps1 @@ -1,4 +1,4 @@ -function Get-SPSFarmId { +function Get-SPSFarmId { [CmdletBinding()] [OutputType([System.Collections.Hashtable])] param diff --git a/src/Modules/SPSTrust.Common/Public/Get-SPSPublishedServiceAppPermission.ps1 b/src/Modules/SPSTrust.Common/Public/Get-SPSPublishedServiceAppPermission.ps1 index 999efe8..ab1d19f 100644 --- a/src/Modules/SPSTrust.Common/Public/Get-SPSPublishedServiceAppPermission.ps1 +++ b/src/Modules/SPSTrust.Common/Public/Get-SPSPublishedServiceAppPermission.ps1 @@ -1,4 +1,4 @@ -function Get-SPSPublishedServiceAppPermission { +function Get-SPSPublishedServiceAppPermission { [CmdletBinding()] [OutputType([System.Collections.Hashtable])] param diff --git a/src/Modules/SPSTrust.Common/Public/Get-SPSPublishedServiceAppProxy.ps1 b/src/Modules/SPSTrust.Common/Public/Get-SPSPublishedServiceAppProxy.ps1 index 95d04ff..99661fd 100644 --- a/src/Modules/SPSTrust.Common/Public/Get-SPSPublishedServiceAppProxy.ps1 +++ b/src/Modules/SPSTrust.Common/Public/Get-SPSPublishedServiceAppProxy.ps1 @@ -1,4 +1,4 @@ -function Get-SPSPublishedServiceAppProxy { +function Get-SPSPublishedServiceAppProxy { [CmdletBinding()] [OutputType([System.Collections.Hashtable])] param diff --git a/src/Modules/SPSTrust.Common/Public/Get-SPSPublishedServiceApplication.ps1 b/src/Modules/SPSTrust.Common/Public/Get-SPSPublishedServiceApplication.ps1 index e4c4f3c..d8db473 100644 --- a/src/Modules/SPSTrust.Common/Public/Get-SPSPublishedServiceApplication.ps1 +++ b/src/Modules/SPSTrust.Common/Public/Get-SPSPublishedServiceApplication.ps1 @@ -1,4 +1,4 @@ -function Get-SPSPublishedServiceApplication { +function Get-SPSPublishedServiceApplication { [CmdletBinding()] [OutputType([System.Collections.Hashtable])] param diff --git a/src/Modules/SPSTrust.Common/Public/Get-SPSServer.ps1 b/src/Modules/SPSTrust.Common/Public/Get-SPSServer.ps1 index 58a246d..43ab8ed 100644 --- a/src/Modules/SPSTrust.Common/Public/Get-SPSServer.ps1 +++ b/src/Modules/SPSTrust.Common/Public/Get-SPSServer.ps1 @@ -1,22 +1,22 @@ -function Get-SPSServer { - [CmdletBinding()] - [OutputType([System.Collections.Hashtable])] - param ( - [Parameter(Mandatory = $true)] - [System.String] - $Server, # Name of the SharePoint server - [Parameter()] - [System.Management.Automation.PSCredential] - $InstallAccount # Credential for accessing the SharePoint server - ) - Write-Verbose "Getting SharePoint Servers of Farm '$Server'" - # Use the Invoke-SPSCommand function to get SharePoint servers - $result = Invoke-SPSCommand -Credential $InstallAccount ` - -Arguments $PSBoundParameters ` - -Server $Server ` - -ScriptBlock { - (Get-SPServer | Where-Object -FilterScript { $_.Role -ne 'Invalid' }).Name - } - return $result -} - +function Get-SPSServer { + [CmdletBinding()] + [OutputType([System.Collections.Hashtable])] + param ( + [Parameter(Mandatory = $true)] + [System.String] + $Server, # Name of the SharePoint server + [Parameter()] + [System.Management.Automation.PSCredential] + $InstallAccount # Credential for accessing the SharePoint server + ) + Write-Verbose "Getting SharePoint Servers of Farm '$Server'" + # Use the Invoke-SPSCommand function to get SharePoint servers + $result = Invoke-SPSCommand -Credential $InstallAccount ` + -Arguments $PSBoundParameters ` + -Server $Server ` + -ScriptBlock { + (Get-SPServer | Where-Object -FilterScript { $_.Role -ne 'Invalid' }).Name + } + return $result +} + diff --git a/src/Modules/SPSTrust.Common/Public/Get-SPSTopologyServiceAppPermission.ps1 b/src/Modules/SPSTrust.Common/Public/Get-SPSTopologyServiceAppPermission.ps1 index 3fe4a89..4e30c8b 100644 --- a/src/Modules/SPSTrust.Common/Public/Get-SPSTopologyServiceAppPermission.ps1 +++ b/src/Modules/SPSTrust.Common/Public/Get-SPSTopologyServiceAppPermission.ps1 @@ -1,4 +1,4 @@ -function Get-SPSTopologyServiceAppPermission { +function Get-SPSTopologyServiceAppPermission { [CmdletBinding()] [OutputType([System.Collections.Hashtable])] param diff --git a/src/Modules/SPSTrust.Common/Public/Get-SPSTrustStatus.ps1 b/src/Modules/SPSTrust.Common/Public/Get-SPSTrustStatus.ps1 index df92347..0e79ed8 100644 --- a/src/Modules/SPSTrust.Common/Public/Get-SPSTrustStatus.ps1 +++ b/src/Modules/SPSTrust.Common/Public/Get-SPSTrustStatus.ps1 @@ -1,4 +1,4 @@ -function Get-SPSTrustStatus { +function Get-SPSTrustStatus { <# .SYNOPSIS Collects the current cross-farm trust state as a read-only status object. diff --git a/src/Modules/SPSTrust.Common/Public/Get-SPSTrustedRootAuthority.ps1 b/src/Modules/SPSTrust.Common/Public/Get-SPSTrustedRootAuthority.ps1 index f3f69ab..abba920 100644 --- a/src/Modules/SPSTrust.Common/Public/Get-SPSTrustedRootAuthority.ps1 +++ b/src/Modules/SPSTrust.Common/Public/Get-SPSTrustedRootAuthority.ps1 @@ -1,4 +1,4 @@ -function Get-SPSTrustedRootAuthority { +function Get-SPSTrustedRootAuthority { [CmdletBinding()] [OutputType([System.Collections.Hashtable])] param diff --git a/src/Modules/SPSTrust.Common/Public/Get-SPSTrustedServiceTokenIssuer.ps1 b/src/Modules/SPSTrust.Common/Public/Get-SPSTrustedServiceTokenIssuer.ps1 index e169813..9de445b 100644 --- a/src/Modules/SPSTrust.Common/Public/Get-SPSTrustedServiceTokenIssuer.ps1 +++ b/src/Modules/SPSTrust.Common/Public/Get-SPSTrustedServiceTokenIssuer.ps1 @@ -1,4 +1,4 @@ -function Get-SPSTrustedServiceTokenIssuer { +function Get-SPSTrustedServiceTokenIssuer { [CmdletBinding()] [OutputType([System.Collections.Hashtable])] param diff --git a/src/Modules/SPSTrust.Common/Public/New-SPSPublishedServiceAppProxy.ps1 b/src/Modules/SPSTrust.Common/Public/New-SPSPublishedServiceAppProxy.ps1 index 4ea698d..92da760 100644 --- a/src/Modules/SPSTrust.Common/Public/New-SPSPublishedServiceAppProxy.ps1 +++ b/src/Modules/SPSTrust.Common/Public/New-SPSPublishedServiceAppProxy.ps1 @@ -1,4 +1,4 @@ -function New-SPSPublishedServiceAppProxy { +function New-SPSPublishedServiceAppProxy { [CmdletBinding()] param ( diff --git a/src/Modules/SPSTrust.Common/Public/Publish-SPSServiceApplication.ps1 b/src/Modules/SPSTrust.Common/Public/Publish-SPSServiceApplication.ps1 index 82549b0..cc12a70 100644 --- a/src/Modules/SPSTrust.Common/Public/Publish-SPSServiceApplication.ps1 +++ b/src/Modules/SPSTrust.Common/Public/Publish-SPSServiceApplication.ps1 @@ -1,4 +1,4 @@ -function Publish-SPSServiceApplication { +function Publish-SPSServiceApplication { [CmdletBinding()] param ( diff --git a/src/Modules/SPSTrust.Common/Public/Remove-SPSPublishedServiceAppProxy.ps1 b/src/Modules/SPSTrust.Common/Public/Remove-SPSPublishedServiceAppProxy.ps1 index a67cf10..8e337c5 100644 --- a/src/Modules/SPSTrust.Common/Public/Remove-SPSPublishedServiceAppProxy.ps1 +++ b/src/Modules/SPSTrust.Common/Public/Remove-SPSPublishedServiceAppProxy.ps1 @@ -1,4 +1,4 @@ -function Remove-SPSPublishedServiceAppProxy { +function Remove-SPSPublishedServiceAppProxy { [CmdletBinding()] param ( diff --git a/src/Modules/SPSTrust.Common/Public/Set-SPSPublishedServiceAppPermission.ps1 b/src/Modules/SPSTrust.Common/Public/Set-SPSPublishedServiceAppPermission.ps1 index 0c5dc38..a08652d 100644 --- a/src/Modules/SPSTrust.Common/Public/Set-SPSPublishedServiceAppPermission.ps1 +++ b/src/Modules/SPSTrust.Common/Public/Set-SPSPublishedServiceAppPermission.ps1 @@ -1,4 +1,4 @@ -function Set-SPSPublishedServiceAppPermission { +function Set-SPSPublishedServiceAppPermission { [CmdletBinding()] param ( diff --git a/src/Modules/SPSTrust.Common/Public/Set-SPSTopologyServiceAppPermission.ps1 b/src/Modules/SPSTrust.Common/Public/Set-SPSTopologyServiceAppPermission.ps1 index 387eb0c..48c2bb0 100644 --- a/src/Modules/SPSTrust.Common/Public/Set-SPSTopologyServiceAppPermission.ps1 +++ b/src/Modules/SPSTrust.Common/Public/Set-SPSTopologyServiceAppPermission.ps1 @@ -1,4 +1,4 @@ -function Set-SPSTopologyServiceAppPermission { +function Set-SPSTopologyServiceAppPermission { [CmdletBinding()] param ( diff --git a/src/Modules/SPSTrust.Common/Public/Set-SPSTrustedRootAuthority.ps1 b/src/Modules/SPSTrust.Common/Public/Set-SPSTrustedRootAuthority.ps1 index 16cc309..7d0b516 100644 --- a/src/Modules/SPSTrust.Common/Public/Set-SPSTrustedRootAuthority.ps1 +++ b/src/Modules/SPSTrust.Common/Public/Set-SPSTrustedRootAuthority.ps1 @@ -1,4 +1,4 @@ -function Set-SPSTrustedRootAuthority { +function Set-SPSTrustedRootAuthority { [CmdletBinding()] param ( diff --git a/src/Modules/SPSTrust.Common/Public/Set-SPSTrustedServiceTokenIssuer.ps1 b/src/Modules/SPSTrust.Common/Public/Set-SPSTrustedServiceTokenIssuer.ps1 index 9a9d042..24956b5 100644 --- a/src/Modules/SPSTrust.Common/Public/Set-SPSTrustedServiceTokenIssuer.ps1 +++ b/src/Modules/SPSTrust.Common/Public/Set-SPSTrustedServiceTokenIssuer.ps1 @@ -1,4 +1,4 @@ -function Set-SPSTrustedServiceTokenIssuer { +function Set-SPSTrustedServiceTokenIssuer { [CmdletBinding()] param ( diff --git a/src/Modules/SPSTrust.Common/SPSTrust.Common.psd1 b/src/Modules/SPSTrust.Common/SPSTrust.Common.psd1 index 4051beb..4864b9e 100644 --- a/src/Modules/SPSTrust.Common/SPSTrust.Common.psd1 +++ b/src/Modules/SPSTrust.Common/SPSTrust.Common.psd1 @@ -1,4 +1,4 @@ -@{ +@{ RootModule = 'SPSTrust.Common.psm1' ModuleVersion = '3.0.0' GUID = 'e1cce4f2-12de-4923-8e67-f37a081944aa' diff --git a/src/Modules/SPSTrust.Common/SPSTrust.Common.psm1 b/src/Modules/SPSTrust.Common/SPSTrust.Common.psm1 index d53182b..4a5c8ab 100644 --- a/src/Modules/SPSTrust.Common/SPSTrust.Common.psm1 +++ b/src/Modules/SPSTrust.Common/SPSTrust.Common.psm1 @@ -1,4 +1,4 @@ -# ===================================================================================== +# ===================================================================================== # SPSTrust.Common - module loader # # Dot-sources every *.ps1 in Private/ and Public/, then exports only the public diff --git a/src/SPSTrust.ps1 b/src/SPSTrust.ps1 index 91ba89f..86ad7dc 100644 --- a/src/SPSTrust.ps1 +++ b/src/SPSTrust.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS SPSTrust is a PowerShell script tool to configure trusted farms in your SharePoint environment. diff --git a/tests/Modules/SPSTrust.Common.Tests.ps1 b/tests/Modules/SPSTrust.Common.Tests.ps1 index 584b3ab..678003a 100644 --- a/tests/Modules/SPSTrust.Common.Tests.ps1 +++ b/tests/Modules/SPSTrust.Common.Tests.ps1 @@ -1,4 +1,4 @@ -# Pester tests for the SPSTrust.Common module. +# Pester tests for the SPSTrust.Common module. # Resolve repo root - works on both local and CI/CD. BeforeAll { diff --git a/tests/Modules/SPSTrust.Report.Tests.ps1 b/tests/Modules/SPSTrust.Report.Tests.ps1 index c164ee1..8968a1c 100644 --- a/tests/Modules/SPSTrust.Report.Tests.ps1 +++ b/tests/Modules/SPSTrust.Report.Tests.ps1 @@ -1,4 +1,4 @@ -# Pester tests for the SPSTrust.Common reporting/audit functions (2.1.0): +# Pester tests for the SPSTrust.Common reporting/audit functions (2.1.0): # Get-SPSTrustStatus, Export-SPSTrustReport, Backup-SPSJsonFile and the private # HTML report helpers. diff --git a/tests/SPSTrust.Tests.ps1 b/tests/SPSTrust.Tests.ps1 index 74cbf55..64cfe16 100644 --- a/tests/SPSTrust.Tests.ps1 +++ b/tests/SPSTrust.Tests.ps1 @@ -1,4 +1,4 @@ -# Pester tests for SPSTrust.ps1 +# Pester tests for SPSTrust.ps1 # Resolve repo root - works on CI/CD (GitHub Actions) and local runs BeforeAll {