Документация разработчика

March 5, 2024

Configuring Citrix Workspace using PowerShell module

Citrix Virtual Apps and Desktops was formerly XenApp and XenDesktop.

The new product and component names stem from the expanding Citrix portfolio and cloud strategy.

Citrix Virtual Apps and Desktops provide an SDK based on a number of Microsoft
Windows PowerShell cmdlets that allows you to perform the same tasks as you would
with the Citrix Studio console, together with tasks you cannot do with Studio alone.

Provides various Microsoft Windows PowerShell version 3.0 cmdlets to create and upgrade your WEM databases and to perform tasks on the infrastructure service.

Manages resources and simplifies image management across platforms on your virtual apps and desktops.

Citrix Virtual Apps and Desktops provide an SDK based on a number of Microsoft Windows PowerShell version 3.0 cmdlets that allows you to perform the same tasks as you would with the Citrix Studio console, together with tasks you cannot do with Studio alone.

Builds, validates, and distributes native Android and iOS apps. Secure and enhance the mobile device experience.

Configures Workspace service URLs and Workspace app settings through a centrally managed service.

Provides a simplified API suitable for report creation and consumption.

Manages and optimizes the resources of WEM-managed Windows devices.

Provides various Microsoft Windows PowerShell cmdlets in a PowerShell snapin. These cmdlets allow you to perform advanced configuration functions.

Enables access to the Linux virtual apps and desktops anywhere from any device where Citrix Workspace app is installed.

Objective

1 On DDC server, navigate to directory “C:Program FilesCitrixTelemetry ServiceTelemetryModule”,  Ensure that “Citrix.GroupPolicy.Commands.psm1” module exists

3 Run below powershell cmdlets

#Set parameter #Notice that these parameters can get from running powershell command “Get-CtxGroupPolicyConfiguration”obj.AutoConnectDrives.State = “Disabled”                                                       obj.ClientPrinterAutoCreation.State = “Enabled”obj.ClientPrinterAutoCreation.Value = “DoNotAutoCreate”obj.ClipboardRedirection.State = “Disabled”obj.ClientComPortRedirection.State = “Disabled”obj.ClientDriveRedirection.State = “Disabled”obj.ClientFixedDrives.State = “Disabled”obj.ClientLptPortRedirection.State = “Disabled”obj.ClientNetworkDrives.State = “Disabled”obj.ClientOpticalDrives.State = “Disabled”obj.ClientPrinterRedirection.State = “Disabled”obj.ClientRemoveableDrives.State = “Disabled”obj.TwainRedirection.State = “Disabled”obj.UsbDeviceRedirection.State = “Disabled”obj.DesktopWallpaper.State = “Disabled”obj.DirectConnectionsToPrintServers.State = “Disabled”obj.AeroRedirection.State = “Disabled”Set-CtxGroupPolicyConfiguration $objAdd-CtxGroupPolicyFilter -PolicyName $PolicyName -Type $PolicyType -FilterName $PolicyAssignment -FilterType $PolicyType -FilterValue “$ClientDomain$PolicyAssignment”Set-CtxGroupPolicy -PolicyName $PolicyName -Type $PolicyType -Enabled $true

:/>  Как удалить Malwarebytes с компьютера полностью |

Additional Resources

This software / sample code is provided to you “AS IS” with no representations, warranties, or conditions of any kind. You may use, modify, and distribute it at your own risk. CITRIX DISCLAIMS ALL WARRANTIES WHATSOEVER, EXPRESS, IMPLIED, WRITTEN, ORAL OR STATUTORY, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NONINFRINGEMENT. Without limiting the generality of the foregoing, you acknowledge and agree that (a) the software / sample code might exhibit errors, design flaws or other problems, possibly resulting in loss of data or damage to property; (b) it might not be possible to make the software / sample code fully functional; and (c) Citrix may, without notice or liability to you, cease to make available the current version and/or any future versions of the software / sample code. In no event must the software / code be used to support of ultra-hazardous activities, including but not limited to life support or blasting activities. NEITHER CITRIX NOR ITS AFFILIATES OR AGENTS WILL BE LIABLE, UNDER BREACH OF CONTRACT OR ANY OTHER THEORY OF LIABILITY, FOR ANY DAMAGES WHATSOEVER ARISING FROM USE OF THE SOFTWARE / SAMPLE CODE, INCLUDING WITHOUT LIMITATION DIRECT, SPECIAL, INCIDENTAL, PUNITIVE, CONSEQUENTIAL OR OTHER DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. You agree to indemnify and defend Citrix against any claims arising from your use, modification, or distribution of the code.

Connect with us

Join this online community of technology professionals dedicated to helping members and their businesses through education, knowledge sharing, networking and influence.

System requirements

Windows PowerShell version 5 is the minimum required version.

Steps before doing any configuration

This product supports PowerShell versions 3 through 7.3.

Currently, the support for Powershell 7.4 version is in preview.

How this SDK differs from the SDK for customer-managed deployments

The solution is the Citrix DaaS Remote PowerShell SDK. When running in the resource location, the Remote PowerShell SDK accesses the control plane as if it is local. This provides the same functionality as a single Citrix Virtual Apps and Desktops site. There is only the lowest non-visible communication layer, enhanced to work either in a single local site or in the cloud environment. The cmdlets are the same, and most existing scripts remain unchanged.

:/>  Бесплатные программы для Виндовс 10 (Windows 10)

Prerequisites

Requirements and considerations:

Do not install the Remote PowerShell SDK on a Citrix Cloud Connector machine. It can be installed on any domain-joined machine within the same resource location.

Citrix does not support running this SDK’s cmdlets on Cloud Connectors. The SDK’s operation does not involve the Cloud Connectors.

If you also have a Citrix Virtual Apps and Desktops deployment (in addition to the Citrix DaaS deployment), do not install the Remote PowerShell SDK on an on-premises Delivery Controller machine.

To install the Remote PowerShell SDK:

Installation logs are created in %TEMP%CitrixLogsCitrixPoshSdk. Logs can help resolve installation issues.

Run the SDK on a domain-joined computer within that resource location:

Use the Remote PowerShell SDK with a proxy

  • Windows 11
  • Windows 10
  • Windows Server 2022
  • Windows Server 2019
  • Windows Server 2016

For details about cmdlets, see Citrix Virtual Apps and Desktops SDK.

After authentication, remote access remains valid in the current PowerShell session for 24 hours. After that time, you must enter your credentials.

The Remote PowerShell SDK must be run on a computer within the resource location.

Long Description

In addition to using the Monitor functions to display historical data, you can query data using the Monitor Service’s API. Use the API to:

For details, see Monitor Service OData API. To access the Monitor Service API, see Access Monitor Service data using the OData v4 endpoint in Citrix Cloud.

Steps to configure DisallowICADownload

There are differences between the SDK and the Studio console in terms of
policy rules. Entitlement and assignment policy rules are independent
entities in the SDK; in the console, these entities are not visible as
they are seamlessly merged with the Delivery Group. Also, access policy
rules are less restrictive in the SDK.

:/>  Thumbdata – что это за файл и можно ли его удалить

Citrix DaaS APIs

The Citrix DaaS APIs are available at https://developer.cloud.com/citrixworkspace/citrix-daas.

Documentation notes

The SDK comprises of a number of PowerShell cmdlets packaged both as modules and snap-ins. These are installed
automatically by the installation wizard when you install the Controller or Studio components.

To access and run the cmdlets:

Citrix DaaS discovery module for App-V packages and servers

The Citrix DaaS management console in Citrix Cloud cannot view files in a resource location. Also, it cannot directly discover App-V packages or Microsoft App-V servers in your infrastructure. The discovery module provides functions that discover App-V package information in your on-premises infrastructure and uploads the package information to your Citrix DaaS. Package information includes App-V packages, Microsoft App-V servers, and the apps that the packages contain.

Prerequisites for using the discovery module:

Add App-V packages to the Application Library in Citrix Cloud

Import the Citrix DaaS App-V package discovery module.

Loop through the App-V Package store directory and upload each package.

Discover and upload packages registered with a Microsoft App-V management server.

Import-AppVPackagesFromManagementServerToCloud -ManagementSrvFQDN AppVManagementServer.domain.net

Read the PowerShell help documentation included in the module.

Command Prefix

All commands in this module have ‘STF’ in their name to denote they are part of the StoreFront product.