Office-365-Extractor
Office-365-Extractor copied to clipboard
Error: "Input string was not in a correct format."
if ($AmountResults) { $number = $AmountResults.tostring().split(":")[1] $script:integer = [int]$number
Third line is generating error like this:
InvalidArgument: C:\Temp\Office365_Extractor.ps1:XXX Line | XXX | $script:integer = [int]$number | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Cannot convert value " YYY" to type "System.Int32". Error: "Input string was not in a correct | format."
I'm using Powershell 7.2.1