PowerShell: List profiles in USE

# List profiles in USE

$PROFILE | get-member -MemberType noteproperty| 
    %{
        $ProfileName = $_.Name; 
        $ProfilePath = ($_.Definition).Split('=')[1]
        if (test-path $ProfilePath) {
            write-host "$ProfileName `t$ProfilePath" 
        }
    }

Comments are closed.

Post Navigation