it gave me the same result .it is showing external psc though it is internal.
$global:DefaultVIServer |
Select Name,
@{N='PSC';E={
$pscUri = Get-AdvancedSetting -Entity $_ -Name config.vpxd.sso.admin.uri | select -ExpandProperty Value
if(([System.Uri]$_.ServiceUri.AbsoluteUri).Host -eq ([System.Uri]$pscUri).Host){'Embedded'}else{'External'}
}}
Can you also check if the command service-control exists and if yes, what it returns?
service-control gave me vpxd are we not supposed to get from powershell get-service ??