Network address invalid during bootstrap

Hi,
bootstrapping a windows host, during the first execution of the chef-client I've received the error that the network address is invalid even though I've reached it correctly via WinRM. Any suggestion?

The error is

[2017-05-15T18:26:39+02:00] INFO: Processing windows_task[chef-client] action create (chef-client::task line 41)

================================================================================
Error executing action create on resource 'windows_task[chef-client]'

Mixlib::ShellOut::ShellCommandFailed

Expected process to exit with [0], but received '1'
---- Begin output of schtasks /CREATE /TN "chef-client" /F /SC "minute" /MO "120" /ST "20:26" /TR "cmd /c " C:/opscode/chef/bin/chef-client -L C:/chef/log/client.log -c C:/chef/client.rb -s 300"" /RU "SYSTEM" /RL "HIGHEST" ----
STDOUT:
STDERR: ERROR: The network address is invalid.
---- End output of schtasks /CREATE /TN "chef-client" /F /SC "minute" /MO "120" /ST "20:26" /TR "cmd /c " C:/opscode/chef/bin/chef-client -L C:/chef/log/client.log -c C:/chef/client.rb -s 300"" /RU "SYSTEM" /RL "HIGHEST" ----
Ran schtasks /CREATE /TN "chef-client" /F /SC "minute" /MO "120" /ST "20:26" /TR "cmd /c " C:/opscode/chef/bin/chef-client -L C:/chef/log/client.log -c C:/chef/client.rb -s 300"" /RU "SYSTEM" /RL "HIGHEST" returned 1

Cookbook Trace:

c:/chef/cache/cookbooks/windows/providers/task.rb:184:in `run_schtasks'

c:/chef/cache/cookbooks/windows/providers/task.rb:56:in `block in class_from_file'

Resource Declaration:

In c:/chef/cache/cookbooks/chef-client/recipes/task.rb

41: windows_task 'chef-client' do
42: run_level :highest
43: command "cmd /c "#{client_cmd}""
44:
45: user node['chef_client']['task']['user']
46: password node['chef_client']['task']['password']
47: frequency node['chef_client']['task']['frequency'].to_sym
48: frequency_modifier node['chef_client']['task']['frequency_modifier']
49: start_time node['chef_client']['task']['start_time'] || start_time
50: end

Compiled Resource:

Declared in c:/chef/cache/cookbooks/chef-client/recipes/task.rb:41:in `from_file'

windows_task("chef-client") do
action [:create]
retries 0
retry_delay 2
default_guard_interpreter :default
declared_type :windows_task
cookbook_name "chef-client"
recipe_name "task"
run_level :highest
command "cmd /c " C:/opscode/chef/bin/chef-client -L C:/chef/log/client.log -c C:/chef/client.rb -s 300""
user "SYSTEM"
frequency :minute
frequency_modifier 120
start_time "20:26"
task_name "chef-client"
end

Platform:

x64-mingw32

[2017-05-15T18:26:40+02:00] INFO: Running queued delayed notifications before re-raising exception
[2017-05-15T18:26:40+02:00] ERROR: Running exception handlers
[2017-05-15T18:26:40+02:00] ERROR: Exception handlers complete
[2017-05-15T18:26:40+02:00] INFO: Sending resource update report (run-id: 9e5dcaae-bcc7-4bc9-8fc2-636c5c67a65c)
[2017-05-15T18:26:40+02:00] FATAL: Stacktrace dumped to c:/chef/cache/chef-stacktrace.out
[2017-05-15T18:26:40+02:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2017-05-15T18:26:40+02:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: windows_task[chef-client] (chef-client::task line 41) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of schtasks /CREATE /TN "chef-client" /F /SC "minute" /MO "120" /ST "20:26" /TR "cmd /c " C:/opscode/chef/bin/chef-client -L C:/chef/log/client.log -c C:/chef/client.rb -s 300"" /RU "SYSTEM" /RL "HIGHEST" ----
STDOUT:
STDERR: ERROR: The network address is invalid.
---- End output of schtasks /CREATE /TN "chef-client" /F /SC "minute" /MO "120" /ST "20:26" /TR "cmd /c " C:/opscode/chef/bin/chef-client -L C:/chef/log/client.log -c C:/chef/client.rb -s 300"" /RU "SYSTEM" /RL "HIGHEST" ----
Ran schtasks /CREATE /TN "chef-client" /F /SC "minute" /MO "120" /ST "20:26" /TR "cmd /c " C:/opscode/chef/bin/chef-client -L C:/chef/log/client.log -c C:/chef/client.rb -s 300"" /RU "SYSTEM" /RL "HIGHEST" returned 1
ERROR: Failed to execute command on abc.domain.com return code 1
ERROR: Bootstrap command returned 1

Hi @ant4r3s ,

Can you log in to the node and check whether the task scheduler is running properly?
For example are you able to run schtasks /query without any issue?