取消用户注销时的打印队列 [英] Cancel Print Queue on User Logoff

查看:79
本文介绍了取消用户注销时的打印队列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Experts,

Hello Experts,

我会就下面描述的问题提出您的建议。

I would require your suggestion on the issues which I have described below.

我们有Windows 7虚拟桌面,用户登录并执行打印作业。

We have Windows 7 Virtual desktops on which users are login and performing print jobs.

我们观察到,有时用户触发了打印命令,作业卡在打印队列中。

We have observed, sometime user fired the print command and jobs gets stuck in print queue.

当下次登录时,打印命令恢复和打印命令在打印机上执行。

when next time other log in, the print command resume and print command gets executed on printer.

为了避免这种情况情况,我们想要部署一个脚本,该脚本将在每个用户注销事件中执行并清除打印作业。

in order to avoid this situation, we wanted to deploy a script which will be executed at every user logoff event and clears the print Jobs.

我有下面的行,我想在注销事件上执行,

I have below lines which I want to execute on logoff event,

net stop spooler

net stop spooler

del C:\ windows \ system32 \\\\\\\\\\\\\ *。*

del C:\windows\system32\spool\priners\*.*

net start spooler

net start spooler

但是,用户没有VDI的管理员权限并且由于脚本没有执行。

However, user don't have admin access to VDI and due to which the script is not executing.

您能否建议我们如何完成这项任务?

Could you please suggest how can we achieve this task ?

感谢您的快速回复......

Appreciate your expedite response...

谢谢

谢谢和问候,

Amit Katkar(MCITP Windows 2008)

------------- -----------------------------------------------

此帖子按"原样"提供。没有保证或担保,也没有授予任何权利。

Thanks & Regards,
Amit Katkar (MCITP Windows 2008)
------------------------------------------------------------
This posting is provided "AS IS" with no warranties or guarantees and confers no rights.

推荐答案

我建​​议您解决问题。 如果你不知道我怎么建议给微软发一个支持电话。
I recommend that you fix the problem.  If you do not know how then I suggest placing a support call to Microsoft.


这篇关于取消用户注销时的打印队列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆