21 lines
449 B
PowerShell
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
|
|
}
|
|
|