/bundles/itninjaweb/img/Breadcrumb_cap_w.png
Is there anyway to have a custom field report Yes or No depending on value of;

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations

According to MS if the PC requires a restart before any other software can be installed it will set a reg value of PendingFileRenameOperations to anything but 0, what I would like is a custom field saying Yes or No if the PC needs a reboot at point of inventory.

Thanks
0 Comments   [ - ] Hide Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity

Answers

0
You could by creating a manual software inventory record, and using a custom inventory rule to check the value of this key. If the "software" is on a machine, you know it needs a reboot.

Click on the ? box next to Custom Inventory Rule section and you will see the various syntax
Answered 11/10/2011 by: scottlutz
Orange Senior Belt

Please log in to comment
0
If it would help, there's a free SysInternals utility that checks exactly that registry key, and writes a list to stdout: PendMoves
Answered 11/10/2011 by: snissen
Fourth Degree Green Belt

Please log in to comment
0
nbs are you wanting something to show in inventory? If so how, with a yes or a no?
What action are you going to take with it?

Remember that a CI is based when the inventory was gathered for that machine, but if it has rebooted and not provided a new inventory then that value is out of date and you may not want to reboot it anymore.

Say, if you were going to use a script to reboot it then you may want to use a verify step in your script's tasks to check that value first.
Answered 11/10/2011 by: GillySpy
Seventh Degree Black Belt

Please log in to comment
1
I have this as a custom software inventory item:

RegistryValueReturn(HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager,PendingFileRenameOperations,TEXT)
AND
RegistryValueEquals(HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager,PendingFileRenameOperations,System.String[])


If it shows in the custom inventory then it have a pending reboot, if not it doesn't =)

Then you can make a smart label that show if it have the "System.String[]" value then list it as "need reboot" or something
Answered 11/11/2011 by: rmeyer
Second Degree Blue Belt

Please log in to comment
-1
RegistryValueReturn(HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager,PendingFileRenameOperations,TEXT) AND RegistryValueEquals(HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager,PendingFileRenameOperations,System.String[])

Thanks Rmeyer, this worked fine.
Answered 11/13/2011 by: nbs
Orange Belt

Please log in to comment