Vbscript WScript.CreateObject抛出“;无法创建对象";Windows Server 2016中出现错误

Vbscript WScript.CreateObject抛出“;无法创建对象";Windows Server 2016中出现错误,vbscript,com,windows-server-2016,createobject,Vbscript,Com,Windows Server 2016,Createobject,我正在尝试使用WScript.CreateObject(“ProgID of com.dll”)创建一个对象 CreateObject方法在Windows server 2008和Windows server 2012中运行良好。但在windows server 2016中,CreateObject方法无法为com.dll实例化,尽管它适用于像“Excel.Application”这样的普通dll 代码: Dim tool Set tool = WScript.CreateObject("Pro

我正在尝试使用
WScript.CreateObject(“ProgID of com.dll”)
创建一个对象
CreateObject
方法在Windows server 2008和Windows server 2012中运行良好。但在windows server 2016中,
CreateObject
方法无法为
com.dll
实例化,尽管它适用于像
“Excel.Application”
这样的普通dll

代码:

Dim tool
Set tool = WScript.CreateObject("ProgID")
它正在抛出错误消息:

WScript.CreateObject:无法创建名为“ProgID”的对象

我在不同的网站上找到了一些建议来举例说明这一点,如
Set-tool=CreateObject(“ProgID”)

它会抛出错误消息:

Microsoft VBScript运行时错误:内存不足:CreateObject


是否有任何特殊的执行指令需要注意以避免这些错误?有人遇到过这样的错误吗?

您是否从32位Win 2008系统迁移到64位Windows 2012?