diff --git a/Analysis/Deserialize-KansaField.ps1 b/Analysis/Deserialize-KansaField.ps1 index 33e8c472..4e409960 100644 --- a/Analysis/Deserialize-KansaField.ps1 +++ b/Analysis/Deserialize-KansaField.ps1 @@ -51,6 +51,11 @@ function GetTimestampUTC { Get-Date (Get-Date).ToUniversalTime() -Format "yyyy-MM-ddTHH:mm:ssZ" } +if($((Get-WmiObject Win32_OperatingSystem).Name).Contains(" XP ")){ +Write-Error ("{0}: This script is not supported on Windows XP." -f (GetTimestampUTC)) +exit +} + function ConvertBase64-ToByte { Param( [Parameter(Mandatory=$True,Position=0)] @@ -131,4 +136,4 @@ if ($InPath = Resolve-Path $InputFile) { } else { Write-Error ("{0}: Could not resolve path to -InputFile argument {1}. Check the argument and try again, maybe. Quitting." -f (GetTimestampUTC), $InputFile) exit -} \ No newline at end of file +}