protirus / patchautomation Goto Github PK
View Code? Open in Web Editor NEWThis project forked from somewhatsomewhere/patchautomation
Patch Automation tool kit for Symantec Management Platform 7.1, 7.5, 7.6, 8.0, 8.1, 8.5
This project forked from somewhatsomewhere/patchautomation
Patch Automation tool kit for Symantec Management Platform 7.1, 7.5, 7.6, 8.0, 8.1, 8.5
@RoybOK raised a bug on Connect
One minor fix that has bugged me for years. Please change "stagged" to "staged" in this message series below.
Processing bulletin MS19-09-W10-4516058 (2a5dd6f2-0fa8-45dd-8685-a223e1f4fda8) now.
... bulletin will be stagged now.
Bulletin is now stagged.
to
Processing bulletin MS19-09-W10-4516058 (2a5dd6f2-0fa8-45dd-8685-a223e1f4fda8) now.
... bulletin will be staged now.
Bulletin is now staged.
Many thanks! I love this product!! Thank you for keeping it up to date!
Error running ZDP
Processing bulletin #NAME# (00000000-0000-0000-0000-000000000000) now.
... bulletin will be stagged now.
Bulletin is now stagged.
Checking if we need to create a new policy now.
... create a policy for the bulletin now.
Unable to cast object of type 'System.Collections.Generic.List`1[System.Guid]' to type 'Altiris.Common.GuidCollection'.
at Symantec.CWoC.APIWrappers.PatchAPI.CreateUpdatePolicy(String name, String bulletinGuids, List`1 targetGuids, Boolean enabled)
at Symantec.CWoC.ZeroDayPatch.RunAutomation(GuidCollection bulletins)
Failed to create policy for bulletin #NAME# 1 time(s)...
Unable to cast object of type 'System.Collections.Generic.List`1[System.Guid]' to type 'Altiris.Common.GuidCollection'.
at Symantec.CWoC.APIWrappers.PatchAPI.CreateUpdatePolicy(String name, String bulletinGuids, List`1 targetGuids, Boolean enabled)
at Symantec.CWoC.ZeroDayPatch.RunAutomation(GuidCollection bulletins)
Failed to create policy for bulletin #NAME# 2 time(s)...
Unable to cast object of type 'System.Collections.Generic.List`1[System.Guid]' to type 'Altiris.Common.GuidCollection'.
at Symantec.CWoC.APIWrappers.PatchAPI.CreateUpdatePolicy(String name, String bulletinGuids, List`1 targetGuids, Boolean enabled)
at Symantec.CWoC.ZeroDayPatch.RunAutomation(GuidCollection bulletins)
Failed to create policy for bulletin #NAME# 3 time(s)...
Failed to create policy for bulletin #NAME# 3 times - skipping the bulletin now.
csc /win32icon:filename *.cs
Hi
Since 8.6 RU3 update, the patch policy creation was bugged, I used the more recent ZeroDayPatch-8.6-RU3.zip with the "stagged" bug fixed.
Policies are well created, but the difference is that patches in the policy are always unchecked. A manual action is needed to manually check all policies and enable all patches in the policies.
Hello Alex and team,
I've upgraded to SMP 8.6 RU3 that was released a couple of days ago, and wanted to let you know that Zero Day Patch is not able to Download bulletins.
Error message:
Processing bulletin CHROME-220802 (34c373f2-6163-4417-a477-6c74e8643a45) now.
... bulletin will be stagged now.
Failed to stage bulletin CHROME-220802 - skipping the bulletin now.
The update is not being added to 'Distribute Software Updates'. Also, if a bulletin is manually downloaded, there are no issues and the Policy is created:
Processing bulletin CHROME-220802 (34c373f2-6163-4417-a477-6c74e8643a45) now.
This bulletin is already staged.
Checking if we need to create a new policy now.
... create a policy for the bulletin now.
Software update policy created!
Please take a look when you get a chance.
Thanks, Roy
I'd like to add Assembly Info to the app. We could then use that in the /version
switch
Need to think about the 3 different Apps.
Create a new file AssemblyInfo.cs
and update the info.
Compile: csc *.cs
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("ZeroDayPatch and PatchAutomation")]
[assembly: AssemblyProduct("PatchAutomation")]
[assembly: AssemblyCopyright("Copyright © Symantec")]
[assembly: AssemblyTrademark("Symantec Corporation")]
[assembly: AssemblyVersion("1.0.0.#")]
[assembly: AssemblyFileVersion("1.0.0.#")]
See: How To Set C# Program Version Number At Command Prompt?
I encountered the same issue and I could fix it with making a slight change in Zerodaypatch.cs
The line which is causing the problem
wrap.CreateUpdatePolicy(name, bulletin.ToString(), config.Target_Guids, true);
My correction
wrap.CreateUpdatePolicy(name, bulletin.ToString(), config.Target_Guids[0], true);
https://github.com/Protirus/patchautomation/blob/master/ZeroDayPatch.cs#L138
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.