Printworkflow что это за служба
Provides support for Print Workflow applications. If you turn off this service, you may not be able to print successfully.
The PrintWorkflow service does not exist in:
- Windows 10 Home 1507
- Windows 10 Pro 1507
- Windows 10 Education 1507
- Windows 10 Enterprise 1507
- Windows 10 Home 1511
- Windows 10 Pro 1511
- Windows 10 Education 1511
- Windows 10 Enterprise 1511
- Windows 10 Home 1607
- Windows 10 Pro 1607
- Windows 10 Education 1607
- Windows 10 Enterprise 1607
- Windows 10 Home 1703
- Windows 10 Pro 1703
- Windows 10 Education 1703
- Windows 10 Enterprise 1703
Default Settings
Startup type: | Manual |
Display name: | PrintWorkflow |
Service name: | PrintWorkflowUserSvc |
Service type: | user share process template |
Error control: | normal |
Object: | LocalSystem |
Path: | %SystemRoot%\system32\svchost.exe -k PrintWorkflow |
File: | %SystemRoot%\System32\PrintWorkflowService.dll |
Registry key: | HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PrintWorkflowUserSvc |
Default Behavior
In Windows 10 it is starting only if the user, an application or another service starts it. If PrintWorkflow fails to start, the failure details are being recorded into Event Log. Then Windows 10 will start up and notify the user that the PrintWorkflowUserSvc service has failed to start due to the error.
Dependencies
PrintWorkflow cannot be started under any conditions, if the Remote Procedure Call (RPC) service is disabled.
Restore Default Startup Configuration of PrintWorkflow
1. Run the Command Prompt as an administrator.
2. Copy the command below, paste it into the command window and press ENTER:
Что такое служба PrintWorkflow_<6-шестнадцатеричные> в Windows 10?
Сегодня вечером у нас возникла проблема с удалением задания на печать с помощью принтера, который был подключен к серверу принтера. мы не могли избавиться от задания, и на рабочей станции, когда задание возникло, мы запустили PrintWorkflow_<6-hex-digits> и задание на печать ушло.
Для чего этот сервис? Я никогда не видел этого в Windows, и я верю, что это что-то новое в Windows 10.
1 ответ
Похоже, что служба связана с пользовательскими службами в Windows 10 и Windows Server, поэтому в Windows 10, начиная с версии 1709, появилось что-то новое в соответствии с таблицей пользовательских служб и разделом поста Microsoft.
Индивидуальные сервисы — это сервисы, которые создаются при входе пользователя в Windows или Windows Server и останавливаются и удаляются при выходе из него. Эти службы работают в контексте безопасности учетной записи пользователя — это обеспечивает лучшее управление ресурсами, чем предыдущий подход к запуску таких служб в Explorer, связанных с предварительно настроенной учетной записью или в виде задач.
Один пример того, для чего он может быть использован, кажется, обсуждается в публикации » Настройка рабочего процесса печати», где можно настроить взаимодействие с рабочим процессом печати.
обзор
Разработчики могут настраивать процесс печати с помощью приложения для печати. Приложения рабочего процесса печати — это приложения UWP, которые расширяют функциональность приложений устройств Microsoft Store (WSDA), поэтому будет полезно ознакомиться с WSDA, прежде чем идти дальше.
Как и в случае с WSDA, когда пользователь исходного приложения выбирает печать чего-либо и перемещается по диалоговому окну печати, система проверяет, связано ли приложение рабочего процесса с этим принтером. Если это так, приложение рабочего процесса печати запускается (в основном как фоновая задача; подробнее об этом ниже). Приложение рабочего процесса может изменять как билет на печать (документ XML, который настраивает параметры устройства принтера для текущей задачи печати), так и фактическое содержимое XPS для печати. При желании он может предоставить эту функциональность пользователю, запустив пользовательский интерфейс в середине процесса. Выполнив свою работу, он передает содержимое печати и билет на печать водителю.
Поскольку он включает компоненты фона и переднего плана и функционально связан с другими приложениями, приложение процесса печати может быть более сложным для реализации, чем другие категории приложений UWP. Рекомендуется ознакомиться с образцом приложения Workflow во время чтения этого руководства, чтобы лучше понять, как можно реализовать различные функции. Некоторые функции, такие как различные проверки ошибок и управление пользовательским интерфейсом, отсутствуют в этом руководстве для простоты.
Источник
Как ускорить Windows 10, отключив ненужные службы
Немногие знают, что любая операционка семейства Windows съедает очень много ресурсов вхолостую.
Сегодня мы поговорим о таком компоненте системы, как службы Windows — специальных системных программах,запускаемых системой в фоне для выполнения различных операций. Безусловно, многие из них очень важны, но часть из них абсолютно бесполезная для 99% пользователей и нагружает и тормозит компьютер без видимых на то причин. Кроме того, некоторые из них содержат различные уязвимости, и могут использоваться хакерами для атаки на вашу машину.
В этой серии уроков я научу вас, какие службы можно навсегда отключить в ОС Windows различных версий: от новомодной «десятки» до старой доброй «хрюшки». Это поможет вам неплохо разгрузить ресурсы вашего железа и ускорить его работу за счет того, что ему не придется отвлекаться на выполнение лишних операций.
Особенно данная тема актуальна для владельцев слабых компов, которых в наше время еще очень много.
КАК ОТКЛЮЧИТЬ СЛУЖБЫ WINDOWS?
Для начала рассмотрим, где же найти эти самые службы и как их отключить?
Более продвинутые юзеры могут лишние службы совсем удалить, но это требует специальных знаний, и вам я не рекомендую идти на такой шаг. Отключенную службу всегда можно включить, а удаленную уже не вернуть.
Для начала жмем «Win+R» и пишем команду «services.msc».
Откроется окно с перечнем всех служб, установленных в системе.
Для каждой службы имеется краткое описание.
Чтобы отключить любую из них, нужно найти в списке нужную службу и сделать по строке с ней двойной клик. Перед вами появится окно «Свойства», выбранной службы, в котором нужно выставить необходимые параметры запуска. Нам нужна первая вкладка «Общие».
Тип запуска меняем на «Отключена» и нажимаем кнопку «Остановить», если она активна. Жмем «ОК» для применения настроек.
После остановки служб необходимо сделать перезагрузку машины.
Ну что ж, где найти службы и как их отключить мы разобрались, а теперь перейдем к самому главному: какие из служб можно безопасно отключить, чтобы система осталась в стабильном состоянии и при этом ела меньше ресурсов.
WINDOWS 10: КАКИЕ СЛУЖБЫ МОЖНО ВЫКЛЮЧИТЬ?
Начнем с модной и порядком уже всех доставшей «десятки».
- BranchCache — если не пользуетесь домашней сетью, отключайте.
- Diagnostic Execution Service — шпионский модуль «мелкомягких». Отключаем.
- Как полностью отключить слежку в Windows 10? Это должен знать каждый!
- PrintWorkflow — отключаем, если нет принтера.
- Quality Windows Audio Video Experience — если нет домашней сети, отключаем.
- Shared PC Account Manager — отключаем.
- Windows Search — выключаем, если не используете поиск Windows.
- Windows Update Medic Service — отключаем.
- Xbox Accessory Management Service — если у вас нет консоли Xbox, отключаем, как и все другие службы с упоминанием Xbox.
- Автономные файлы — отключаем.
- Адаптер производительности WMI — отключаем.
- Антивирусная программа «Защитника Windows» — отключаем, если используется сторонний антивирус.
- Как за секунду навсегда отключить бесполезный «Защитник» Windows 10?
- Биометрическая служба Windows — если не используем вход по FaceID и отпечаткам пальцев, смело отключаем.
- Браузер компьютеров — выключаем, если не используется локальная сеть.
- Вспомогательная служба IP — отключается индивидуально. Если после ее выключения интернет работает нормально, то она вам не нужна.
- Вторичный вход в систему — запуск процессов от имени другого пользователя. Если у вас одна учетная запись, отключаем.
- Группировка сетевых участников — отключаем, если нет домашней сети.
- Диспетчер печати — если нет принтера, смело отключаем.
- Диспетчер платежей и NFC/защищенных элементов — отключаем.
- Диспетчер проверки подлинности Xbox Live — отключаем.
- Диспетчер скачанных карт — отключаем, если не используем приложение «Карты».
- Как парой кликов удалить весь встроенный хлам из Windows 10?
- Диспетчер удостоверения сетевых участников — если нет домашней группы, смело отключаем.
- Журнал событий Windows — работает в фоне, ест процессор. Смело отключаем.
- Журналы и оповещения производительности — тоже самое.
- Интерфейс гостевой службы Hyper-V — если не используете виртуальные машины Hyper-V, смелой отключайте, как и все службы с упоминанием о Hyper-V.
- Клиент отслеживания изменившихся связей — отключаем.
- Настройка сервера удаленных рабочих столов — если нет локальной сети, отключаем.
- Обнаружение SSDP — выключаем.
- Общий доступ к подключению к Интернету (ICS) — отключаем, если нет домашней сети.
- Оптимизация доставки — отвечает за загрузку обновлений. Отключаем.
- Как за пару кликов навсегда удалить «Центр обновления» Windows 10?
- Перенаправитель портов пользовательского режима служб удаленных рабочих столов — отключаем, если не пользуемся удаленными рабочими столами.
- Политика удаления смарт-карт — если не используете смарт-карты, смело отключайте.
- Помощник по входу в учетную запись Майкрософт — отключаем, если у вас локальная учетная запись.
- Как и почему необходимо перейти на локальную учетную запись?
- Посредник подключений к сети — относится к встроенным приложениям «десятки». Отключаем.
- Программный поставщик теневого копирования (Microsoft) — выключаем, если не используете точки восстановления.
- Рабочие папки — отключаем.
- Расширения и уведомления для принтеров — выключаем, если нет принтера.
- Родительский контроль — отключаем, если его не используем.
- Сборщик событий Windows — лучше выключить.
- Сервер — если не используете общий доступ к принтерам и печати, выключаем.
- Сервер кадров камеры Windows — отключаем.
- Сетевая служба Xbox Live — отключаем, если нет Xbox.
- Сетевой вход в систему — вырубаем.
- Служба «Безопасность Windows» — отключаем.
- Служба Advanced Threat Protection в Защитнике Windows — про «Защитник» см. выше.
- Служба SSTP — если не используем VPN, можно выключить.
- Служба Windows License Manager — если не используете Microsoft Store, выключаем.
- Служба Windows Mobile Hotspot — можно выключить.
- Служба виртуализации взаимодействия с пользователем — отключаем.
- Служба виртуализации удаленных рабочих столов Hyper-V — см. выше.
- Служба восприятия Windows — отключаем.
- Служба географического положения — если не используете геолокацию, отключаем.
- Служба демонстрации магазина — отключаем, если не используем магазин Windows.
- Служба загрузки изображений Windows (WIA) — отключаем, если нет сканера.
- Служба звукового шлюза Bluetooth — отключаем.
- Служба имитации восприятия Windows — отключаем.
- Служба кошелька — платежная система Microsoft Wallet. Отключаем.
- Служба лицензий клиента (ClipSVC) — отключаем, если не используем магазин Windows.
- Служба монитора инфракрасной связи — отключаем.
- Служба общего доступа к портам Net.Tcp — если комп не используется как сервер, отключаем.
- Служба общих сетевых ресурсов проигрывателя Windows Media — отключаем.
- Служба перечисления устройств чтения смарт-карт — отключаем.
- Служба перечислителя переносных устройств — можно выключить.
- Служба поддержки Bluetooth — отключаем, если нет блютуз.
- Служба помощника по совместимости программ — еще одна бесполезная служба. Отключаем.
- Служба предварительной оценки Windows — отключаем.
- Служба проверки сети Windows Defender Antivirus — см. выше.
- Служба сенсорной клавиатуры и панели рукописного ввода — отключаем, если у вас не сенсорный экран.
- Служба регистрации ошибок Windows — отправка лога об ошибках на сервера Microsoft. Отключаем.
- Служба управления радио — радио и «режим самолета». Отключаем.
- Служба установки Microsoft Store — выключаем, если не используем Microsoft Store.
- Служба шифрования дисков BitLocker — отключаем, если не пользуемся шифрованием.
- Службы удаленных рабочих столов — отключаем.
- Смарт-карта — отключаем, если нет смарт-карт.
- Стандартная служба сборщика центра диагностики Microsoft (R) — можно выключить.
- Телефония — если не используете IP-телефонию, отключаем.
- Телефонная связь — отключаем.
- Теневое копирование тома — отключаем, если не используем точки восстановления.
- Удаленный реестр — отключаем.
- Факс — отключаем.
- Центр обеспечения безопасности — следит за состоянием антивируса. Можно выключить.
- Центр обновления Windows — отключить невозможно. Очень сильно тормозит компьютер. Постоянно вызывает сбои системы. Настоятельно рекомендуется радикальное удаление.
Как видите, список мусорных процессов, постоянно висящих в «десятке» внушительный, и, отключив их, вы немало облегчите жизнь своему компьютеру.
Помните, если вдруг после отключения службы вам что-то не понравилось, вы всегда можете включить ее назад!
Не нужно впадать в панику!
В следующей статье мы разберем отключение ненужных служб в Windows 7.
What is the PrintWorkflow_<6-hex-digits> service in Windows 10?
Print workflow apps are UWP apps that expand on the functionality of Microsoft Store devices apps (WSDAs), so it will be helpful to have some familiarity with WSDAs before going further. For this reason, Print workflow apps run as background tasks by default.
What is the PrintWorkflow_<6-hex-digits> service in Windows 10?
We were having an issue this evening deleting a print job with a printer that was connected to a printer server. we couldn't get rid of the job, and on the workstation when the job originated we started the PrintWorkflow_<6-hex-digits> and the print job went away.
What is this service for? I've never seen it in Windows, and I believe it's something new in Windows 10.
Solution:
service appears to be related to the Per-user services in Windows 10 and Windows Server, so it's something new with Windows 10 starting at version 1709 according to the Per-user services table and section of the Microsoft post.
Per-user services are services that are created when a user signs into Windows or Windows Server and are stopped and deleted when that user signs out. These services run in the security context of the user account — this provides better resource management than the previous approach of running these kinds of services in Explorer, associated with a preconfigured account, or as tasks.
One example of what it could be used for seems to be talked about in the Customize the print workflow post where it can customize the printing workflow experience.
Overview
Developers can customize the printing workflow experience through the use of a print workflow app. Print workflow apps are UWP apps that expand on the functionality of Microsoft Store devices apps (WSDAs), so it will be helpful to have some familiarity with WSDAs before going further.
Just as in the case of WSDAs, when the user of a source application elects to print something and navigates through the print dialog, the system checks whether a workflow app is associated with that printer. If it is, the print workflow app launches (primarily as a background task; more on this below). A workflow app is able to alter both the print ticket (the XML document that configures the printer device settings for the current print task) and the actual XPS content to be printed. It can optionally expose this functionality to the user by launching a UI midway through the process. After doing its work, it passes the print content and print ticket on to the driver.
Because it involves background and foreground components, and because it is functionally coupled with other app(s), a print workflow app can be more complicated to implement than other categories of UWP apps. It is recommended that you inspect the Workflow app sample while reading this guide to better understand how the different features can be implemented. Some features, such as various error checks and UI management, are absent from this guide for the sake of simplicity.
Source
Further Resources
Per-user services in Windows 10 and Windows Server
Customize the print workflow
Print Spooler Service Is Not Running In Windows 10 FIX
Customize the print workflow
Overview
Developers can customize the printing workflow experience through the use of a print workflow app. Print workflow apps are UWP apps that expand on the functionality of Microsoft Store devices apps (WSDAs), so it will be helpful to have some familiarity with WSDAs before going further.
Just as in the case of WSDAs, when the user of a source application elects to print something and navigates through the print dialog, the system checks whether a workflow app is associated with that printer. If it is, the print workflow app launches (primarily as a background task; more on this below). A workflow app is able to alter both the print ticket (the XML document that configures the printer device settings for the current print task) and the actual XPS content to be printed. It can optionally expose this functionality to the user by launching a UI midway through the process. After doing its work, it passes the print content and print ticket on to the driver.
Because it involves background and foreground components, and because it is functionally coupled with other app(s), a print workflow app can be more complicated to implement than other categories of UWP apps. It is recommended that you inspect the Workflow app sample while reading this guide to better understand how the different features can be implemented. Some features, such as various error checks and UI management, are absent from this guide for the sake of simplicity.
Getting started
The workflow app must indicate its entry point to the print system so that it can be launched at the appropriate time. This is done by inserting the following declaration in the Application/Extensions element of the UWP project's package.appxmanifest file.
There are many scenarios in which the print customization does not require user input. For this reason, Print workflow apps run as background tasks by default.
If a workflow app is associated with the source application that started the print job (see later section for instructions on this), the print system examines its manifest files for a background task entry point.
Do background work on the print ticket
The first thing the print system does with the workflow app is activate its background task (In this case, the WfBackgroundTask class in the WFBackgroundTasks namespace). In the background task's Run method, you should cast the task's trigger details as a PrintWorkflowTriggerDetails instance. This will provide the special functionality for a print workflow background task. It exposes the PrintWorkflowSession property, which is an instance of PrintWorkFlowBackgroundSession . Print workflow session classes — both the background and foreground varieties — will control the sequential steps of the print workflow app.
Then register handler methods for the two events that this session class will raise. You will define these methods later on.
When the Start method is called, the session manager will raise the SetupRequested event first. This event exposes general information about the print task, as well as the print ticket. At this stage, the print ticket can be edited in the background.
Importantly, it is in the handling of the SetupRequested that the app will determine whether to launch a foreground component. This could depend on a setting that was previously saved to local storage, or an event that occurred during the editing of the print ticket, or it may be a static setting of your particular app.
Do foreground work on the print job (optional)
If the SetRequiresUI method was called, then the print system will examine the manifest file for the entry point to the foreground application. The Application/Extensions element of your package.appxmanifest file must have the following lines. Replace the value of EntryPoint with name of the foreground app.
Next, the print system calls the OnActivated method for the given app entry point. In the OnActivated method of its App.xaml.cs file, the workflow app should check the activation kind to verify that it is a workflow activation. If so, the workflow app can cast the activation arguments to a PrintWorkflowUIActivatedEventArgs object, which exposes a PrintWorkflowForegroundSession object as a property. This object, like its background counterpart in the previous section, contains events that are raised by the print system, and you can assign handlers to these. In this case, the event-handling functionality will be implemented in a separate class called WorkflowPage .
First, in the App.xaml.cs file:
Once the UI has attached event handlers and the OnActivated method has exited, the print system will fire the SetupRequested event for the UI to handle. This event provides the same data that the background task setup event provided, including the print job info and print ticket document, but without the ability to request the launch of additional UI. In the WorkflowPage.xaml.cs file:
Next, the print system will raise the XpsDataAvailable event for the UI. In the handler for this event, the workflow app can access all of the data available to the setup event and can additionally read the XPS data directly, either as a stream of raw bytes or as an object model. Access to the XPS data allows the UI to provide print preview services and to provide additional information to the user about the operations that the workflow app will execute on the data.
As part of this event handler, the workflow app must acquire a deferral object if it will continue to interact with the user. Without a deferral, the print system will consider the UI task complete when the XpsDataAvailable event handler exits or when it calls an async method. When the app has gathered all required information from the user's interaction with the UI, it should complete the deferral so that the print system can then advance.
Additionally, the PrintWorkflowSubmittedOperation instance exposed by the event args provides the option to cancel the print job or to indicate that the job is successful but that no output print job will be needed. This is done by calling the Complete method with a PrintWorkflowSubmittedStatus value.
If the workflow app cancels the print job, it is highly recommended that it provide a toast notification indicating why the job was cancelled.
Do final background work on the print content
Once the UI has completed the deferral in the PrintTaskXpsDataAvailable event (or if the UI step was bypassed), the print system will fire the Submitted event for the background task. In the handler for this event, the workflow app can get access to all of the same data provided by the XpsDataAvailable event. However, unlike any of the previous events, Submitted also provides write access to the final print job content through a PrintWorkflowTarget instance.
The object that is used to spool the data for final printing depends on whether the source data is accessed as a raw byte stream or as the XPS object model. When the workflow app accesses the source data through a byte stream, an output byte stream is provided to write the final job data to. When the workflow app accesses the source data through the object model, a document writer is provided to write objects to the output job. In either case, the workflow app should read all of the source data, modify any data required, and write the modified data to the output target.
When the background task finishes writing the data, it should call Complete on the corresponding PrintWorkflowSubmittedOperation object. Once the workflow app completes this step and the Submitted event handler exits, the workflow session is closed and the user can monitor the status of the final print job through the standard print dialogs.
Final steps
Register the print workflow app to the printer
Your workflow app is associated with a printer using the same type of metadata file submission as for WSDAs. In fact, a single UWP application can act as both a workflow app and a WSDA that provides print task settings functionality. Follow the corresponding WSDA steps for creating the metadata association.
The difference is that while WSDAs are automatically activated for the user (the app will always launch when that user prints on the associated device), workflow apps are not. They have a separate policy that must be set.
Set the workflow app's policy
The workflow app policy is set by Powershell commands on the device that is to run the workflow app. The Set-Printer, Add-Printer (existing port) and Add-Printer (new WSD port) commands will be modified to allow Workflow policies to be set.
- Disabled : Workflow apps will not be activated.
- Uninitialized : Workflow apps will be activated if the Workflow DCA is installed in the system. If the app is not installed, printing will still proceed.
- Enabled : Workflow contract will be activated if the Workflow DCA is installed in the system. If the app is not installed, printing will fail.
The following command makes the workflow app required on the specified printer.
A local user can run this policy on a local printer, or, for enterprise implementation, the printer administrator can run this policy on the Print Server. The policy will then be synchronized to all client connections. The printer admin can use this policy whenever a new printer is added.
Workflow app sample
Windows.Graphics.Printing.Workflow Namespace
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This namespace provides the functionality for writing a print workflow app. Print workflow apps are registered to print-capable source applications. They are launched in the background after the source application has elected to print something but before the print data is sent to the printer. Workflow apps are able to alter both the print ticket (printer device settings) and the actual content to be printed, and they can optionally expose this functionality to the user by launching a foreground app midway through the process. This allows for a greater degree of customization of the printing experience.
Classes
Represents a single print workflow session that runs in the background.
Contains information about a PrintWorkflowBackgroundSession.SetupRequested event that was raised.
Contains information about the source application, print job title, and session ID for a print workflow session.
Represents a single print workflow session that runs in the foreground.
Contains information about a PrintWorkflowForegroundSession.SetupRequested event that was raised.
Enables a print support workflow UI extension app to handle the activation parameters for the app.
Represents a single print workflow job session that runs in the background.
Provides info for the JobNotification event.
Provides info for the JobStarting event.
Provides additional information associated with a print workflow job session that runs in the background.
Represents a session of the print support workflow UI.
Represents print content in the form of the COM-based XPS object model.
Represents the print output data in the form of the COM-based XPS object model.
Provides a method that can be used to convert a print document from one page description language (PDL) format to another PDL format.
Provides info for the PdlDataAvailable event.
Provides info for the PdlModificationRequested event.
Encapsulates the source page description language (PDL) content for the current job.
Represents the target page description language (PDL) stream for the current print job operation.
Represents a printer job in the context of a print workflow app.
Represents raw print data from the source application.
Represents print data in the form of an XPS data stream.
Represents an output data stream to be sent to the printer.
Contains information about a PrintWorkflowBackgroundSession.Submitted event that was raised.
Contains information about a print task that has potentially been modified by a print workflow session.
Represents the output document to be sent to the printer driver.
Represents contextual information about the triggering of a print workflow background task.
Contains contextual information about a print workflow foreground task that has been activated.
Provides operations for showing a UI for gathering user input that the print workflow app needs to complete the conversion to the page description language (PDL) format indicated by the printer.
Contains information about a PrintWorkflowForegroundSession.XpsDataAvailable event that was raised.
Enums
Specifies which PDL conversion processing operations are performed by the host.
Specifies how attributes supplied by the Printer Support App should be merged with PrintTicket attributes.
Contains values that indicate why a print workflow was canceled by using the AbortPrintFlow method.
Defines values that represent the different types of page description language (PDL) converters that can be used with the GetPdlConverter method.
Contains values that describe the status of the current print workflow printer job.
Contains values that describe the status of the current print workflow session.
Contains values that describe the status of a print workflow session.
Provides values for the completion status of the print workflow job UI that is shown by calling the LaunchAndCompleteUIAsync method.