Group windows by application

Use Group Policy to remotely install software

This article describes how to use Group Policy to automatically distribute programs to client computers or users.

Original product version: В Windows Server 2012 R2
Original KB number: В 816102

Summary

You can use Group Policy to distribute computer programs by using the following methods:

You can assign a program distribution to users or computers. If you assign the program to a user, it’s installed when the user logs on to the computer. When the user first runs the program, the installation is completed. If you assign the program to a computer, it’s installed when the computer starts, and it’s available to all users who log on to the computer. When a user first runs the program, the installation is completed.

You can publish a program distribution to users. When the user logs on to the computer, the published program is displayed in the Add or Remove Programs dialog box, and it can be installed from there.

Windows Server 2003 Group Policy automated-program installation requires client computers that are running Microsoft Windows 2000 or a later version.

Create a distribution point

To publish or assign a computer program, create a distribution point on the publishing server by following these steps:

  1. Log on to the server as an administrator.
  2. Create a shared network folder where you’ll put the Windows Installer package (.msi file) that you want to distribute.
  3. Set permissions on the share to allow access to the distribution package.
  4. Copy or install the package to the distribution point. For example, to distribute a .msi file, run the administrative installation ( setup.exe /a ) to copy the files to the distribution point.

Create a Group Policy Object

To create a Group Policy Object (GPO) to use to distribute the software package, follow these steps:

  1. Start the Active Directory Users and Computers snap-in by clicking Start, pointing to Administrative Tools, and then clicking Active Directory Users and Computers.
  2. In the console tree, right-click your domain, and then click Properties.
  3. Click the Group Policy tab, and then click New.
  4. Type a name for this new policy, and then press Enter.
  5. Click Properties, and then click the Security tab.
  6. Clear the Apply Group Policy check box for the security groups that you don’t want this policy to apply to.
  7. Select the Apply Group Policy check box for the groups that you want this policy to apply to.
  8. When you’re finished, click OK.

Assign a package

To assign a program to computers that are running Windows Server 2003, Windows 2000, or Windows XP Professional, or to users who are logging on to one of these workstations, follow these steps:

Start the Active Directory Users and Computers snap-in by clicking Start, pointing to Administrative Tools, and then clicking Active Directory Users and Computers.

In the console tree, right-click your domain, and then click Properties.

Click the Group Policy tab, select the policy that you want, and then click Edit.

Under Computer Configuration, expand Software Settings.

Right-click Software installation, point to New, and then click Package.

In the Open dialog box, type the full Universal Naming Convention (UNC) path of the shared installer package that you want. For example, \\ \ \ .msi .

Don’t use the Browse button to access the location. Make sure that you use the UNC path of the shared installer package.

Click Open.

Click Assigned, and then click OK. The package is listed in the right-pane of the Group Policy window.

Close the Group Policy snap-in, click OK, and then close the Active Directory Users and Computers snap-in.

When the client computer starts, the managed software package is automatically installed.

Publish a package

To publish a package to computer users and make it available for installation from the Add or Remove Programs list in Control Panel, follow these steps:

Start the Active Directory Users and Computers snap-in by clicking Start, pointing to Administrative Tools, and then clicking Active Directory Users and Computers.

In the console tree, right-click your domain, and then click Properties.

Click the Group Policy tab, click the policy that you want, and then click Edit.

Under User Configuration, expand Software Settings.

Right-click Software installation, point to New, and then click Package.

In the Open dialog box, type the full UNC path of the shared installer package that you want. For example, \\file server\share\file name.msi .

Читайте также:  Запуск windows с командной строки с жесткого диска

Don’t use the Browse button to access the location. Make sure that you use the UNC path of the shared installer package.

Click Open.

Click Publish, and then click OK.

The package is listed in the right-pane of the Group Policy window.

Close the Group Policy snap-in, click OK, and then close the Active Directory Users and Computers snap-in.

Test the package.

Because there are several versions of Windows, the following steps may be different on your computer. If they are, see your product documentation to complete these steps.

  1. Log on to a workstation that is running Windows 2000 Professional or Windows XP Professional by using an account that you published the package to.
  2. In Windows XP, click Start, and then click Control Panel.
  3. Double-click Add or Remove Programs, and then click Add New Programs.
  4. In the Add programs from your network list, click the program that you published, and then click Add. The program is installed.
  5. Click OK, and then click Close.

Redeploy a package

In some cases, you may want to redeploy a software package (for example, if you upgrade or change the package). To redeploy a package, follow these steps:

Start the Active Directory Users and Computers snap-in by clicking Start, pointing to Administrative Tools, and then clicking Active Directory Users and Computers.

In the console tree, right-click your domain, and then click Properties.

Click the Group Policy tab, click the Group Policy Object that you used to deploy the package, and then click Edit.

Expand the Software Settings container that contains the software installation item that you used to deploy the package.

Click the software installation container that contains the package.

In the right-pane of the Group Policy window, right-click the program, point to All Tasks, and then click Redeploy application. You will receive the following message:

Redeploying this application will reinstall the application everywhere it is already installed. Do you want to continue?

Click Yes.

Quit the Group Policy snap-in, click OK, and then close the Active Directory Users and Computers snap-in.

Remove a package

To remove a published or assigned package, follow these steps:

  1. Start the Active Directory Users and Computers snap-in by clicking Start, pointing to Administrative Tools, and then clicking Active Directory Users and Computers.
  2. In the console tree, right-click your domain, and then click Properties.
  3. Click the Group Policy tab, click the Group Policy Object that you used to deploy the package, and then click Edit.
  4. Expand the Software Settings container that contains the software installation item that you used to deploy the package.
  5. Click the software installation container that contains the package.
  6. In the right-pane of the Group Policy window, right-click the program, point to All Tasks, and then click Remove.
  7. Perform one of the following actions:
    • Click Immediately uninstall the software from users and computers, and then click OK.
    • Click Allow users to continue to use the software but prevent new installations, and then click OK.
  8. Close the Group Policy snap-in, click OK, and then closet the Active Directory Users and Computers snap-in.

Troubleshoot

Published packages are displayed on a client computer after you use a Group Policy to remove them.

This situation can occur when a user has installed the program but hasn’t used it. When the user first starts the published program, the installation is finished. Group Policy then removes the program.

О файле группы подключений About the connection group file

Применимо к: Windows 10 версии 1607 Applies to: Windows 10, version 1607

Общие сведения о файле группы подключений Connection group file overview

Что такое группа подключений? What is a connection group?

Группа подключений — это функция App-V, которая может сгруппить пакеты для создания виртуальной среды, в которой приложения в этой группе пакетов могут взаимодействовать друг с другом. A connection group is an App-V feature that can group packages together to create a virtual environment where applications within that package group can interact with each other.

Например, предположим, что вы хотите использовать подключаемый модуль с Microsoft Office. For example, let’s say you want to use plug-ins with Microsoft Office. Вы можете создать один пакет, содержащий подключаемый модуль, а другой пакет, содержащий Office, а затем добавить оба пакета в одну группу подключений, чтобы позволить Office использовать эти подключаемый модуль. You can create one package that contains the plug-ins and another package that contains Office, and then add both packages to the same connection group to enable Office to use those plug-ins.

Как работает файл группы подключений How a connection group file works

При применении файла группы подключений App-V все указанные в нем пакеты будут объединены во время работы в одну виртуальную среду. When you apply an App-V connection group file, all packages specified in the file will be combined at runtime into a single virtual environment. Используйте файл группы подключений Microsoft Application Virtualization (App-V) для настройки существующих групп подключений App-V. Use the Microsoft Application Virtualization (App-V) connection group file to configure existing App-V connection groups.

Пример пути к файлу пакета: %APPDATA%\Microsoft\AppV\Client\Catalog\PackageGroups<6ccc7575-162e-4152-9407-ed411da138f4><4d1e16e1-8ef8-41ed-92d5-8910a8527f96>. An example file path for a package file would be %APPDATA%\Microsoft\AppV\Client\Catalog\PackageGroups<6ccc7575-162e-4152-9407-ed411da138f4><4d1e16e1-8ef8-41ed-92d5-8910a8527f96>.

Структура XML-файла группы подключений Structure of the connection group XML file

В этом разделе вы сможете подробнее рассказать о компонентах XML-файла группы подключений. This section will tell you more about the components of the connection group XML file.

Читайте также:  Microsoft windows update log

Параметры, определяя группу подключений Parameters that define the connection group

В следующей таблице описываются параметры В XML-файле, которые определяют самую группу подключений, а не пакеты. The following table describes the parameters in the XML file that define the connection group itself, not the packages.

Поле Field Описание Description
Имя схемы Schema name Имя схемы. Name of the schema. Если вы хотите использовать функции «необязательные пакеты» и «использовать любую версию», описанные в этой таблице, необходимо указать в XML-файле следующую схему: If you want to use the “optional packages” and “use any version” features described in this table, you must specify the following schema in the XML file: xmlns=»https://schemas.microsoft.com/appv/2014/virtualapplicationconnectiongroup»
AppConnectionGroupId AppConnectionGroupId Уникальный идентификатор GUID для этой группы подключений. Unique GUID identifier for this connection group. Состояние группы подключений связано с этим идентификатором. The connection group state is associated with this identifier. Укажите этот идентификатор только при создании группы подключений. Specify this identifier only when you create the connection group. Вы можете создать новый GUID, введите [Guid]::NewGuid(). You can create a new GUID by entering [Guid]::NewGuid().
VersionId VersionId Идентификатор GUID версии для этой версии группы подключений. Version GUID identifier for this version of the connection group. При обновлении группы подключений (например, путем добавления или обновления нового пакета) необходимо обновить GUID версии, чтобы отразить новую версию. When you update a connection group (for example, by adding or updating a new package), you must update the version GUID to reflect the new version.
DisplayName DisplayName Отображает имя группы подключений. Display name of the connection group.
Priority Priority Необязательное поле приоритета для группы подключений. Optional priority field for the connection group. Значение 0 указывает на наивысший приоритет. A value of 0 indicates the highest priority. Если приоритет необходим, но не настроен, пакет не будет работать, так как он не сможет определить правильную группу подключений для использования. If a priority is required but has not been configured, the package will fail because it can’t determine the correct connection group to use.

Параметры, определяя пакеты в группе подключений Parameters that define the packages in the connection group

В разделе ** ** XML-файла группы подключений перечисляются пакеты членов в группе подключений, укажите уникальный идентификатор пакета и идентификатор версии каждого пакета, как описано в следующей таблице. In the

section of the connection group XML file, you list the member packages in the connection group by specifying each package’s unique package identifier and version identifier, as described in the following table. Первый пакет в списке имеет наивысший приоритет. The first package in the list has the highest precedence.

Поле Field Описание Description
PackageId PackageId Уникальный идентификатор GUID для этого пакета. Unique GUID identifier for this package. Этот GUID не меняется при публикации новых версий пакета. This GUID doesn’t change when newer versions of the package are published.
VersionId VersionId Уникальный идентификатор GUID для версии пакета. Unique GUID identifier for the version of the package. Если указать «*» для версии пакета, GUID последней доступной версии пакета динамически вставляется. If you specify “*” for the package version, the GUID of the latest available package version is dynamically inserted.
IsOptional IsOptional Параметр, позволяющий сделать пакет необязательным в группе подключений. Parameter that enables you to make a package optional within the connection group. Допустимые записи: Valid entries are: — «true» — пакет является необязательным в группе подключений — “true”—package is optional in the connection group — «false» — требуется пакет в группе подключений — “false”—package is required in the connection group

Пример XML-файла группы подключений App-V App-V example connection group XML file

В следующем примере XML-файла группы подключений показаны примеры полей, перечисленных в предыдущих таблицах. The following example connection group XML file shows examples of the fields listed in the previous tables.

Настройка приоритета пакетов в группе подключений Configuring the priority of packages in a connection group

Приоритет пакета настраивается с использованием порядка списка пакетов. Package precedence is configured using the package list order. Первый пакет в документе имеет наивысший приоритет. The first package in the document has the highest precedence. Последующие пакеты в списке имеют убывающий приоритет. Subsequent packages in the list have descending priority.

Приоритет пакета — это решение для неуявных конфликтов ресурсов во время инициализации виртуальной среды. Package precedence is the resolution for otherwise inevitable resource collisions during virtual environment initialization. Например, если два пакета, открывающегося в одной виртуальной среде, определяют одно и то же значение DWORD реестра, пакет с наивысшим приоритетом определяет задавание значения. For example, if two packages that are opening in the same virtual environment define the same registry DWORD value, the package with the highest precedence determines the value that is set.

Файл группы подключений можно использовать для настройки каждой группы подключений с помощью следующих методов: You can use the connection group file to configure each connection group by using the following methods:

Укажите приоритеты времени работы для групп подключений. Specify runtime priorities for connection groups. Чтобы изменить приоритет с помощью консоли управления App-V, выберите группу подключений и выберите «Изменить». To edit priority by using the App-V Management Console, select the connection group and then select Edit.

Пакет требует приоритета, только если он связан с более чем одной группой подключений. A package only requires priority if it’s associated with more than one connection group.

Укажите приоритет пакета в группе подключений. Specify package precedence within the connection group.

Поле приоритета необходимо, когда запущенное виртуальное приложение инициирует запрос на управление приложением, например Microsoft Windows Explorer. The priority field is required when a running virtual application initiates from a native application request, such as Microsoft Windows Explorer. Клиент App-V использует приоритет для определения виртуальной среды группы подключений, в которой должно работать приложение. The App-V client uses the priority to determine which connection group virtual environment the application should run in. Это происходит, если виртуальное приложение является частью нескольких групп подключений. This situation occurs if a virtual application is part of multiple connection groups.

Если виртуальное приложение открывается с помощью другого виртуального приложения, клиент будет использовать виртуальную среду исходного виртуального приложения. If a virtual application is opened using another virtual application, the client will use the original virtual application’s virtual environment. Поле приоритета в этом случае не используется. The priority field is not used in this case.

Ниже приводится пример конфигурации приоритетов. The following is an example of priority configuration:

Виртуальное приложение Microsoft Outlook работает в виртуальной среде XYZ. The virtual application Microsoft Outlook is running in virtual environment XYZ. При запуске вложенного документа Microsoft Word виртуализированная версия Microsoft Word открывается в виртуальной среде XYZнезависимо от связанных групп подключений Microsoft Word или приоритетов среды работы. When you open an attached Microsoft Word document, a virtualized version Microsoft Word opens in the virtual environment XYZ, regardless of the virtualized Microsoft Word’s associated connection groups or runtime priorities.

Поддерживаемые конфигурации подключений к виртуальным приложениям Supported virtual application connection configurations

App-V поддерживает следующие конфигурации подключений к приложениям. App-V supports the following application connection configurations.

EXE-файл и подключаемый модуль (DLL). An .exe file and plug-in (.dll). Например, вы можете распространять Microsoft Office всем пользователям, но распространять подключаемый модуль Microsoft Excel только для небольшого подмножество этих пользователей. For example, you might want to distribute Microsoft Office to all users, but only distribute a Microsoft Excel plug-in to a small subset of those users.

В включить группу подключений для соответствующих пользователей. Enable the connection group for the appropriate users. Обновим каждый пакет по отдельности по мере необходимости. Update each package individually as required.

EXE-файл и приложение по середине. An .exe file and a middleware application. Это происходит в тех случаях, когда у вас есть приложение, которое требует приложения по середине, или несколько приложений, которые все зависят от одной и той же версии во время работы по среднему по. This is for cases where you have an application that requires a middleware application, or several applications that all depend on the same middleware runtime version.

Все компьютеры, которые требуют одного или более приложений, получают группы подключений со временем работы приложения и по середине. All computers that require one or more of the applications receive the connection groups with the application and middleware application runtime. При желании можно объединить несколько приложений-посредников в одну группу подключений. You can optionally combine multiple middleware applications into a single connection group.

Пример Example Описание примера Example description
Группа подключений к виртуальным приложениям для финансового подразделения Virtual application connection group for the financial division — По середине приложения 1 — Middleware application 1 — По середине приложения 2 — Middleware application 2 — По середине приложения 3 — Middleware application 3 — По середине времени работы приложения — Middleware application runtime
Группа подключений к виртуальным приложениям для отдела кадров Virtual application connection group for HR division — По середине приложения 5 — Middleware application 5 — По середине приложения 6 — Middleware application 6 — По середине времени работы приложения — Middleware application runtime

Exe-файл и EXE-файл. An. exe file and an .exe file. Это происходит в тех случаях, когда у вас есть приложение, которое зависит от другого приложения, но вы хотите сохранить пакеты отдельно для операционной эффективности, ограничений лицензирования или временных шкалы для вынесения. This is for cases where you have an application that relies on another application, but you want to keep the packages separate for operational efficiencies, licensing restrictions, or rollout timelines.

Например, при развертывании Microsoft Lync 2010 можно использовать три пакета: For example, if you are deploying Microsoft Lync 2010, you can use three packages:

  • Microsoft Office2010 Microsoft Office2010
  • Microsoft Communicator2007 Microsoft Communicator2007
  • Microsoft Lync2010 Microsoft Lync2010

Управлять развертыванием можно с помощью следующих групп подключений: You can manage the deployment with the following connection groups:

  • Microsoft Office2010 и Microsoft Communicator2007 Microsoft Office2010 and Microsoft Communicator2007
  • Microsoft Office2010 и Microsoft Lync2010 Microsoft Office2010 and Microsoft Lync2010

После развертывания можно создать один новый пакет Microsoft Office2010 + Microsoft Lync2010 или сохранить и сохранить их как отдельные пакеты и развернуть их с помощью группы подключений. After deployment, you can either create a single new Microsoft Office2010 + Microsoft Lync2010 package or keep and maintain them as separate packages and deploy them with a connection group.

Читайте также:  Сочетание клавиш скрин экрана mac os
Оцените статью