问题标签 [snap-in]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
69 浏览

command-line - 从命令行编译 vb6 管理单元 ocx

有没有从命令行编译 vb6 管理单元的特定方法?我尝试使用此命令:

它抛出应用程序错误:

0x027 处的指令......在 0x000 处引用......无法读取内存。

但它在 vb IDE 中编译时没有任何错误。我是 VB6 的新手,对它了解不多。请提前帮助和感谢。

0 投票
0 回答
256 浏览

windows - 调试 Windows 应用程序 - Win 7 32 位中的事件查看器

几天来一直在尝试解决 MMC 管理单元无法为事件查看器创建或初始化错误。我尝试过 sfc /scannow、regsvr32、Dependency Walker、Win 7 修复磁盘、chkdsk、dumpbin /dependents,最近尝试安装 Windows SDK 工具但没有成功。但是这些实用程序都没有帮助。事件查看器的原因是由于 IIS 管理器的问题,安装但不会运行。我找不到任何丢失或损坏的内容和注册表项:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MMC\SnapIns\FX:{b05566ad-fe9c-4363-be05-7a4cbb7cb510} 键 = moduleName 值 = EventViewer.dll。

C:\Windows\winsxs\msil_eventviewer_31bf3856ad364e35_6.1.7601.17514_none_a7c7be940756e915>regsvr32 eventviewer.dll

结果:
模块 eventviewer.dll 已加载,但未找到入口点 DllRegisterServer。

有任何想法吗?

0 投票
1 回答
563 浏览

mmc - 在 MMC 中找不到管理单元

我尝试注册一个由 Microsoft 开发的管理单元示例,但在“添加\删除”菜单中看不到它。

我使用 Win7 x64,项目定义为 x64,我使用 InstallUtil.exe 安装 DLL。根据日志安装成功。

我不知道为什么我在“添加/删除”菜单中看不到它。谢谢您的支持。

0 投票
0 回答
201 浏览

c# - 获取有关当前扩展的 GPO 的信息

我们目前正在开发一个 MMC 管理单元扩展,它扩展了多个组策略对象 (GPO),如下图所示:

组策略管理编辑器 - 扩展

技术是 MMC 3.0、.NET 3.5、C#、VS2013。该扩展适用于所有 GPO。

扩展的主类看起来像这样(以匿名的方式)

一切正常,除了我无法确定哪个 GPO 是当前打开的扩展的父级。我想知道这一点,因为我必须将注册表写入以下路径:HKLM\Software\Company\Product\Client Group Policy\[GPOID]\

我想动态地拥有这个 ID:我正在寻找突出显示的 GUID

我已经尝试了很多没有结果的事情:

  • 在 ExtensionSnapIn 类中有一个继承的 PrimaryScopeNode 属性,它有一个 NodeType 属性,它是一个 GUID。不幸的是,这个属性总是返回 00000000-000-0000-0000-000000000000。但是文档说关于 PublishesNodeTypeAttribute:

如果一个节点没有这个属性,它就不能注册为一个可扩展的节点。

  • 每当我尝试像这样读取 PrimaryNode.SharedData 时:

样本:

我总是遇到异常。对于 CCF_NODETYPE、CCF_SZNODETYPE、CCF_SNAPIN_CLASSID、CCF_DISPLAY_NAME 我得到这个:

以下剪贴板格式保留供 MMC 使用:CCF_DISPLAY_NAME。指定另一种剪贴板格式。

其余的剪贴板格式只给出一个带有此堆栈跟踪的 PrimarySnapInDataException:

在 Microsoft.ManagementConsole.SharedDataItem.GetData() 在 Balabit.SyslogNgAgent.MMC.ExtensionSnapIn.OnInitialize() 在 c:\Source\Bergholz\Client\Client.Product\Main\src\MMC\ExtensionSnapIn.cs:line 65 在 Microsoft .ManagementConsole.Advanced.NamespaceExtension.ProcessNotification(通知通知)在 Microsoft.ManagementConsole.Internal.SnapInClient.Microsoft.ManagementConsole.Internal.IMessageClient.ProcessNotification(通知通知)在 Microsoft.ManagementConsole.Executive.SnapInInitializationOperation.OnStart() 在 Microsoft.ManagementConsole .Executive.RunningOperationsTable.EnqueueOperation(操作操作)在 Microsoft.ManagementConsole.Executive.NamespaceExtensionComponentData.GetScopeNodeForExpand(IDataObject dataObject, IntPtr hScopeItem) 在 Microsoft.ManagementConsole。Executive.ComponentData.OnExpand(IDataObject dataObject, Boolean isExpanding, IntPtr hScopeItem) at Microsoft.ManagementConsole.Executive.ExpandMmcNotification.OnNotify(IntPtr dataObject, IntPtr arg, IntPtr param) at Microsoft.ManagementConsole.Executive.MmcNotifyTarget.Notify(IntPtr dataObject, NotificationType事件类型,IntPtr 参数,IntPtr 参数)

我已经用谷歌搜索这个问题好几天了,我已经阅读了大量关于 MMC 扩展管理单元和 GPO 的文章,但我还没有找到任何可用的解决方案来解决我的问题。

提前感谢您的帮助。

0 投票
0 回答
124 浏览

powershell - win7中的Powershell Backup管理单元

在 Windows 7 32 位机器中,我正在尝试使用 Powershell CMDETS 进行备份和恢复。

我下载了 iis7.psprov_x86.msi 但它说“Powershell snap in 是 Windows 操作系统的一部分”。

当我去查看打开或关闭 Windows 功能时,我没有看到 Powershell CMDLETS 用于备份和恢复的任何选项。

我在系统中安装了 Powershell 4 并尝试使用“import-module webadministration”

任何建议都会有所帮助...

0 投票
1 回答
2562 浏览

windows-10 - Microsoft Management Console has stopped working

I'm trying to add snap into Microsoft Management Console in windows 10. But when I try to add certificate, an error message is coming with the header Microsoft Management Console has stopped working:

enter image description here

When I click the Debug button, Visual Studio 2015 gives me a message like this:

enter image description here

I've tried a solution found by google search saying to run sfc/scannow command in command promt but didn't get any result.

0 投票
1 回答
2794 浏览

certificate - Windows 10 中的 MMC 崩溃

在我的 Windows 10 上,当我尝试添加证书管理单元时 mmc.exe 崩溃。当我在添加管理单元(计算机帐户、本地计算机)后单击“确定”时,会显示消息:“Microsoft 管理控制台已停止工作”,并为我提供了一个调试选项。没有进一步的错误消息。我试图运行“sfc /scannow”,但没有发现任何需要修复的东西。