# Windows Service Log On property via Chef Service resource

**URL:** <https://discourse.chef.io/t/windows-service-log-on-property-via-chef-service-resource/4986>\
**Category:** Chef Infra (archive)\
**Created:** [February 7, 2014, 2:57pm UTC](https://discourse.chef.io/t/windows-service-log-on-property-via-chef-service-resource/4986 "2014-02-07T14:57:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kapil\_Shardha](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@Kapil\_Shardha](https://discourse.chef.io/u/Kapil_Shardha)\
**Post date:** [February 7, 2014, 2:57pm UTC](https://discourse.chef.io/t/windows-service-log-on-property-via-chef-service-resource/4986/1 "2014-02-07T14:57:28Z")

</div>

Folks,

I am trying to figure out if there is a way to set up “Log On” property to  
a user on a Windows service using Chef Service resource. I know the work around  
could be to use powershell\_script resource to set it via a Powershell script  
but I would like to avoid doing that if there is a direct way.

Your input is much appreciated.

Thanks

-Kapil

---

<div class="post-metadata">

**Author:** ![Adam\_Edwards](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/adam_edwards/32/389_2.png) [@Adam\_Edwards](https://discourse.chef.io/u/Adam_Edwards)\
**Post date:** [February 7, 2014, 3:18pm UTC](https://discourse.chef.io/t/windows-service-log-on-property-via-chef-service-resource/4986/2 "2014-02-07T15:18:01Z")

</div>

Kapil, I’m sorry, that feature isn’t yet available. It has been documented  
at [https://tickets.opscode.com/browse/CHEF-4921](https://tickets.opscode.com/browse/CHEF-4921). If you have a pull request,  
we can look at it now, otherwise hopefully we’ll provide it in a near-term  
update to Chef.

At the moment, the scripting workaround is the best way to address this.

-Adam

-----Original Message-----  
From: [kapil.shardha@ems-works.com](mailto:kapil.shardha@ems-works.com) [[mailto:kapil.shardha@ems-works.com](mailto:kapil.shardha@ems-works.com)]  
Sent: Friday, February 7, 2014 6:57 AM  
To: [chef@lists.opscode.com](mailto:chef@lists.opscode.com)  
Subject: [chef] Windows Service Log On property via Chef Service resource

Folks,

I am trying to figure out if there is a way to set up “Log On” property to a  
user on a Windows service using Chef Service resource. I know the work  
around could be to use powershell\_script resource to set it via a Powershell  
script but I would like to avoid doing that if there is a direct way.

Your input is much appreciated.

Thanks

-Kapil
