unity自定义面板_如何创建自己的自定义Windows系统管理面板

本文介绍了如何使用Microsoft Management Console(mmc.exe)创建自定义的系统管理面板,将设备管理器、服务等工具整合在一起,便于统一管理和访问。通过添加和配置管理单元,甚至可以链接到网络上的其他计算机或Web地址,实现更便捷的系统管理体验。
摘要由CSDN通过智能技术生成
unity自定义面板

unity自定义面板

image

Has it ever annoyed you to have to open lots of separate windows for Device Manager, Services, Event Viewer, and other system administration tools? Here’s how to pull them all together into your own custom admin panel.

是否曾经让您不得不为设备管理器,服务,事件查看器和其他系统管理工具打开许多单独的窗口而烦恼? 这是将它们全部组合到您自己的自定义管理面板中的方法。

We’ll accomplish this easily since most of the system admin panels are implemented as plugins for Microsoft Management Console, a wrapper framework that we’ll use to create our panel.

我们将轻松完成此操作,因为大多数系统管理面板都是作为Microsoft管理控制台的插件实现的,Microsoft管理控制台是用于创建面板的包装框架。

创建您的自定义管理面板 (Create Your Custom Administration Panel)

Open up mmc.exe through the Start Menu search or Run box, which will bring up an empty window that looks like this:

通过“开始菜单”搜索或“运行”框打开mmc.exe,这将弹出一个空窗口,如下所示:

image

Head to the File menu and choose Add/Remove Snap-in or just hit the Ctrl+M shortcut key.

转到“文件”菜单,然后选择“添加/删除管理单元”或直接按Ctrl + M快捷键。

image

On the left-hand side you’ll see lots of familiar items like Computer Management and Device Manager. Select the ones you want on the left-hand pane, and then click the Add button. (You have to add them one at a time)

在左侧,您会看到许多熟悉的项目,例如“计算机管理”和“设备管理器”。 在左侧窗格中选择所需的选项,然后单击“添加”按钮。 (您必须一次添加一个)

image

You’ll be presented a dialog where you can choose which computer you would like the snap-in to manage. You can use this for easy access to other computers over the network. Note that you can add the same snap-in multiple times, and choose a different computer to manage for each item you add.

系统将显示一个对话框,您可以在其中选择要管理该管理单元的计算机。 您可以使用它来通过网络轻松访问其他计算机。 请注意,您可以多次添加相同的管理单元,并为添加的每个项目选择不同的计算机进行管理。

For our purposes, just click the Finish button.

就我们的目的而言,只需单击“完成”按钮。

image

You might have noticed an interesting item in the list named “Link to Web Address”, which is very useful for showing something like your wireless router’s administration page, right inside your custom administration panel. Just drop the URL into the box.

您可能已经在列表中发现了一个有趣的项目,即“链接到Web地址”,这对于在自定义管理面板中显示无线路由器的管理页面等内容非常有用。 只需将URL放入框中。

image

You’ll want to give it a name, which will show up on the left-hand menu in the console.

您需要为其命名,该名称将显示在控制台的左侧菜单中。

image

Now that we’re all finished, you can see what it looks like. All of the items work just like you would expect.

现在我们都完成了,您可以看到它的外观。 所有项目均按预期运行。

image

If you were to select the Linksys Administration item that we added earlier, you easily administrate your router without leaving your panel.

如果要选择我们之前添加的Linksys管理项目,则无需离开面板即可轻松管理路由器。

image

Now you’ll want to head to File –> Options and change the Console Mode to “User mode – full access”, and then selecting the “Do not save changes to this console” item—this is really important, otherwise you’ll get an annoying prompt every time you try and close the panel.

现在,您要转到“文件”->“选项”,并将控制台模式更改为“用户模式–完全访问”,然后选择“不要将更改保存到此控制台”项,这确实很重要,否则,每当您尝试关闭面板时,都会收到烦人的提示。

image

Now head to File –> Save As and save your console file somewhere, preferably giving it a useful name. Here’s our panel, for instance:

现在转到File –> Save As并将您的控制台文件保存在某个位置,最好给它一个有用的名称。 例如,这是我们的面板:

image

That’s all there is to it. You should also note that you can open up multiple instances of your custom administration panel.

这里的所有都是它的。 您还应该注意,可以打开自定义管理面板的多个实例。

对控制台进行更改 (Making Changes to Your Console)

If you decide that you want to change the console, you can simply right-click on the file and choose “Author” from the menu—you won’t be able to make changes otherwise.

如果您决定要更改控制台,则只需在文件上单击鼠标右键,然后从菜单中选择“作者”,否则将无法进行更改。

image

Of course, you wouldn’t need to do this if you didn’t select the “Do not save changes to this console” item earlier, but then you’d get prompted to save every single time you close the console, which is more annoying than having to right-click to make changes.

当然,如果您之前没有选择“不保存对控制台的更改”项,则无需执行此操作,但是每次关闭控制台时,系统都会提示您进行保存,更多恼人的是不必右键单击进行更改。


Just like that, you’ve got your own customized administration panel. What will you use it for?
这样,您便拥有了自己的自定义管理面板。 你会用它做什么?

翻译自: https://www.howtogeek.com/howto/windows-vista/useful-geek-tricks-create-a-custom-system-administration-panel-in-windows-xp-or-vista/

unity自定义面板

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值