question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PowerShell: can't load Microsoft.PowerShell.Utility.

See original GitHub issue

I have the same error as mentioned in this issue.

[Process:4688]: PS C:> The module 'Microsoft.PowerShell.Utility' could not be loaded. For more information, run 'Import-Module Microsoft.PowerShell.Utility'. At line:0 char:0

[Process:4688]: PS C:> Debug-Runspace : The term 'Debug-Runspace' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

It started somewhere when I installed the latest Core Tools. I use version 2.7.1948 through Chocolatey I have .net Core SDK version 2.1, 2.2 and 3.1

I have two different VSCode environments (regular and insiders), PowerShell preview and regular, PowerShell extension preview and regular, it really doesn’t seem to matter what combination I pick.
(all of these are on the latest versions)

Also tried reinstalling .net Core SDKs and Azure Core Function tools. No luck so far.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:18 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
Ba4bescommented, Jan 22, 2020

After extensive troubleshooting we have found no way to fix this issue, but also no way to reproduce. I have reinstalled my laptop (while keeping files) and removed all my profile-folders that start with a dot. This has fixed the issue. Thank you everyone for your time and effort. I will close this issue.

1reaction
Ba4bescommented, Jan 9, 2020

Hey @Francisco-Gamino , I’m sorry, something came up, I can’t make it today. I can make 9AM work tomorrow I have just followed you on Twitter, could you send me a private message? That way I don’t have to put my email address on the internet 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

powershell Microsoft.PowerShell.Utility module could not ...
Write-Host : The 'Write-Host' command was found in the module 'Microsoft.PowerShell.Utility', but the module could not be loaded.
Read more >
Microsoft.PowerShell.Utility Module
Utility module. This module contains cmdlets that manage the basic features of PowerShell. ... Measures the time it takes to run script blocks...
Read more >
Powershell Function App fails to import module
The function app now fails when loading the Powershell Module (MSOnline) using the Import-Module cmdlet, like this:.
Read more >
Cannot install powershell modules - Microsoft Q&A
My problem is that I am not able to install modules to my powershell console. Example: Install-module -Name AzureAD.
Read more >
Powershell broke - basic commands not working ...
It only looks into C:\Users\myMainUser\Documents\WindowsPowerShell\Modules. So I either have to do Import-Module -Name Microsoft.PowerShell.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found