-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1975 from microsoft/main
Release 2-7-24
- Loading branch information
Showing
12 changed files
with
122 additions
and
67 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
36 changes: 0 additions & 36 deletions
36
...DataCollection/ExchangeInformation/Get-ExchangeApplicationConfigurationFileValidation.ps1
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Copyright (c) Microsoft Corporation. | ||
# Licensed under the MIT License. | ||
|
||
. $PSScriptRoot\Invoke-ScriptBlockHandler.ps1 | ||
function Get-FileContentInformation { | ||
[CmdletBinding()] | ||
param( | ||
[Parameter(Mandatory = $true)] | ||
[string]$ComputerName, | ||
|
||
[Parameter(Mandatory = $true, ValueFromPipeline = $true)] | ||
[string[]]$FileLocation | ||
) | ||
begin { | ||
Write-Verbose "Calling: $($MyInvocation.MyCommand)" | ||
$allFiles = New-Object System.Collections.Generic.List[string] | ||
} | ||
process { | ||
foreach ($file in $FileLocation) { | ||
$allFiles.Add($file) | ||
} | ||
} | ||
end { | ||
$params = @{ | ||
ComputerName = $ComputerName | ||
ScriptBlockDescription = "Getting File Content Information" | ||
ArgumentList = @(, $allFiles) | ||
ScriptBlock = { | ||
param($FileLocations) | ||
$results = @{} | ||
foreach ($fileLocation in $FileLocations) { | ||
$obj = [PSCustomObject]@{ | ||
Present = ((Test-Path $fileLocation)) | ||
FileName = ([IO.Path]::GetFileName($fileLocation)) | ||
FilePath = $fileLocation | ||
Content = (Get-Content $fileLocation -Raw) | ||
} | ||
|
||
$results.Add($fileLocation, $obj) | ||
} | ||
return $results | ||
} | ||
} | ||
return (Invoke-ScriptBlockHandler @params) | ||
} | ||
} |
This file contains 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