# Chefspec issue on windows\_task resource

**URL:** <https://discourse.chef.io/t/chefspec-issue-on-windows-task-resource/14569>\
**Category:** Chef Infra (archive)\
**Created:** [February 21, 2019, 1:23pm UTC](https://discourse.chef.io/t/chefspec-issue-on-windows-task-resource/14569 "2019-02-21T13:23:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![claudiuion](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@claudiuion](https://discourse.chef.io/u/claudiuion)\
**Post date:** [February 21, 2019, 1:23pm UTC](https://discourse.chef.io/t/chefspec-issue-on-windows-task-resource/14569/1 "2019-02-21T13:23:02Z")

</div>

Hello,

I have the following error when I try to run ChefSpec tests and it seems it is related to windows\_task resource from the recipe. Does anyone know what could be the problem?

This is my ChefDK version:  
Chef Development Kit Version: 3.7.23  
chef-client version: 14.10.9  
delivery version: master (64f556d5ebfd7bac2c0b3cc2c53669688b3ea4b5)  
berks version: 7.0.7  
kitchen version: 1.24.0  
inspec version: 3.4.1

```auto
pp_services::SSA.SigningService When all attributes are default creates SSA users
     Failure/Error: runner.converge(described_recipe)
     
     NameError:
       uninitialized constant Chef::ReservedNames::Win32::Security
       Did you mean? SecurityError
     # /tmp/chef/cache/cookbooks/pp_services/recipes/SigningService.rb:113:in `from_file'
     # ./spec/unit/recipes/SigningService_spec.rb:28:in `block (3 levels) in <top (required)>'
     # ./spec/unit/recipes/SigningService_spec.rb:40:in `block (3 levels) in <top (required)>'

```

---

<div class="post-metadata">

**Author:** ![claudiuion](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@claudiuion](https://discourse.chef.io/u/claudiuion)\
**Post date:** [February 25, 2019, 7:58am UTC](https://discourse.chef.io/t/chefspec-issue-on-windows-task-resource/14569/2 "2019-02-25T07:58:48Z")

</div>

It seems that it is related to the fact that I run the tests on Linux.

---

<div class="post-metadata">

**Author:** ![Pcguy88](https://avatars.discourse-cdn.com/v4/letter/p/f19dbf/32.png) [@Pcguy88](https://discourse.chef.io/u/Pcguy88)\
**Post date:** [February 28, 2019, 3:46pm UTC](https://discourse.chef.io/t/chefspec-issue-on-windows-task-resource/14569/3 "2019-02-28T15:46:51Z")

</div>

Believe this issue I encountered encompasses what you are seeing:

[https://github.com/chefspec/chefspec/issues/952](https://github.com/chefspec/chefspec/issues/952)
