Is there a way to clear and save log files automatically in Task Scheduler?

%3CLINGO-SUB%20id%3D%22lingo-sub-854478%22%20slang%3D%22en-US%22%3EIs%20there%20a%20way%20to%20clear%20and%20save%20log%20files%20automatically%20in%20Task%20Scheduler%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-854478%22%20slang%3D%22en-US%22%3E%3CP%3EGood%20morning%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20like%20to%20know%20if%20there%20is%20a%20way%20to%20schedule%20a%20task%20to%20save%20specific%20log%20files%20on%20a%20weekly%20basis%20using%26nbsp%3B%20Task%20Scheduler%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20on%20a%20p2p%20network%20(no%20server%20or%20internet%20connection)%20and%20running%20Win%2010%20Pro.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20help%20is%20appreciated!%20Thank%20you%20and%20have%20a%20good%20day!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E-David%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-854661%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20clear%20and%20save%20log%20files%20automatically%20in%20Task%20Scheduler%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-854661%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F408510%22%20target%3D%22_blank%22%3E%40dgirten%3C%2FA%3E%26nbsp%3B%20-%20These%20might%20help%20you....%20Hopefully%20this%20is%20what%20you're%20looking%20for!%20-%20Edward%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CH1%20id%3D%22toc-hId-2017610422%22%20id%3D%22toc-hId-2017610422%22%20id%3D%22toc-hId-2017610422%22%3E%3CFONT%20size%3D%225%22%3EScript%20to%20Clear%20(and%20Save)%20Event%20Logs%3C%2FFONT%3E%3C%2FH1%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fblogs.msdn.microsoft.com%2Fjjameson%2F2011%2F03%2F01%2Fscript-to-clear-and-save-event-logs%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fblogs.msdn.microsoft.com%2Fjjameson%2F2011%2F03%2F01%2Fscript-to-clear-and-save-event-logs%2F%3C%2FA%3E%3C%2FP%3E%3CH1%20id%3D%22toc-hId--534546539%22%20id%3D%22toc-hId--534546539%22%20id%3D%22toc-hId--534546539%22%3E%3CFONT%20size%3D%225%22%3E%3CSPAN%3ESource-Initiated%20(Push%20mode)%20in%20WorkGroup%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FH1%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsocial.technet.microsoft.com%2FForums%2Fwindowsserver%2Fen-US%2Fa517dbfd-5582-4993-b587-54f0df8fe1b4%2Fsourceinitiated-push-mode-in-workgroup%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsocial.technet.microsoft.com%2FForums%2Fwindowsserver%2Fen-US%2Fa517dbfd-5582-4993-b587-54f0df8fe1b4%2Fsourceinitiated-push-mode-in-workgroup%3C%2FA%3E%3C%2FP%3E%3CH1%20id%3D%22toc-hId-1208263796%22%20id%3D%22toc-hId-1208263796%22%20id%3D%22toc-hId-1208263796%22%3E%3CSPAN%3E%3CFONT%20size%3D%225%22%3EEvent%20Forwarding%20in%20Workgroup%20environment%3C%2FFONT%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FH1%3E%3CP%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fsocial.technet.microsoft.com%2FForums%2Fwindows%2Fen-US%2F21c2b3ba-de1a-432a-b2e5-8682cf6a9d0f%2Fevent-forwarding-in-workgroup-environment%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsocial.technet.microsoft.com%2FForums%2Fwindows%2Fen-US%2F21c2b3ba-de1a-432a-b2e5-8682cf6a9d0f%2Fevent-forwarding-in-workgroup-environment%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%3CH2%20id%3D%22toc-hId--1540406670%22%20id%3D%22toc-hId--1540406670%22%20id%3D%22toc-hId--1540406670%22%3E%3CFONT%20size%3D%225%22%3ESetting%20up%20a%20source%20initiated%20subscription%20where%20the%20event%20sources%20are%20not%20in%20the%20same%20domain%20as%20the%20event%20collector%20computer%3C%2FFONT%3E%3C%2FH2%3E%3CH2%20id%3D%22toc-hId-202403665%22%20id%3D%22toc-hId-202403665%22%20id%3D%22toc-hId-202403665%22%3E%3CFONT%20size%3D%223%22%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fwin32%2Fwec%2Fsetting-up-a-source-initiated-subscription%23setting-up-a-source-initiated-subscription-where-the-event-sources-are-not-in-the-same-domain-as-the-event-collector-computer%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fwin32%2Fwec%2Fsetting-up-a-source-initiated-subscription%23setting-up-a-source-initiated-subscription-where-the-event-sources-are-not-in-the-same-domain-as-the-event-collector-computer%3C%2FA%3E%3C%2FFONT%3E%3C%2FH2%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-854710%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20there%20a%20way%20to%20clear%20and%20save%20log%20files%20automatically%20in%20Task%20Scheduler%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-854710%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F131846%22%20target%3D%22_blank%22%3E%40Edward%20Dake%3C%2FA%3E%26nbsp%3BThank%20you%20for%20the%20links.%20I%20will%20go%20through%20and%20try%20these%20out%20and%20see%20what%20works%20best.%20Have%20a%20good%20day!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Good morning,

 

I would like to know if there is a way to schedule a task to save specific log files on a weekly basis using  Task Scheduler?

 

I am on a p2p network (no server or internet connection) and running Win 10 Pro.

 

Any help is appreciated! Thank you and have a good day!

 

-David

2 Replies
Highlighted

@dgirten  - These might help you.... Hopefully this is what you're looking for! - Edward

 

Script to Clear (and Save) Event Logs

https://blogs.msdn.microsoft.com/jjameson/2011/03/01/script-to-clear-and-save-event-logs/

Source-Initiated (Push mode) in WorkGroup

https://social.technet.microsoft.com/Forums/windowsserver/en-US/a517dbfd-5582-4993-b587-54f0df8fe1b4...

Event Forwarding in Workgroup environment

https://social.technet.microsoft.com/Forums/windows/en-US/21c2b3ba-de1a-432a-b2e5-8682cf6a9d0f/event...

Setting up a source initiated subscription where the event sources are not in the same domain as the event collector computer

https://docs.microsoft.com/en-us/windows/win32/wec/setting-up-a-source-initiated-subscription#settin...

 

 

 

Highlighted

@Edward Dake Thank you for the links. I will go through and try these out and see what works best. Have a good day!