I added this before the first Function; note that I install and run
from a C:\Utils folder, not Program Files, change as needed.
?$extfilepath = 'c:\Utils\ext'
? IF(!(Test-Path $extfilepath))
? {New-Item C:\Utils\ext ?Type Directory}
I also filtered the output in the ForEach loop by enclosing?? If
($patchAge -lt 365){...}
*Timothy L. Williams*
Windows Server *Operating Systems Analyst
*Virginia Commonwealth University
On Thu, Oct 20, 2022 at 8:32 AM Galen Johnson <user-fc632e705d24@xymon.invalid> wrote:
Xymonton is self-service.? The maintainer doesn't add the
monitors.? It can be as simple as a link to your GH or a text copy
people can download from there.
=G=
On Thu, Oct 20, 2022 at 12:49 AM Bruno Manzoni
<user-81df5df13c04@xymon.invalid> wrote:
Thanks all for your feedback,
Perhaps this could be added to Xymonton
<https://wiki.xymonton.org/doku.php>
I dont know who manage Xymonton, but he could add it!
Yes, an excellent script! For my copy, I added a check that
the ext folder exists, create if not (it doesn't by default in
my environment). Also it found an obsolete patch of 2978 days
old (not even available at MS) so I created a filter to
exclude reporting on patches over 365 days.
Let us know what modification did you did! (Send an email or
create an issue on Github)! And my 2 cents comments:
- The check for the ext folder to exist should be better in
the powershell client: maybe just a warning or just created at
the install time (or both)
- For the obsolete patch, a filter seems not a perfect
solution (but could be still usefull to have the code!): if
you know a better way to do it or if you know why it is not
reported as it is in Windows: let us know !
Bruno
Le 20.10.2022 ? 01:24, James Louis a ?crit?: Perhaps this could be added to Xymonton
<https://wiki.xymonton.org/doku.php>.
On Wed, Oct 19, 2022 at 5:58 PM Timothy Williams
<user-1a5482fb085e@xymon.invalid> wrote:
Yes, an excellent script! For my copy, I added a check
that the ext folder exists, create if not (it doesn't by
default in my environment). Also it found an obsolete
patch of 2978 days old (not even available at MS) so I
created a filter to exclude reporting on patches over 365
days.
Timothy Williams, UCC
On Wed, Oct 19, 2022, 6:39 PM Bruno Manzoni
<user-81df5df13c04@xymon.invalid> wrote:
Hello List,
Thanks to Kris, we (the list) receive a script to
manage Windows Updates!
With his authorization I just published the script on
Github and a guide to make it running quickly
https://github.com/bonomani/Xymon-powershell-client-with-Windows-updates-centrally-managed/
Bruno
--
*Jim Louis
? ? ? ? ? \\\\||////
? ? ? ? ? \ ~ ~? /
? ? ? ? ? | @ @ |
• *--oOo---(_)---oOo--
• /?The part of life we really live is small. All the rest is
not life, but merely time.?/