ps/Modules/Cole.PowerShell.Developer/Public/Remove-AllInvalidComponentInstallerPath.ps1
2023-05-30 22:51:22 -07:00

18 lines
557 B
PowerShell

function Remove-AllInvalidComponentInstallerPath {
<#
.SYNOPSIS
Due to a legacy issue where a space was inadvertently missing in an installer path, some systems have a bad path present.
This function will remove that if found.
#>
[CmdletBinding()]
[OutputType([void])]
param (
)
$alkamiPDPath = (Join-Path -Path $env:ProgramData -ChildPath "Alkami")
$installerPath = (Join-Path -Path $alkamiPDPath -ChildPath "Installer-ChildPath")
if (Test-Path $installerPath) {
Remove-Item -Path $installerPath -Force
}
}