Cann't connect to Task Scheduler on a remote Windows server 2019/2022 core

Sean Tsang 1 Reputation point
2022-02-23T06:01:48.943+00:00

Hi,

I have tried to manage scheduled tasks on windows server 2019/2022 from my workstations on Windows 10/11/Windows server with desktop experience.

However, I got the following error messages from both 2019 & 2022 servers:

(I have turned off firewalls and anti-virus softwares for testing)

==================================================================================

Unhandled Exception in Managed Code Snap-in

FX:{c7b8fb06-bfe1-4c2e-9217-7a69a95bbac4}

Computer 'DC03.EXAMPLE.COM' cannot be connected. Verify that the network path is correct, the computer is available on the network, and that the appropriate Windows Firewall rules are enabled on the target computer.

To enable the appropriate Windows Firewall rules on the remote computer, open the Windows Firewall with Advanced Security snap-in and enable the following inbound rules:

COM+ Network Access (DCOM-In)

All rules in the Remote Event Log Management group

You can also enable these rules by using Group Policy settings for Windows Firewall with Advanced Security. For servers that are running the Server Core installation option, run the Netsh AdvFirewall command, or the Windows PowerShell NetSecurity module.

--------------------------------------------------------------------------------------------------------------------------------------------

Exception type:

Microsoft.Windows.ManagementUI.CombinedControls.UIException

Exception stack trace:

at Microsoft.Windows.ManagementUI.CombinedControls.ViewerContext.Initialize(String remoteComputerName, String userDomain, String userName, SecureString encryptedPassword, Int32 lcid)

at Microsoft.Windows.ManagementUI.CombinedControls.ViewerContext..ctor(String remoteComputerName, String userDomain, String userName, SecureString encryptedPassword, Int32 lcid)

at Microsoft.Windows.ManagementUI.CombinedControls.UIEventLogService.InitializeContext()

at Microsoft.TaskScheduler.SnapIn.TaskSchedHomePageFormViewControl.RefreshData(Boolean firstTime)

at Microsoft.TaskScheduler.SnapIn.TaskSchedHomePageFormViewControl.OnTaskServiceDataChanged(Object sender, UITaskServiceEventArgs eventArgs)

at Microsoft.Windows.ManagementUI.CombinedControls.UITaskService.FireDataChangedEvent(Object sender, DataChangeTypeEnum changeType, UITaskBase changedObject)

at Microsoft.TaskScheduler.SnapIn.HomePageNode.ConnectToService(String computerName, String user, String domain, SecureString encryptedPassword, Boolean forceReconnect)

at Microsoft.TaskScheduler.SnapIn.TaskSchedHomePageFormViewControl.ConnectToRemote_Triggered(Object sender, ActionEventArgs e)

at Microsoft.ManagementConsole.Action.RaiseTriggeredEvent(Object sender, AsyncStatus status)

at Microsoft.ManagementConsole.View.DoAction(Int32 actionId, Boolean selectionDependent, Int32 selectionId, IRequestStatus requestStatus)

at Microsoft.ManagementConsole.View.ProcessRequest(Request request)

at Microsoft.ManagementConsole.ViewMessageClient.ProcessRequest(Request request)

at Microsoft.ManagementConsole.Internal.IMessageClient.ProcessRequest(Request request)

at Microsoft.ManagementConsole.Executive.RequestStatus.BeginRequest(IMessageClient messageClient, RequestInfo requestInfo)

at Microsoft.ManagementConsole.Executive.SnapInRequestOperation.ProcessRequest()

at Microsoft.ManagementConsole.Executive.Operation.OnThreadTransfer(SimpleOperationCallback callback)

==================================================================================

I have done tons of googling and found some results indicating that this may be caused by dotNet Framework issues.

I have tried to fix .net fx but no lucks.

Besides, the following powershell commands have been executed on all of our windows server core platforms:

Server Core App Compatibility Feature on Demand (FOD)

Add-WindowsCapability -Online -Name ServerCore.AppCompatibility~~~~0.0.1.0

Can this be a reason caused the problem?

Any helps would be appreciated.

Thanks!

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,133 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.