Did you upgrade to Citrix Xen7x?
My Powershells are failling too but when i tried to run the commands manually I got the following:
PS C:\Program Files\SplunkUniversalForwarder\etc\apps\TA-XA6x-Server\bin\powershell> .\GetXAServer6x.ps1
Get-PSSnapin : No Windows PowerShell snap-ins matching the pattern 'Citrix.XenApp.Commands' were found. Check the pattern and then try the
command again.
At C:\Program Files\SplunkUniversalForwarder\etc\apps\TA-XA6x-Server\bin\powershell\GetXAServer6x.ps1:5 char:4
+ Get-PSSnapin -Registered "Citrix.XenApp.Commands" | Add-PSSnapin
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (Citrix.XenApp.Commands:String) [Get-PSSnapin], PSArgumentException
+ FullyQualifiedErrorId : NoPSSnapInsFound,Microsoft.PowerShell.Commands.GetPSSnapinCommand
Get-XAFarm : The term 'Get-XAFarm' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling
of the name, or if a path was included, verify that the path is correct and try again.
At C:\Program Files\SplunkUniversalForwarder\etc\apps\TA-XA6x-Server\bin\powershell\GetXAServer6x.ps1:8 char:13
+ $FarmName = Get-XAFarm | select -ExpandProperty FarmName
+ ~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-XAFarm:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Get-XAServer : The term 'Get-XAServer' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Program Files\SplunkUniversalForwarder\etc\apps\TA-XA6x-Server\bin\powershell\GetXAServer6x.ps1:11 char:1
+ Get-XAServer -Full -ServerName $env:COMPUTERNAME | foreach-object {
+ ~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-XAServer:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Program Files\SplunkUniversalForwarder\etc\apps\TA-XA6x-Server\bin\powershell>
not sure if these commands are still vaild in Xen7.x
... View more