54
Detect Reboot Needed
in progress
Anirudh K Murthy
in progress
M
Michael Mills
This might be able to be done through a script, but I think the script dev using PowerShell is beyond me. My attempt only results in not even the SuperOpsModule being loaded properly despite trying it just as it was listed in https://superops.ai/help/asset-management#importing-the-superopsai-module:
At C:\Program Files\superopsrmm\script\module\SuperOpsModuleV1.psm1:130 char:9
+ class GraphQLResponseObject {
+ ~~~~~
The 'class' keyword is not supported in this version of the language.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordEx
ception
+ FullyQualifiedErrorId : ReservedKeywordNotAllowed
Import-Module : The specified module 'C:\Program
Files\superopsrmm\script\module\SuperOpsModuleV1.psm1' was not loaded because
no valid module file was found in any module directory.
At C:\Program Files\superopsrmm\script\DetectRebootNeeded.ps1:1 char:1
+ Import-Module $SuperOpsModule
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (C:\Program File...psModule
V1.psm1:String) [Import-Module], FileNotFoundException
+ FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Comm
ands.ImportModuleCommand