使用PowerShell脚本连接到SSAS
我使用PowerShell及其工作来尝试该代码,但是在PowerShell Core中,我会收到以下错误。
**
错误信息: 异常调用与“ 1”参数的“连接”:“无法加载类型'system.security.security.principal.windowsimpersonationcontext'来自汇编'Mscorlib,版本= 4.0.0.0,culture = 4.0.0.0,culture =中性,publicKeytoken = b77a5c561934e089'。
排队错误: $ server.connect($ servername)
**
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有足够的代码来确定确切的问题,但听起来您正在导入和使用本机SSAS库。您的代码有类似的东西吗?
您可以在此处使用的本机PowerShell模块: https://learn.microsoft.com/en-us/analysis-services/powershell/analysis-services-services-powershell-reference?view = asallproducts-allproducts-allversions-allversions
Not quite enough code to determine the exact problem, but it sounds like you're importing and using the native SSAS library. Does your code have something like this?
There are native PowerShell modules you can use here: https://learn.microsoft.com/en-us/analysis-services/powershell/analysis-services-powershell-reference?view=asallproducts-allversions