我是新用户,无法使用PowerShell连接到office 365

编程入门 行业动态 更新时间:2024-10-24 08:21:07
本文介绍了我是新用户,无法使用PowerShell连接到office 365的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试使用连接登录Office 365,但不知何故已经加载了另一个模块?

I am trying log into office 365 with the connect but somehow have another module loaded?

connect-msolservice connect-msolservice:'connect-msolservice'命令在模块'MSOnlineExtended'中找到,但模块为无法加载。有关详细信息,请运行'Import-Module MSOnlineExtended'。 $ 在行:1 char:1 + connect-msolservice + ~~ ~~~~~~~~~~~~~~~~~~ + CategoryInfo :ObjectNotFound:(connect-msolservice:String)[],CommandNotFoundException + FullyQualifiedErrorId:CouldNotAutoloadMatchingModule PS C:\ WINDOWS \ system32>导入模块MSOnlineExtended 导入模块:无法加载文件或程序集'file:/// C:\ WINDOWS \ system32 \ WindowsPowerShell \v1.0 \Modules \ MSOnlineExt end\Microsoft.Online.Administration.Automation.PSModule.Resources.dll'或其中一个依赖项。系统不能在$ 找到指定的文件。 在行:1字符:1 +导入模块MSOnlineExtended

connect-msolservice connect-msolservice : The 'connect-msolservice' command was found in the module 'MSOnlineExtended', but the module could not be loaded. For more information, run 'Import-Module MSOnlineExtended'. At line:1 char:1 + connect-msolservice + ~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (connect-msolservice:String) [], CommandNotFoundException + FullyQualifiedErrorId : CouldNotAutoloadMatchingModule PS C:\WINDOWS\system32> Import-Module MSOnlineExtended Import-Module : Could not load file or assembly 'file:///C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\MSOnlineExt ended\Microsoft.Online.Administration.Automation.PSModule.Resources.dll' or one of its dependencies. The system cannot find the file specified. At line:1 char:1 + Import-Module MSOnlineExtended

PS C:\ WINDOWS \ system32> $ PSVersionTable 姓名 价值 ---- ----- $ PSVersion 5.1.17134.590 PSEdition 桌面 PSCompatibleVersions {1.0,2.0,3.0,4.0 ...} BuildVersion 10.0.17134.590 CLRVersion 4.0.30319.42000 $ WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1

PS C:\WINDOWS\system32> $PSVersionTable Name Value ---- ----- PSVersion 5.1.17134.590 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 10.0.17134.590 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1

我是新手,只想运行一些命令。帮助?

I am new to this and just want to run some commands. Help?

推荐答案

你想做什么这是从Visual Studio代码中?如果是,请检查 此主题否则尝试从Powershell ISE中运行相同的内容机器。如果有效,请告诉我们。 Are you trying to do this from within Visual studio code ? If yes please check this thread else try to run the same from within the Powershell ISE from the machine. Let us know in case that works.

更多推荐

我是新用户,无法使用PowerShell连接到office 365

本文发布于:2023-10-17 13:01:40,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1500983.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:我是   新用户   连接到   PowerShell   office

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!