Quantcast
Channel: Ivanti User Community: Message List - OS Deployment and Provisioning
Viewing all articles
Browse latest Browse all 3345

Re: Ivanti 2018.1 Bugs

$
0
0

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")


Viewing all articles
Browse latest Browse all 3345

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>