# Run cookbook as domain user

**URL:** <https://discourse.chef.io/t/run-cookbook-as-domain-user/10334>\
**Category:** Chef Infra (archive)\
**Created:** [February 1, 2017, 6:38am UTC](https://discourse.chef.io/t/run-cookbook-as-domain-user/10334 "2017-02-01T06:38:43Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![stonesbg](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@stonesbg](https://discourse.chef.io/u/stonesbg)\
**Post date:** [February 1, 2017, 8:50am UTC](https://discourse.chef.io/t/run-cookbook-as-domain-user/10334/3 "2017-02-01T08:50:34Z")

</div>

If you want to run the Chef-Client as a domain user I would recommend using “knife winrm” command.

Example of the syntax:  
`knife winrm "myserver.myorganization.net" "chef-client" -m -x "domain\Administrator" -P "super_secret_password"`

This can be executed from your local chef workstation.

You could also use PowerShell Remoting to connect to the remote server as a domain user and execute chef-client

---

_[View the full topic](https://discourse.chef.io/t/run-cookbook-as-domain-user/10334)._
