# Unable connect SPO service

**URL:** <https://forums.powershell.org/t/unable-connect-spo-service/22846>\
**Category:** PowerShell Help\
**Created:** [September 7, 2023, 4:30am UTC](https://forums.powershell.org/t/unable-connect-spo-service/22846 "2023-09-07T04:30:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![danny\_chia\_tian\_jun](https://avatars.discourse-cdn.com/v4/letter/d/a8b319/32.png) [@danny\_chia\_tian\_jun](https://forums.powershell.org/u/danny_chia_tian_jun)\
**Post date:** [September 7, 2023, 4:30am UTC](https://forums.powershell.org/t/unable-connect-spo-service/22846/1 "2023-09-07T04:30:19Z")

</div>

when i key in Connect-SPOService -Url [https://abc-admin.sharepoint.com](https://abc-admin.sharepoint.com) and it appear error below :

 ![image](https://us1.discourse-cdn.com/flex019/uploads/powershell/original/2X/e/eb1ce1afed6d418a77beb4db5f07d69bb26abf87.jpeg)

Connect-SPOService : The ‘Connect-SPOService’ command was found in the module ‘Microsoft.Online.SharePoint.PowerShell’, but the module could not be loaded. For more information, run ‘Import-Module  
Microsoft.Online.SharePoint.PowerShell’.  
At line:1 char:1

- Connect-SPOService -Url [https://abc-admin.sharepoint.com](https://abc-admin.sharepoint.com)
- 

```auto
  + CategoryInfo : ObjectNotFound: (Connect-SPOService:String) [], CommandNotFoundException
  + FullyQualifiedErrorId : CouldNotAutoloadMatchingModule

```

i was try to key in below code also :  
Install-Module -Name Microsoft.Online.SharePoint.PowerShell -Force  
Install-Module -Name Microsoft.Online.SharePoint.PowerShell  
Import-Module Microsoft.Online.SharePoint.PowerShell  
Set-ExecutionPolicy RemoteSigned

But no luck still appear same error .  
Then i try to install Sharepoint online management shell and run again connect SPO and i get the same error as well.

Even I using new version powershell (powershell 7) also get same error /.

---

<div class="post-metadata">

**Author:** ![krzydoug](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/krzydoug/32/1008_2.png) [@krzydoug](https://forums.powershell.org/u/krzydoug)\
**Post date:** [September 7, 2023, 7:34am UTC](https://forums.powershell.org/t/unable-connect-spo-service/22846/2 "2023-09-07T07:34:34Z")

</div>

You don’t show where you ran Import-Module. That should give you a clue as to what is wrong.

---

<div class="post-metadata">

**Author:** ![Testing\_Account\_1](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@Testing\_Account\_1](https://forums.powershell.org/u/Testing_Account_1)\
**Post date:** [September 8, 2023, 7:29am UTC](https://forums.powershell.org/t/unable-connect-spo-service/22846/3 "2023-09-08T07:29:19Z")

</div>

Dear KRZYDOUG .

It should below error :

 ![image](https://us1.discourse-cdn.com/flex019/uploads/powershell/original/2X/6/6f1a7db93adca219bda8880fb719061766aed0aa.jpeg)

---

<div class="post-metadata">

**Author:** ![krzydoug](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/krzydoug/32/1008_2.png) [@krzydoug](https://forums.powershell.org/u/krzydoug)\
**Post date:** [September 8, 2023, 1:50pm UTC](https://forums.powershell.org/t/unable-connect-spo-service/22846/4 "2023-09-08T13:50:03Z")

</div>

What version is that powershell? Run `$psversiontable`

---

<div class="post-metadata">

**Author:** ![Olaf](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/olaf/32/992_2.png) [@Olaf](https://forums.powershell.org/u/Olaf)\
**Post date:** [September 8, 2023, 2:11pm UTC](https://forums.powershell.org/t/unable-connect-spo-service/22846/5 "2023-09-08T14:11:24Z")

</div>

Jun,  
Welcome to the forum. 👋🏼

> [@danny\_chia\_tian\_jun](#):
>
> appear error below :

Please do not post images of code or error messages. Instead post the plain text formatted as code.

When you post code, sample data, console output or error messages please format it as code using the preformatted text button ( \</\> ). Simply place your cursor on an empty line, click the button and paste your code.

Thanks in advance

[How to format code in PowerShell.org](https://us1.discourse-cdn.com/flex019/uploads/powershell/original/2X/b/bee50c628238f2c076c0504efb6b15f2fb11f002.gif) 1 \<---- Click 👆🏽 😉

( !! Sometimes the _preformatted text_ button hides behind the settings gear symbol. 😉 )

---

<div class="post-metadata">

**Author:** ![Olaf](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/olaf/32/992_2.png) [@Olaf](https://forums.powershell.org/u/Olaf)\
**Post date:** [September 8, 2023, 2:12pm UTC](https://forums.powershell.org/t/unable-connect-spo-service/22846/6 "2023-09-08T14:12:15Z")

</div>

Testing Account 1,  
Welcome to the forum. 👋🏼

> [@Testing\_Account\_1](#):
>
> It should below error :

Please do not post images of code or error messages. Instead post the plain text formatted as code.

When you post code, sample data, console output or error messages please format it as code using the preformatted text button ( \</\> ). Simply place your cursor on an empty line, click the button and paste your code.

Thanks in advance

[How to format code in PowerShell.org](https://us1.discourse-cdn.com/flex019/uploads/powershell/original/2X/b/bee50c628238f2c076c0504efb6b15f2fb11f002.gif) 1 \<---- Click 👆🏽 😉

( !! Sometimes the _preformatted text_ button hides behind the settings gear symbol. 😉 )

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:14pm UTC](https://forums.powershell.org/t/unable-connect-spo-service/22846/7 "2024-05-16T20:14:40Z")

</div>

Closed on May 16, 2024, 8:14pm UTC


