Describe the bug
PowerShell 7.5.4Import-Module: \\smb-fs.domain.test\home$\user\Documents\PowerShell\Microsoft.PowerShell_profile.ps1:17
Line |17|Import-Module Fonts
| ~~~~~~~~~~~~~~~~~~~
| The module manifest 'Admin.psm1' could not be processed because it is not a valid PowerShell module manifest file. Remove the elements that are not permitted: \\smb-fs.domain.test\home$\user\Documents\PowerShell\Modules\Admin\1.1.6\Admin.psd1
Loading personal and system profiles took 1966ms.
Admin module v1.1.13 can be loaded successfully, but Fonts explicit requires v1.1.6
Version information
C:\Users\user>$PSVersionTable
Name Value
---------
PSVersion 7.5.4
PSEdition Core
GitCommitId 7.5.4
OS Microsoft Windows 10.0.26100
Platform Win32NT
PSCompatibleVersions {1.0,2.0,3.0,4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
C:\Users\user>get-module Fonts
ModuleType Version PreRelease Name ExportedCommands
-----------------------------------------------
Script 1.1.26 Fonts {Get-Font,Install-Font,Uninstall-Font,Get-Fonts…}
C:\Users\user>get-module Admin
ModuleType Version PreRelease Name ExportedCommands
-----------------------------------------------
Script 1.1.13 Admin {Test-Admin, IsAdmin, IsAdministrator,Test-Administrator}
Script 1.1.6 Admin {Test-Admin, IsAdmin, IsAdministrator,Test-Administrator}To reproduce
- install fonts module to powershell v7.5+
- add
Import-Module Fonts to profile - start new shell and see error
Code snippet
Import-Module Fonts
$supportsOhMyPosh= ($env:WT_SESSION-or$env:TERM_PROGRAM-eq'hyper'-or$env:ConEmuHooks) -and (get-font-Scope AllUsers,CurrentUser *NerdFont*)
Relevant output
Describe the bug
Admin module v1.1.13 can be loaded successfully, but Fonts explicit requires v1.1.6
Version information
To reproduce
Import-Module Fontsto profileCode snippet
Relevant output