# Chef Client getting hung on powershell\_script resources on WIndows 2016

**URL:** <https://discourse.chef.io/t/chef-client-getting-hung-on-powershell-script-resources-on-windows-2016/15357>\
**Category:** Chef Infra (archive)\
**Created:** [June 7, 2019, 2:18pm UTC](https://discourse.chef.io/t/chef-client-getting-hung-on-powershell-script-resources-on-windows-2016/15357 "2019-06-07T14:18:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yzaidi](https://avatars.discourse-cdn.com/v4/letter/y/7feea3/32.png) [@yzaidi](https://discourse.chef.io/u/yzaidi)\
**Post date:** [June 7, 2019, 2:18pm UTC](https://discourse.chef.io/t/chef-client-getting-hung-on-powershell-script-resources-on-windows-2016/15357/1 "2019-06-07T14:18:56Z")

</div>

I'm using Chef-Client version 13.6.4 (approved for organization) on Windows 2016 Core servers. Chef Client getting hung on powershell\_script resources. The behavior is intermittent and it doesn't generate any logs or errors. remedy is to kill the process and chef-client again. Any suggestions

---

<div class="post-metadata">

**Author:** ![RADITC](https://avatars.discourse-cdn.com/v4/letter/r/3be4f8/32.png) [@RADITC](https://discourse.chef.io/u/RADITC)\
**Post date:** [June 7, 2019, 4:12pm UTC](https://discourse.chef.io/t/chef-client-getting-hung-on-powershell-script-resources-on-windows-2016/15357/2 "2019-06-07T16:12:40Z")

</div>

What is in your PowerShell block? I suspect it's the POSH being run more than the resource.

---

<div class="post-metadata">

**Author:** ![yzaidi](https://avatars.discourse-cdn.com/v4/letter/y/7feea3/32.png) [@yzaidi](https://discourse.chef.io/u/yzaidi)\
**Post date:** [June 7, 2019, 9:07pm UTC](https://discourse.chef.io/t/chef-client-getting-hung-on-powershell-script-resources-on-windows-2016/15357/3 "2019-06-07T21:07:04Z")

</div>

Powershell block consists of enabling and disabling of fileextensions as well as enabling IIS. Nothing fancy and these commands never hand when run directly into the powershell console
