Why is Microsoft.Powershell.Core not showing up when I'm in the Get-Module results?

Why Get-Moduleis the main Powershell module Microsoft.Powershell.Core not specified in the command results ?

+4
source share
1 answer

docs to Get-Moduleindicate:

Starting with Windows PowerShell 3.0, the core commands that are included with Windows PowerShell are packaged in modules. The exception is Microsoft.PowerShell.Core, which is a snap-in (PSSnapin) . By default, only the Microsoft.PowerShell.Core snap-in is added to the session. Modules are imported automatically the first time you use them, and you can use the Import-Module cmdlet to import them.

(emphasis mine)

If you run Get-PSSnapin, you will really see:

PS C: \ Users \ JamesThorpe> get-pssnapin

Name: Microsoft.PowerShell.Core
PSVersion: 5.1.15063.502
Description: This Windows PowerShell snap-in contains cmdlets used to manage components of Windows PowerShell.
+5
source

Source: https://habr.com/ru/post/1685028/


All Articles