New
#1130
After doing a system restore, for some reason, my mail app looks like this, without titlebars and with black background in the messages, I'm not sure if it's a bug or is that the application is preparing to receive elements of Fluent Design or something else, but I think I like it, of course, only on Skip Ahead!!
Looks like the failing line is:
Where $comp is (if I understand correctly) defined by this ($comp is iterating through $Name, but presumably only one in this case).Code:$devDetail = (Get-WMIObject -ComputerName $comp -Namespace root/cimv2/mdm/dmmap -class MDM_DevDetail_Ext01 -filter "InstanceID='Ext' AND ParentID='./DevDetail'")
I wonder if it's possible to run that command manually in isolation and learn something from that?Code:$Name = @($env:ComputerName)
Could you please check the .csv file and see if the device serial is in decimal or hexadecimal format?
Screenshot shows no errors, which in case of PowerShell means it succeeded.
Exactly.
Yes, Get-WMIObject fails to collect data on some hardware. I've tested all possible alternatives I can think of, for instance replacing variables like $comp and $name with fixed strings. No difference; if it fails as a script on your device, that command also fails as standalone.
lenovo laptop host pro 64bit 162571 - failed like yours
uefi vm 64bit 162571 - failed in second line
WARNING: Unable to download the list of available providers. Check your internet connection.
PackageManagement\Install-PackageProvider : No match was found for the specified search
criteria for the provider 'NuGet'. The package provider requires 'PackageManagement' and
'Provider' tags. Please check if the specified package has the tags.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:7468
char:21
+ ... $null = PackageManagement\Install-PackageProvider -Name $script:N ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (Microsoft.Power...PackageProvider:InstallP
ackageProvider) [Install-PackageProvider], Exception
+ FullyQualifiedErrorId : NoMatchFoundForProvider,Microsoft.PowerShell.PackageManageme
nt.Cmdlets.InstallPackageProvider
PackageManagement\Import-PackageProvider : No match was found for the specified search
criteria and provider name 'NuGet'. Try 'Get-PackageProvider -ListAvailable' to see if the
provider exists on the system.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:7474
char:21
+ ... $null = PackageManagement\Import-PackageProvider -Name $script:Nu ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (NuGet:String) [Import-PackageProvider], Except
ion
+ FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManageme
nt.Cmdlets.ImportPackageProvider
Screenshot shows no errors, which in case of PowerShell means it succeeded.
Excellent Kari. Means I actually helped your highness? Thanks for the effort I went to... please don't mention it.