I am trying to install MSonline modue via command install install-module MSonline and installation process runs however after running get-module -listavailable unable to find MSonline listed there

Harmeet Singh 6 Reputation points
2022-03-10T06:13:07.423+00:00

I am trying to install MSonline modue via command install install-module MSonline and installation process runs however after running get-module -listavailable unable to find MSonline listed there

![181699-image.png]1

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Manu Philip 20,206 Reputation points MVP Volunteer Moderator
    2022-03-10T06:29:21.47+00:00

    I think, the default PS Repository is not being registered correctly. You can try the following to fix the issue

    1. Register PS Repository: Register-PSRepository -Default
    2. Install MSOnline module again. If asked, press 'Yes to All' button to proceed the installation: Install-Module -Name MSOnline
    3. Try finding the module again: Get-PSRepository

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    0 comments No comments

  2. Harmeet Singh 6 Reputation points
    2022-03-10T06:44:04.623+00:00

    Thank you for your prompt response.

    I have tried running 'Register-PSRepository -Default' and getting below output and also tried installing MSonline again but same behavior furthermore I have noticed that it is getting installed in local profile temp folder basically its failing to install.

    181773-image.png

    181700-image.png

    0 comments No comments

  3. Manu Philip 20,206 Reputation points MVP Volunteer Moderator
    2022-03-10T08:18:06.397+00:00

    It could be that the TLS is not the required version yet. Run the following command see if it helps !

    [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
    
    0 comments No comments

  4. Harmeet Singh 6 Reputation points
    2022-03-10T08:54:31.127+00:00

    Thanks, tried running the command and it ran right away without any process or message and module is still failing to install.


  5. Harmeet Singh 6 Reputation points
    2022-03-10T09:48:43.23+00:00

    Yes tried with this but it is not executing either.

    PFB for your reference.

    181799-image.png


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.