Citrix Cloud (DaaS) Documentation Script V1.22

Version 1.22 2-Oct-2022

  • Added Computer policy
    • Profile Management\Advanced settings\Maximum number of VHDX disks for storing Outlook OST files
    • Profile Management\Citrix Virtual Apps Optimization settings\Enable Citrix Virtual Apps Optimization
    • Profile Management\Citrix Virtual Apps Optimization settings\Path to Citrix Virtual Apps optimization definitions:
    • Profile Management\File deduplication\Files to exclude from the shared store
    • Profile Management\File deduplication\Files to include from the shared store
  • Added User policy
    • ICA\Printing\Client Printers\Client printer names
    • ICA\Server Limits\Session connection timer – Multi-session
    • ICA\Server Limits\Session connection timer interval (minutes) – Multi-session
    • ICA\Server Limits\Session idle timer – Multi-session
    • ICA\Server Limits\Session idle timer interval (minutes) – Multi-session

You can always find the most current script by going to https://www.carlwebster.com/where-to-get-copies-of-the-documentation-scripts/

Thanks

Webster

10 Comments

  1. Jeremy Holt

    Carl, I have a solution for users who get the Import-Module : A drive with the name ‘XDHyp’ already exists error.

    If this happens, close your powershell window and open a new one. add-pssnapin *citrix* then set-xdcredentials……. then do a get-psdrive. if xdhyp shows up in the list run: remove-psdrive xdhyp then run the cc_inventory_v1.ps1

    it will work this time.

  2. Carl,
    I ran into the error for…
    # “Import-Module : A drive with the name ‘XDHyp’ already exists.”

    I was able to resolve this by opening a new elevated Powershell window, then running…

    # get-psdrive

    if XDHyp is in the list, then run…

    # remove-psdrive XDHyp

    Then Set-XDCredentials, and then run the script again.

    This resolved the issue for me.

  3. Kenneth Laury

    We are using DAAS and I like the section part of your script. I want to run the script from a batch file , but because I’m using about 4 parameters from the Section the commas is causing my entries from being validated. I get something like Groups, is not a valid entry. The other thought was to try to hardcode parameters into the script, but limited knowledge of PowerShell is not helping. If you could give me any kind of help, I would appreciate it.

    • Carl Webster

      I have asked my two main PowerShell mentors if they have any advice.

      Webster

  4. Matt Moffat

    I am using citrix daas and there are quite a few of the set-brokerserviceconfigurationdata options that I am wanting to configure. However, many of them return an error saying:
    “Configuration data setting name is unknown.”
    FullyQualifiedErrorId : Citrix.XDPowerShell.Broker.UnknownConfigurationDataSetting,Citrix.Broker.Admin.SDK.SetBrookerServiceConfigurationDataCommand

    2 examples of where I am seeing this is with
    Set-BrokerServiceConfigurationData “Hosting.MaxRegistrationDelayMin” -settingvalue 45
    Set-BrokerServiceConfigurationData “Hosting.MaxTimeBeforeStuckOnBootFaultSecs” -settingvalue 900

    Any thoughts would be appreciated. Sincerest apologies if this is not the right setting for this question. Either way though, I am massively grateful for your documentation and information.

    • Carl Webster

      It looks like Citrix changed it from Hosting. to HostingManagement.

      Try that.

  5. Lee Prior

    Hey Carl,

    thanks for this, but it generates an error when running against current Citrix Cloud
    “Unable to import the Citrix.Host.Commands module”
    at script ps1: 36722 char:1

    I have the latest SDK and Policy Snap-In installed

    • Lee Prior

      Also generates an error:

      Import-Module : A drive with the name ‘XDHyp’ already exists

      • Carl Webster

        # KNOWN ISSUE:
        # A few users report they get the following errors even in a new elevated PowerShell session:
        # “Import-Module : A drive with the name ‘XDHyp’ already exists.”
        # “ProcessScriptSetup : Unable to import the Citrix.Host.Commands module. Script cannot continue.”
        # Even if the script runs for these users, the Hosting section contains no usable data.
        # Hosting
        # Unable to retrieve Hosting Units
        #
        # Unable to retrieve Hosting Connections
        #
        # My-Hosting-ConnectioName
        # Connection Name My-Hosting-ConnectioName
        # Type Hypervisor Type could not be determined:
        # Address
        # State Disabled
        # Username
        # Scopes
        # Maintenance Mode Off
        # Zone
        # Storage resource name
        #
        # Advanced
        # Connection Name My-Hosting-ConnectioName
        # Unable to retrieve Hosting Connections
        # I have been unable to determine the root cause, a resolution, or a workaround for this issue

    • Carl Webster

      # KNOWN ISSUE:
      # A few users report they get the following errors even in a new elevated PowerShell session:
      # “Import-Module : A drive with the name ‘XDHyp’ already exists.”
      # “ProcessScriptSetup : Unable to import the Citrix.Host.Commands module. Script cannot continue.”
      # Even if the script runs for these users, the Hosting section contains no usable data.
      # Hosting
      # Unable to retrieve Hosting Units
      #
      # Unable to retrieve Hosting Connections
      #
      # My-Hosting-ConnectioName
      # Connection Name My-Hosting-ConnectioName
      # Type Hypervisor Type could not be determined:
      # Address
      # State Disabled
      # Username
      # Scopes
      # Maintenance Mode Off
      # Zone
      # Storage resource name
      #
      # Advanced
      # Connection Name My-Hosting-ConnectioName
      # Unable to retrieve Hosting Connections
      # I have been unable to determine the root cause, a resolution, or a workaround for this issue

Comments are closed