Enable Access to the Task Scheduler Through the Windows Firewall in a Domain Profile

  1. When the Windows Firewall blocks the remote connection to the target's Task Scheduler, run this PowerShell command on the target computer.
    Get-NetFirewallProfile -Name Domain | Get-NetFirewallRule | ? Name -like *RemoteTask-In-TCP-NoScope* | Enable-NetFirewallRule
  2. Configure these settings on the computer.
    1. Navigate to Control Panel > Network and Internet > Network and sharing center > Advanced sharing settings.
    2. In the Network discovery section, select Turn on network discovery.
    3. In the File and printer sharing section, select Turn on file and printer sharing.
  3. Allow user to access the %windir%\Tasks directory.
  4. Navigate to Local Security Policy > Local Policies > User Rights assignment and verify that the Log on as a batch job and Log on a service are configured.
  5. Navigate to Windows Defender Firewall with Advanced Security > Windows Defender Firewall with Advanced Security - Local Group Policy Object > Inbound Rules and verify the following rules are enabled.
    • Remote Scheduled Tasks Management (RPC) is enabled.

    • Remote Event Log Management (RPC) is enabled.

  6. Verify that the Remote Registry service is running.