NumberFormat error running convert script

Nov 25, 2013 at 2:35 PM
As I use Local settings for my country on my Laptop, I guess I get this error, when I try to run the convert script, I would prefer not to change the local setting of my laptop..

but How can I avoid this error?

ForEach-Object : Exception setting "NumberFormat": "Unable to set the NumberFormat property of the Range class"
At D:\Users\jjonsson\Documents\WindowsPowerShell\Modules\WindowsInventory\WindowsInventory.psm1:2326 char:57
  • $WorksheetFormat[$WorksheetNumber].ColumnFormat | ForEach-Object {
  • ~~~~~~~~~~~~~~~~
    • CategoryInfo : NotSpecified: (:) [ForEach-Object], SetValueInvocationException
    • FullyQualifiedErrorId : CatchFromBaseAdapterSetValueTI,Microsoft.PowerShell.Commands.ForEachObjectCommand
Nov 26, 2013 at 9:21 AM