Hi
To solve the issue
you can use a comparaison based on a SCRIPT
If ( execute file)
you create a script
If (run script) : blabla.bat %computername%
in your script you control your device name)
if not return 9999 if yes return 666
And the expected value for "true" is 666)
my example :
if my script return 1000 then it's a windows 10 oS
Script example (ps1):
[environment]::OSVersion.Version
$OS = (Get-ItemProperty -LiteralPath "hklm:SOFTWARE\Microsoft\Windows NT\CurrentVersion\" -Name "productName").Productname
Switch ($OS)
{
"Windows 7" {
$OSnum = "7000"
}
"Windows 10 Pro" {
$OSnum = "1000"
}
}
[environment]::Exit("$OSnum")