Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Checking For RDP being disabled in a Citrix Farm

$
0
0

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...


Viewing all articles
Browse latest Browse all 15370

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>