I'm trying to combine the (Citrix) Get-XAServer cmdlet with a Windows registry Get-ItemProperty cmdlet.
1. I can easily check if Citrix Logons are enabled or disabled for all Citrix Servers in a Farm with the standard Get-XAServer cmdlet like this:
Get-XAServer | Select-Object -property servername, logonsenabled | Where-Object -filter {$_.logonsenabled -LIKE 'false' }
2. In a different context I can also easily check if the Windows Remote Desktop function is enabled or not on a single server like this:
Get-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server'-name "fDenyTSConnections"
(If Disabled one would see fDenyTSConnections = 1)
Question:
Can I combine the Get-XAServer cmdlet with the registry checking functionality of #2? I'd like to comb through the Citrix Farm checking for any XenApp 6.5 servers that may have...