/build/static/layout/Breadcrumb_cap_w.png

KACE SMA - Windows 10 End of Support date

Hi Ninjas,


I guess you already have heard about the Windows 10 End of Support Report (https://www.itninja.com/blog/view/kace-sma-windows-10-end-of-life-report)? If not it’s a great way of having a centralised view of your Windows 10 devices and their support dates. If you want to have the end of support date as part of your inventory, I have written this CIR for you. This CIR is reaching out to a php page on my webserver and transmitting the build version and if the system is within the extended support or not. As a result, my script will return the date of the support ending. I will keep my script on my end up to date so that all changes will be reflected as soon as possible. Once set, you do not have to change your CIR.


Please note that your endpoints need to have internet access to be able to get the end of support date.


The CIR:

ShellCommandDateReturn(%windir%\SysNative\WindowsPowerShell\v1.0\powershell -NoLogo -NonInteractive -NoProfile -command "$bv=[System.Environment]::OSVersion.Version.Build ; if ((Get-WmiObject -class Win32_OperatingSystem).Caption -like '*Ent*') { $support='extended' } elseif ((Get-WmiObject -class Win32_OperatingSystem).Caption -like '*Edu*') { $support='extended' } elseif ((Get-WmiObject -class Win32_OperatingSystem).Caption -like '*IoT Ent*') { $support='extended' } else { $support='default' } ; $url='https://www.timokirch.de/sma/w10support.php?bv='+$bv+'&support='+$support ; Invoke-WebRequest -Uri $url -UseBasicParsing | Select-Object -Expand Content")

 

You can then use it to create dynamic groups or notifications based on the timestamp of your support end date.

QAAAABJRU5ErkJggg==

If there are any questions or ideas to improve this, just let met know :) 

Kind Regards

Timo


Comments

This post is locked
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ