Helpers/Profile/Get-ProfileEnvironmentPath.ps1


function Get-ProfileEnvironmentPath
{
    [CmdletBinding()]
    param
    (
    )

    $RootPath = [System.Environment]::GetFolderPath('MyDocuments')
    $Computer = $env:COMPUTERNAME.ToUpper()
    $Username = $env:USERNAME.ToUpper()

    return '{0}\WindowsPowerShell\Environments\{1}\{2}' -f $RootPath, $Computer, $Username
}