Private/Config/Get-SecretRotationConfigPath.ps1
|
function Get-SecretRotationConfigPath { <# .SYNOPSIS Resolves the full path to the live Posh-SecretRotation configuration file. .DESCRIPTION Always $home\Posh-SecretRotation\Posh-SecretRotation-Config.json - the user-profile location, not the module root, so the live config (real AD forest names, Entra tenant IDs, custom backend script paths) survives an AllUsers-scope module install/upgrade. .OUTPUTS String. .EXAMPLE Get-SecretRotationConfigPath Returns e.g. 'C:\Users\alice\Posh-SecretRotation\Posh-SecretRotation-Config.json'. #> [CmdletBinding()] [OutputType([string])] param() $configDirectory = Join-Path -Path $home -ChildPath 'Posh-SecretRotation' Join-Path -Path $configDirectory -ChildPath 'Posh-SecretRotation-Config.json' } |