删除Windows服务中本地系统帐户创建的专用队列 [英] Delete Private Queue Created By Local System Account In Windows Service

查看:160
本文介绍了删除Windows服务中本地系统帐户创建的专用队列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在通过代码为WCF创建私有事务队列.

I am creating Private Transactional Queues for WCF thru code. 

如果该队列尚不存在,则该队列是由Windows服务在启动时创建的.

If the Queue does not already exist, the Queue is created by a Windows Service when it starts.

Windows服务由本地系统帐户控制

The Windows Service is controlled by the Local System Account

因此,本地系统可以完全控制队列

So the Local System has Full Control of the Queue

我是计算机上的管理员

我收到访问被拒绝"消息,尝试删除或查看队列时出现错误

I get "Access Denied" error when attempting to Delete or View the Queue

如何删除队列?

提前谢谢.

标记

 

推荐答案

有一对方法.

  1. 在计算机管理中,转到队列的安全属性,通过高级"按钮获取所有权,然后将权限设置为所需的权限.
  2. 在system32 \ msmq \ storage \ lqs目录中找到队列配置文件并删除该文件;队列名称将位于您想要的文件中.重新启动MSMQ服务时,队列将消失.
  1. In computer management, go to the security properties of the queue, take ownership through the Advanced button, and set permissions to what you want.
  2. Find the queue config file in the system32\msmq\storage\lqs directory and delete the file; the queue name will be inside the file you want. When you restart the MSMQ service, the queue will have disappeared. 

欢呼

John Breakwell

John Breakwell


这篇关于删除Windows服务中本地系统帐户创建的专用队列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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