Open devblackops opened 8 years ago
Same issue, ignores my attempts to Import-Module and throws similar exception
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\PowerClippy\PowerClippy.psd1'.
VERBOSE: Loading 'FormatsToProcess' from path 'C:\Program
Files\WindowsPowerShell\Modules\PowerClippy\PowerClippy.Format.ps1xml'.
Import-Module : Object reference not set to an instance of an object.
At line:1 char:1
+ Import-Module PowerClippy -Verbose
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Import-Module], NullReferenceException
+ FullyQualifiedErrorId : FormatXmlUpdateException,Microsoft.PowerShell.Commands.ImportModuleCommand
Commenting out the line that imports that ps1xml file resolves this.
PowerClippy.Format.ps1xml is an empty file and throws an error on import.