ps/Modules/Alkami.PowerShell.Common/Public/Read-MachineConfig.ps1
2023-05-30 22:51:22 -07:00

21 lines
449 B
PowerShell

function Read-MachineConfig {
<#
.SYNOPSIS
Returns the machine.config content as as an XML document
#>
[CmdletBinding()]
Param(
[bool]$use64Bit = $true
)
$logLead = (Get-LogLeadName);
$machineConfigPath = Get-DotNetConfigPath $use64Bit
Write-Verbose ("$logLead : Reading machine.config from {0}" -f $machineConfigPath)
[XML]$machineConfig = Get-Content $machineConfigPath
return $machineConfig
}