Enable Access to the Task Scheduler Through the Windows Firewall in a Domain Profile
-
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 -
Configure these settings on the computer.
- Navigate to Control Panel > Network and Internet > Network and sharing center > Advanced sharing settings.
- In the Network discovery section, select Turn on network discovery.
- In the File and printer sharing section, select Turn on file and printer sharing.
- Allow user to access the %windir%\Tasks directory.
- 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.
-
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.
-
- Verify that the Remote Registry service is running.