Solved

windows pending reboot - File renaming

  • 21 November 2023
  • 2 replies
  • 125 views

Userlevel 1
Badge +7

How filter out  PendingFileRenameOperations from NSCLIENT WIndows Pending Reboot check?

it’s always True.

 

 

icon

Best answer by Flo 7 December 2023, 17:04

View original

2 replies

Badge

Hello,

 

If you want to avoid status “WARNING” for “File Rename Operations”, but keep a “WARNING” in another cases, just modify the service model “Pending Reboot” and replace :

 

%{RebootPending} =~ /true/i

 

By :

 

%{RebootPending} =~ /true/i && (%{WindowsUpdate} =~ /true/i || %{ComponentBasedService} =~ /true/i || %{SCCMClient} =~ /true/i || %{ComputerNameChange} =~ /true/i)

Userlevel 1
Badge +7

yes, basically i’ll have warning status on all events but not for file rename and this the final goal.

 

it’s not clean because i’ll have the message: pending reboot TRUE

 

but at moment i like this solution. 

 

i’ll try to edit nsclient excluding every check related to file rename.

 

Thank you for your answer (i marked it as best answer), i appreciated your help.

Reply