Windows Server

Error: Failed to create a scheduled task, cannot perform the operation because the runspace pool is not in the open state

This problem occurs because there is no firewall rule that will allow Windows Admin Center access on the remote server.

To fix this issue, temporarily turn off the firewall on your device.
Note: This act is very UNSAFE

Then try to create your scheduled task. When the scheduled task is created successfully, then you have two methods to setup the firewall.

Method 1: Create Inbound Firewall rule via PowerShell.

New-NetFirewallRule -DisplayName „SmeInbounOpenException“ -Description „Windows Admin Center inbound port exception“ -Localport 6516 -Protocol TCP

Ensure the to run PowerShell with Admin privilege, else it will FAIL 🙂

Method 2: You can also create this rule via the Windows Firewall (Windows Defender Firewall and Advanced Security.

The firewall windows can be accessed via the following path
– Control Panel
– System and Security
– Windows Defender Firewall

This will open the Windows Firewall “Advanced Settings and Advanced Security” as shown below.

In this method, you have got two options

  • You can choose to exclude WAC from the firewall or
  • Create a firewall rule with for the TCP/IP

I will opt to go with the option to exclude the program option and select the the

%ProgramFiles%\Windows Admin Center\sme.exe

Click to allow connections to the program as shown below

Select the profile it should apply to. Since, this is a test enviornment, I will select all the profiles as shown below.

Enter the firewall name and description of the rule and click on Finish

Either of the option you chose, you will and the same end result.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x