Skip to content

Test-XDSessionInfo GetZone #63

@Varjotiger

Description

@Varjotiger

Good afternoon all,

I was wondering if anyone would be able to assist with the issue below. I have tested loading the Snapin manually and this issue does not occur.

Error:
The following PS Snapin does not appear to be loading as I am receiving a GetZone error.
$ctxsnap = Add-PSSnapin Citrix.Configuration.Admin.* -ErrorAction SilentlyContinue
$ctxsnap = Get-PSSnapin Citrix.Configuration.Admin.* -ErrorAction SilentlyContinue

Current Behavior

Get-ConfigZone : A database operation failed and could not be recovered : Reason Unrecognised operation name: GetZone
At C:\Program Files\WindowsPowerShell\Modules\EUCMonitoring\2.0.1\Private\Test-XdSessionInfo.ps1:55 char:23

  •     $ZoneNames = (Get-ConfigZone -AdminAddress $Broker).Name
    
  •                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [Get-ConfigZone], InvalidOperationException
    • FullyQualifiedErrorId : Citrix.XDPowerShell.Status.DatabaseError,Citrix.Configuration.Sdk.Commands.GetConfigZone
      Command

You cannot call a method on a null-valued expression.
At C:\Program Files\WindowsPowerShell\Modules\EUCMonitoring\2.0.1\Private\Test-Series.ps1:372 char:37

  • ... if ("Boolean" -ne $Values.GetType().Name) {
  •                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull

Your Environment

  • Module Version used:

Function Test-XdSessionInfo {
<#
.SYNOPSIS
Returns Stats of the XenDesktop Sessions
.DESCRIPTION
Returns Stats of the XenDesktop Sessions
.PARAMETER Broker
XenDesktop Broker to use for the checks
.NOTES
Current Version: 1.0
Creation Date: 29/03/2018
.CHANGE CONTROL
Name Version Date Change Detail
David Brett 1.0 29/03/2018 Function Creation
Adam Yarborough 1.1 07/06/2018 Update to new object model
Adam Yarborough 1.2 20/06/2018 Session Information
.EXAMPLE
None Required

  • Citrix Versions used: 7.6

Apologies if the format of this is not correct, I am new to github.

Many thanks,

Varjotiger

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions