Tag: windows server 2012 r2

Windows脚本宿主错误(错误代码8007202f)

使用自定义VBScript在Windows Server 2012中的活动目录用户和计算机中创build用户时发生错误。 错误代码8007202f,发生约束违规 .vbs文件从Excel文件中检索数据。 我用脚本创build了一次用户帐号,但是当脚本第二次再次使用时,发生错误。 这是我使用的脚本: 'On Error Resume Next 'Make sure to change the OU name as appropriate. Watch about the space after the name. 'Change the domain name also strOU = "OU=TempOU ," strSheet = "C:\staff.xls" 'strPWD = "12345678" ' Bind to Active Directory, Users container. Set objRootLDAP = GetObject("LDAP://rootDSE") Set objContainer […]

从C#.net Windows服务器R2中的Excel中读取

使用OLEDB从本地环境的excel文件中读取效果很好。 为了在Windows服务器上执行此操作,需要下载OLEDB引擎(MS Access引擎2010)。 这可以下载的forms: https://www.microsoft.com/en-us/download/details.aspx?id=13255 但是,即使在下载所需的库之后,这种方法在Windows Server 2012 R2上也不起作用。 有人可以帮忙吗?

通过正常的html链接打开excel文件

我目前遇到了一个问题,我想在我们的Intranet上添加一个共享Excel表单的链接。 不幸的是,正常的href="http:…"链接自动打开并保存到本地机器,而不是在服务器本身的共享表单上启用。 我已经通过这里读了一下,find了如下的解决scheme: file://///SERVER/PATH/Excel.xls但遗憾的是,这个解决scheme没有做任何事情。 如果与其相关:我的服务器版本是Windows Server 2012