Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that reads in the attached windowslogs.txt file and prints all Failed attempts to the screen. You will do this by searching for

Write a program that reads in the attached windowslogs.txt file and prints all "Failed" attempts to the screen. You will do this by searching for lines with "Failed" in them. 2016-09-28 04:30:35, Info CBS Read out cached package applicability for package: Package_for_KB3078601~31bf3856ad364e35~amd64~~6.1.1.5, ApplicableState: 112, CurrentState:112 2016-09-28 04:30:35, Info CBS Session: 30546174_10127586 initialized by client WindowsUpdateAgent. 2016-09-28 04:30:35, Info CBS Read out cached package applicability for package: Package_for_KB3147071~31bf3856ad364e35~amd64~~6.1.1.1, ApplicableState: 112, CurrentState:112 2016-09-28 04:30:35, Info CBS Session: 30546174_10517608 initialized by client WindowsUpdateAgent. 2016-09-28 04:30:35, Info CBS Read out cached package applicability for package: Package_for_KB3019978~31bf3856ad364e35~amd64~~6.1.1.2, ApplicableState: 80, CurrentState:0 2016-09-28 04:30:35, Info CBS Session: 30546174_10537609 initialized by client WindowsUpdateAgent. 2016-09-28 04:30:35, Info CBS Read out cached package applicability for package: Package_for_KB2563227~31bf3856ad364e35~amd64~~6.1.1.0, ApplicableState: 112, CurrentState:112 2016-09-28 04:30:35, Info CBS Session: 30546174_11037638 initialized by client WindowsUpdateAgent. 2016-09-28 04:30:36, Info CBS Read out cached package applicability for package: Package_for_KB3126587~31bf3856ad364e35~amd64~~6.1.1.1, ApplicableState: 112, CurrentState:112 2016-09-28 04:30:36, Info CBS Session: 30546174_17007979 initialized by client WindowsUpdateAgent. 2016-09-28 04:30:36, Info CBS Read out cached package applicability for package: Package_for_KB2789645~31bf3856ad364e35~amd64~~6.1.1.0, ApplicableState: 80, CurrentState:112 2016-09-28 04:30:36, Info CBS Session: 30546174_17668017 initialized by client WindowsUpdateAgent. 2016-09-28 04:30:36, Info CBS Read out cached package applicability for package: Package_for_KB3138901~31bf3856ad364e35~amd64~~6.1.1.0, ApplicableState: 112, CurrentState:112 2016-09-28 04:30:36, Info CBS Session: 30546174_17818026 initialized by client WindowsUpdateAgent. 2016-09-28 04:30:36, Info CBS Read out cached package applicability for package: Package_for_KB2607047~31bf3856ad364e35~amd64~~6.1.1.1, ApplicableState: 0, CurrentState:0 2016-09-28 04:30:36, Info CBS Session: 30546174_18178046 initialized by client WindowsUpdateAgent. 2016-09-28 04:30:36, Info CBS Session: 30546174_18398059 initialized by client WindowsUpdateAgent. 2016-09-28 04:30:36, Info CBS Read out cached package applicability for package: Package_for_KB3011780~31bf3856ad364e35~amd64~~6.1.1.5, ApplicableState: 112, CurrentState:112 2016-09-28 04:30:36, Info CBS Session: 30546174_20238164 initialized by client WindowsUpdateAgent. 2016-09-28 04:30:36, Info CBS Read out cached package applicability for package: Package_for_KB3170455~31bf3856ad364e35~amd64~~6.1.1.2, ApplicableState: 112, CurrentState:112 2016-09-28 04:30:36, Info CBS Session: 30546174_20328169 initialized by client WindowsUpdateAgent. 2016-09-28 04:30:36, Info CBS Read out cached package applicability for package: Package_for_KB2891804~31bf3856ad364e35~amd64~~6.1.1.1, ApplicableState: 112, CurrentState:112 2016-09-28 04:30:36, Info CBS Session: 30546174_20448176 initialized by client WindowsUpdateAgent. 2016-09-29 00:00:46, Info CBS Ending TrustedInstaller initialization. 2016-09-29 00:00:46, Info CBS Starting the TrustedInstaller main loop. 2016-09-29 00:00:46, Info CBS TrustedInstaller service starts successfully. 2016-09-29 00:00:46, Info CBS SQM: Initializing online with Windows opt-in: False 2016-09-29 00:00:46, Info CBS SQM: Cleaning up report files older than 10 days. 2016-09-29 00:00:46, Info CBS SQM: Requesting upload of all unsent reports. 2016-09-29 00:00:46, Info CBS SQM: Failed to start upload with file pattern: C:\Windows\servicing\sqm\*_std.sqm, flags: 0x2 [HRESULT = 0x80004005 - E_FAIL] 2016-09-29 00:00:46, Info CBS SQM: Failed to start standard sample upload. [HRESULT = 0x80004005 - E_FAIL] 2016-09-29 00:00:46, Info CBS SQM: Queued 0 file(s) for upload with pattern: C:\Windows\servicing\sqm\*_all.sqm, flags: 0x6 2016-09-29 00:00:46, Info CBS SQM: Warning: Failed to upload all unsent reports. [HRESULT = 0x80004005 - E_FAIL] 2016-09-29 00:00:46, Info CBS No startup processing required, TrustedInstaller service was not set as autostart, or else a reboot is still pending. 2016-09-29 00:00:46, Info CBS NonStart: Checking to ensure startup processing was not required. 2016-09-28 04:32:17, Info CBS Failed to create backup log cab. [HRESULT = 0x80070001 - ERROR_INVALID_FUNCTION] 2016-09-28 04:40:53, Info CBS Reboot mark refs incremented to: 1 2016-09-28 04:40:53, Info CBS Scavenge: Starts 2016-09-29 00:00:46, Info CBS SQM: Failed to start upload with file pattern: C:\Windows\servicing\sqm\*_std.sqm, flags: 0x2 [HRESULT = 0x80004005 - E_FAIL] 2016-09-29 00:00:46, Info CBS SQM: Failed to start standard sample upload. [HRESULT = 0x80004005 - E_FAIL] 2016-09-29 00:00:46, Info CBS SQM: Queued 0 file(s) for upload with pattern: C:\Windows\servicing\sqm\*_all.sqm, flags: 0x6 2016-09-29 00:00:46, Info CBS SQM: Warning: Failed to upload all unsent reports. [HRESULT = 0x80004005 - E_FAIL] 2016-09-29 00:00:46, Info CBS No startup processing required, TrustedInstaller service was not set as autostart, or else a reboot is still pending. 2016-09-29 00:01:46, Info CBS Failed to get next element [HRESULT = 0x800f080d - CBS_E_MANIFEST_INVALID_ITEM] 2016-09-29 00:01:46, Info CBS Warning: Unrecognized packageExtended attribute

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions