Get a list of devices with expiring certificates

This script will return a list of devices that have certificates that have not been renewed. You can use this to find these devices and check that they are connected to the Intune service.

 
 
 
 
 
(0)
1,409 times
Add to favorites
4/18/2018
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • Can I baseline this script?
    1 Posts | Last post April 20, 2018
    • I am also getting "Found 0 Devices".  Are there any values that can be used to be sure to generate a non-zero return?
  • Does Not Work
    2 Posts | Last post April 18, 2018
    • Consistent error:
      
      Azure Powershell module not installed...
      Install from https://aka.ms/webpi-azps
      Script can't continue...
      
      Other Intune Graph scripts from the GitHub repository connect without issue.
    • We've addressed this issue in the updated script. Can you please try running it again?
  • Same issue as azureguinea Pig
    2 Posts | Last post April 18, 2018
    • Reinstalled Azure AD module No change in issue
    • We've addressed this issue in the updated script. Can you please try running this again?
  • O365 Portal vs. PowerShell Results
    2 Posts | Last post April 18, 2018
    • I received a message in the Office 365 Message Center stating, "We’re sending you this message since our records show you may have devices with certificates that will expire on April 21." 
      However, when I run the PS script, it returns "Found 0 devices." Which source am I supposed to believe?
    • Hi Chad. We can look up your customer to double check. It's possible that devices checked in and received updated certs after the message was sent.
  • Script errors
    2 Posts | Last post April 16, 2018
    • I am getting the following error:
      
      Cannot find an overload for "AcquireTokenAsync" and the argument count: "5".
      
      
    • I found that running it from Powershell alone caused this.  If I run it from ISE, it was ok.