Category: Windows Server 2008
Windows 2008 – Alert on Scheduled Job Failure
First we need to enable logging for the Windows Task Scheduler, open Event Viewer (Put “eventvwr.msc” in Run) and browse to TaskScheduler as below. Right click the Operational log and click properties and ensure the “Enable Logging” is checked Windows is now setup to log Scheduled tasks to the Event Viewer, now we need to…
Windows 2008: Task Scheduler causes account lockout when policy locks account after one attempt
I encountered a very odd issue where I was attempting to amend a scheduled task on a Windows 2008 R2 server. When attempting to amend to a “service” account it locked out immediately. This account has a policy where it is locked out if the password is incorrect once. After several attempts and having to…
Remotely remove a broken user profile from another computers registry when the user folder is deleted
I recently had an issue where someone had deleted my admin user profile from a remote server by deleting its folder. The logon then failed as Windows still expected the folder to be there, as obviously the registry entries were not removed. Rather than manually checking HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList for the SID and then removing it…
Display advanced properties of scheduled tasks in command line
The following command requests a detailed display of the tasks on the local computer. It uses the /v parameter to request a detailed (verbose) display and the /fo LIST parameter to format the display as a list for easy reading. You can use this command to verify that a task you created has the intended…
Filtering in Event Viewer Windows Server 2008 onwards
The Event Viewer from Server 2008 onwards is XML based. Filters based on XML syntax can be used such as: <QueryList> <Query Id=”0″ Path=”System”> <Select Path=”System”> *[EventData[Data and (Data='<Search Parameter>’)]] </Select> </Query> </QueryList> <QueryList> <Query Id=”0″ Path=”Application”> <Select Path=”Application”> *[EventData[Data and (Data='<Search Parameter>’)]] </Select> </Query> </QueryList> You…