friedrichweinmann / filetype Goto Github PK
View Code? Open in Web Editor NEWModule to validate filetypes
License: MIT License
Module to validate filetypes
License: MIT License
Something related to PSFramework causes Install-Module FileType
to fail:
PS 6.2.3 C:/WINDOWS/system32> install-module filetype -force -verbose VERBOSE: Acquiring providers for assembly: C:\program files\powershell\6\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.MetaProvider.PowerShell.dll VERBOSE: Acquiring providers for assembly: C:\program files\powershell\6\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.ArchiverProviders.dll VERBOSE: Acquiring providers for assembly: C:\program files\powershell\6\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.NuGetProvider.dll VERBOSE: Acquiring providers for assembly: C:\program files\powershell\6\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.CoreProviders.dll VERBOSE: Using the provider 'PowerShellGet' for searching packages. VERBOSE: The -Repository parameter was not specified. PowerShellGet will use all of the registered repositories. VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'. VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2/' and PackageManagementProvider is 'NuGet'.VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='filetype'' for ''. VERBOSE: Total package yield:'1' for the specified package 'filetype'. VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'. VERBOSE: The specified Location is 'https://www.poshtestgallery.com/api/v2/' and PackageManagementProvider is 'NuGet'. VERBOSE: Searching repository 'https://www.poshtestgallery.com/api/v2/FindPackagesById()?id='filetype'' for ''. VERBOSE: Total package yield:'0' for the specified package 'filetype'. VERBOSE: Performing the operation "Install-Module" on target "Version '1.0.2' of module 'FileType'". VERBOSE: The installation scope is specified to be 'CurrentUser'. VERBOSE: The specified module will be installed in 'C:\Users\steph\OneDrive\Documents\PowerShell\Modules'. VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'. VERBOSE: Downloading module 'FileType' with version '1.0.2' from the repository 'https://www.powershellgallery.com/api/v2/'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='FileType'' for ''.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSFramework'' for ''.
VERBOSE: InstallPackage' - name='PSFramework', version='1.0.35',destination='C:\Users\steph\AppData\Local\Temp\1674069492'
VERBOSE: DownloadPackage' - name='PSFramework', version='1.0.35',destination='C:\Users\steph\AppData\Local\Temp\1674069492\PSFramework.1.0.35\PSFramework.1.0.35.nupkg', uri='https://www.powershellgallery.com/api/v2/package/PSFramework/1.0.35'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/PSFramework/1.0.35'.
VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/PSFramework/1.0.35'.
VERBOSE: Completed downloading 'PSFramework'.
VERBOSE: InstallPackageLocal' - name='PSFramework', version='1.0.35',destination='C:\Users\steph\AppData\Local\Temp\1674069492'
VERBOSE: InstallPackage' - name='FileType', version='1.0.2',destination='C:\Users\steph\AppData\Local\Temp\1674069492'
VERBOSE: DownloadPackage' - name='FileType', version='1.0.2',destination='C:\Users\steph\AppData\Local\Temp\1674069492\FileType.1.0.2\FileType.1.0.2.nupkg', uri='https://www.powershellgallery.com/api/v2/package/FileType/1.0.2'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/FileType/1.0.2'.
VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/FileType/1.0.2'.
VERBOSE: Completed downloading 'FileType'.
VERBOSE: InstallPackageLocal' - name='FileType', version='1.0.2',destination='C:\Users\steph\AppData\Local\Temp\1674069492'
VERBOSE: Validating the 'PSFramework' module contents under 'C:\Users\steph\AppData\Local\Temp\1674069492\PSFramework.1.0.35' path.
VERBOSE: Test-ModuleManifest successfully validated the module manifest file 'C:\Users\steph\AppData\Local\Temp\1674069492\PSFramework.1.0.35'.
VERBOSE: Validating the authenticode signature and publisher of the catalog file or module manifest file of the module 'PSFramework'.
VERBOSE: Catalog file 'PSFramework.cat' is not found in the contents of the module 'PSFramework' being installed.
VERBOSE: For publisher validation, current module 'PSFramework' with version '1.0.35' with publisher name '' from root certificate authority ''. Is this module signed by Microsoft: 'False'.
VERBOSE: For publisher validation, using the previously-installed module 'PSFramework' with version '1.0.35' under 'C:\Users\steph\OneDrive\Documents\PowerShell\Modules\PSFramework\1.0.35' with publisher name '' from root certificate authority ''. Is this module signed by Microsoft: 'False'.
VERBOSE: Checking for possible command collisions for the module 'PSFramework' commands.
VERBOSE: Installing the dependency module 'PSFramework' with version '1.0.35' for the module 'FileType'.
PackageManagement\Install-Package : Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
At C:\program files\powershell\6\Modules\PowerShellGet\PSModule.psm1:9508 char:21
+ ... $null = PackageManagement\Install-Package @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Microsoft.PowerShel\u2026lets.InstallPackage:InstallPackage) [Install-Package], Exception
+ FullyQualifiedErrorId : System.FormatException,Microsoft.PowerShell.Commands.RemoveItemCommand,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
All I get is:
PS 5.1.18362.145 C:/Users/steph> gci .\OneDrive\Documents\WUTroubleShooterReport201804101205.pdf | Resolve-FileType
New-Object : The value supplied is not valid, or the property is read-only. Change the value, and then try again.
At C:\Program Files\WindowsPowerShell\Modules\FileType\1.0.0\FileType.psm1:234 char:5
+ New-Object FileType.Resolution -Property @{
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [New-Object], Exception
+ FullyQualifiedErrorId : SetValueException,Microsoft.PowerShell.Commands.NewObjectCommand
Potential source of new definitions to include:
This should speak for itself:
PS 5.1.18362.145 C:/Users/steph> remove-module filetype
PS 5.1.18362.145 C:/Users/steph> import-module filetype
PS 5.1.18362.145 C:/Users/steph> (get-filetype) -eq $null
True
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.