Using the IsRebootPending COM Object Property in 8.7.3
search cancel

Using the IsRebootPending COM Object Property in 8.7.3

book

Article ID: 381937

calendar_today

Updated On:

Products

IT Management Suite Client Management Suite

Issue/Introduction

With the release of ITMS 8.7.3, administrators can create custom applicability and detection rules using PowerShell or VBScript without adding complex logic, and determine if a reboot is pending according to the logic used by the Symantec Management Agent.  How can you go about using this new COM object property?

Environment

ITMS 8.7.3

Cause

N/A

Resolution

As per the release notes for ITMS 8.7.3 found here:  IsRebootPending COM Object Property you can use the following PowerShell query as an example:

$nsclient = New-Object -ComObject Altiris.AexNSClient
$nsclient.SystemRebootIsPending

The new COM Object Property returns 1 if a reboot is pending or 0 if not.